https://codereview.chromium.org/1189743003/diff/80001/test/cctest/test-parsing.cc
File test/cctest/test-parsing.cc (right):

https://codereview.chromium.org/1189743003/diff/80001/test/cctest/test-parsing.cc#newcode6608
test/cctest/test-parsing.cc:6608: TEST(DestructuringDuplicateParams) {
Need tests that patterns are not allowed in rest parameters

function(...{}) {}
function(...{x}) {}
function(...[x]) {}
(...{}) => {}
(...{x}) => {}
(...[x]) => {}

https://codereview.chromium.org/1189743003/diff/80001/test/cctest/test-parsing.cc#newcode6630
test/cctest/test-parsing.cc:6630: "function f(x, x, {a}) {}",
Arrow function tests would be nice here:

  ({x, x}) => {}
  (x, {y, y}) => {}
  (x, {x, y}) => {}
  ({x}, ...x) => {}

  ([x, x]) => {}
  (x, [y, y]) => {}
  (x, [x, y]) => {}
  ([x], ...x) => {}

https://codereview.chromium.org/1189743003/

--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to