v8/test/mjsunit/es6/regress
adamk 24565b8598 Use Scope::function_kind_ to distinguish arrow function scopes
Previously, arrow function scopes had a separate ScopeType. However,
Scope::DeserializeScopeChain() erroneously deserialized ARROW_SCOPE
ScopeInfos as FUNCTION_SCOPE. This could lead to bugs such as the
attached one, where "super" was disallowed where it should have
been allowed.

This patch utilizes the Scope's FunctionKind to distinguish arrow
functions from others. Besides fixing the above bug, this also
simplifies code in various places that had to deal with two different
ScopeTypes both of which meant "function".

BUG=v8:4466
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#31154}
2015-10-07 14:55:45 +00:00
..
regress-2034.js Re^3-land "Ship promises and weak collections" 2014-05-06 14:48:34 +00:00
regress-2156.js Re^3-land "Ship promises and weak collections" 2014-05-06 14:48:34 +00:00
regress-2186.js Enable ES6 Map and Set by default 2014-08-05 19:37:32 +00:00
regress-2243.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
regress-2322.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
regress-2506.js [es6] Ensure that for-in/of loops have a proper TDZ for their lexically-bound variables 2015-07-01 00:27:30 +00:00
regress-2681.js Enable ES6 generators 2014-09-16 12:30:39 +00:00
regress-2691.js Enable ES6 generators 2014-09-16 12:30:39 +00:00
regress-2829.js Re^3-land "Ship promises and weak collections" 2014-05-06 14:48:34 +00:00
regress-2858.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
regress-3280.js Enable ES6 generators 2014-09-16 12:30:39 +00:00
regress-3426.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
regress-3501.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
regress-3683.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
regress-3741.js Remove --harmony-scoping flag. 2015-03-13 15:15:57 +00:00
regress-3750.js Add a --harmony-object-observe runtime flag (on by default) 2015-08-04 20:53:32 +00:00
regress-3902.js Make generator constructors configurable 2015-02-19 11:30:33 +00:00
regress-3938.js [es6] Fix for-const loops 2015-03-03 18:34:40 +00:00
regress-4056.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
regress-4097.js Fix test formatting 2015-05-12 18:12:54 +00:00
regress-4160.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
regress-4466.js Use Scope::function_kind_ to distinguish arrow function scopes 2015-10-07 14:55:45 +00:00
regress-347906.js [harmony] Move some regression tests to the right place 2015-03-20 11:03:14 +00:00
regress-411237.js [harmony] Move some regression tests to the right place 2015-03-20 11:03:14 +00:00
regress-455141.js [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
regress-468661.js Debugger: use correct position for for-next expression statement. 2015-08-24 13:08:22 +00:00
regress-474783.js Handle the case when derived constructor is [[Call]]ed with 0 args. 2015-05-05 19:57:04 +00:00
regress-arrow-duplicate-params.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
regress-cr372788.js Drop thenable coercion cache 2014-05-14 10:44:34 +00:00
regress-cr493566.js [es6] Make sure we call add property when adding a new property 2015-06-11 21:24:41 +00:00
regress-cr512574.js [es6] Make sure temporaries are not allocated in block scope 2015-07-23 13:51:35 +00:00
regress-crbug-248025.js Enable ES6 iteration by default 2014-08-07 16:42:14 +00:00
regress-crbug-346141.js Enable ES6 Symbols by default 2014-08-04 18:17:54 +00:00
regress-crbug-465671-null.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
regress-crbug-465671.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00