• adamk's avatar
    Use Scope::function_kind_ to distinguish arrow function scopes · 24565b85
    adamk authored
    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}
    24565b85
Name
Last commit
Last update
..
regress-2034.js Loading commit data...
regress-2156.js Loading commit data...
regress-2186.js Loading commit data...
regress-2243.js Loading commit data...
regress-2322.js Loading commit data...
regress-2506.js Loading commit data...
regress-2681.js Loading commit data...
regress-2691.js Loading commit data...
regress-2829.js Loading commit data...
regress-2858.js Loading commit data...
regress-3280.js Loading commit data...
regress-3426.js Loading commit data...
regress-347906.js Loading commit data...
regress-3501.js Loading commit data...
regress-3683.js Loading commit data...
regress-3741.js Loading commit data...
regress-3750.js Loading commit data...
regress-3902.js Loading commit data...
regress-3938.js Loading commit data...
regress-4056.js Loading commit data...
regress-4097.js Loading commit data...
regress-411237.js Loading commit data...
regress-4160.js Loading commit data...
regress-4466.js Loading commit data...
regress-455141.js Loading commit data...
regress-468661.js Loading commit data...
regress-474783.js Loading commit data...
regress-arrow-duplicate-params.js Loading commit data...
regress-cr372788.js Loading commit data...
regress-cr493566.js Loading commit data...
regress-cr512574.js Loading commit data...
regress-crbug-248025.js Loading commit data...
regress-crbug-346141.js Loading commit data...
regress-crbug-465671-null.js Loading commit data...
regress-crbug-465671.js Loading commit data...