v8/test/mjsunit/harmony/regress
adamk cf72aad39e [es6] Fix scoping for default parameters in arrow functions
When eagerly parsing arrow functions, expressions in default
parameter initializers are parsed in the enclosing scope,
rather than in the function's scope (since that scope does not
yet exist). This leads to VariableProxies being added to the
wrong scope, and scope chains for FunctionLiterals being incorrect.

This patch addresses these problems by adding a subclass of
AstExpressionVisitor that moves VariableProxies to the proper
scope and fixes up scope chains of FunctionLiterals.

More work likely still needs to be done to make this work completely,
but it's very close to correct.

BUG=v8:4395
LOG=y

Review URL: https://codereview.chromium.org/1405313002

Cr-Commit-Position: refs/heads/master@{#31402}
2015-10-20 09:15:38 +00:00
..
regress-2219.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-2225.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-4211.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
regress-4298.js Fix spread array inside array literal 2015-07-15 15:16:13 +00:00
regress-4395.js [es6] Fix scoping for default parameters in arrow functions 2015-10-20 09:15:38 +00:00
regress-4400.js Don't crash when preparsing destructured arguments 2015-09-22 17:43:43 +00:00
regress-4417.js Fix spread operator in ArrayLiterals when nested in other literals 2015-09-15 16:43:39 +00:00
regress-4482.js Don't throw on assignment to function name binding in harmony sloppy mode 2015-10-12 16:55:35 +00:00
regress-173361.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-343928.js Remove --harmony implications for incomplete features 2014-11-04 16:05:44 +00:00
regress-405844.js Add a --harmony-object-observe runtime flag (on by default) 2015-08-04 20:53:32 +00:00
regress-508074.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
regress-513474.js Find right scope associated with prologue 2015-07-24 13:08:32 +00:00
regress-517455.js Regression test for crbug 517455 2015-08-07 13:32:46 +00:00
regress-crbug-347528.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-crbug-448730.js [harmony] Move some regression tests to the right place 2015-03-20 11:03:14 +00:00
regress-crbug-451770.js Delete --harmony-computed-property-names flag 2015-08-05 21:32:38 +00:00
regress-crbug-461520.js Remove effectful assertion 2015-02-25 15:34:21 +00:00
regress-lookup-transition.js Move all Harmony-only tests to harmony/ 2014-02-28 14:26:32 +00:00
regress-observe-empty-double-array.js Add a --harmony-object-observe runtime flag (on by default) 2015-08-04 20:53:32 +00:00
regress-typedarray-out-of-bounds.js fix transition of typedarrays in ics 2015-02-09 09:50:15 +00:00