1. 15 Oct, 2015 34 commits
  2. 14 Oct, 2015 6 commits
    • franziska.hinkelmann's avatar
      Emit better error message about writable properties · 8ed04543
      franziska.hinkelmann authored
      Section 8.10.5 9a specifies that a property descriptor cannot both have
      accessors and specify the writability of the property. The previous
      error message was misleading because it referred to writable rather
      than specifying the writability (which includes writable: false).
      
      BUG=v8:2536
      LOG=N
      
      Review URL: https://codereview.chromium.org/1399693003
      
      Cr-Commit-Position: refs/heads/master@{#31273}
      8ed04543
    • domenic's avatar
      Add methods to extras' InternalPackedArray · 8f8457d2
      domenic authored
      https://codereview.chromium.org/1343113003 introduced a separate InternalPackedArray constructor to the extras utils object, distinct from the one used by natives. However, it omitted the code to set up the methods for that InternalPackedArray. This makes all the basic manipulation methods available.
      
      BUG=v8:4276
      LOG=Y
      R=jochen@chromium.org,yangguo@chromium.org
      
      Review URL: https://codereview.chromium.org/1401243003
      
      Cr-Commit-Position: refs/heads/master@{#31272}
      8f8457d2
    • caitpotter88's avatar
      [es6] parse arrow ConciseBody with accept_IN flag · 6b4d7f81
      caitpotter88 authored
      Fixes corner case where arrow function ConciseBody expression does not
      accept 'in' in productions.
      
      BUG=v8:4472
      LOG=N
      R=wingo@igalia.com, adamk@chromium.org, rossberg@chromium.org
      
      Review URL: https://codereview.chromium.org/1407633002
      
      Cr-Commit-Position: refs/heads/master@{#31271}
      6b4d7f81
    • domenic's avatar
      Put experimental extras through the same filters as non-experimental · 0db37104
      domenic authored
      When introducing experimental extras I forgot to update this check. That resulted in experimental extras running through the steps normally reserved for non-extra natives: macro and constant expansion, validation, and minification. This causes problems since per the linked bug minification is buggy.
      
      R=yangguo@chromium.org, jochen@chromium.org
      BUG=v8:4064
      LOG=N
      
      Review URL: https://codereview.chromium.org/1400253002
      
      Cr-Commit-Position: refs/heads/master@{#31270}
      0db37104
    • littledan's avatar
      Add a lexical scope for the body of a with statement · ab3110e8
      littledan authored
      For an edge case like the following in sloppy mode
        with ({}) function f() {}
      a lexical scope needs to be created around the body in order
      to hold the function declaration, so it can be hoisted according
      to a loose interpretation of Annex B 3.3 (loose because ES2015
      does not permit a function declaration as the body of a with
      statement). This patch adds that scope.
      
      BUG=chromium:542100
      LOG=N
      R=adamk
      
      Review URL: https://codereview.chromium.org/1404803002
      
      Cr-Commit-Position: refs/heads/master@{#31269}
      ab3110e8
    • littledan's avatar
      Fix scopes for body of sloppy-mode for-in/of loop · d0618585
      littledan authored
      This patch fixes an obscure edge case for functions defined as the
      direct body of a for-of/for-in loop, such as the following:
      
       for (foo in []) function foo() { return foo; }
      
      Here, the first occurrence of foo should point to the outer scope;
      however, before this patch, it pointed to the inner foo in an
      invalid way which caused an assertion about the scope chain to fail.
      This patch fixes the scope chain by inserting an extra scope for
      the body of the loop, not including the header.
      
      BUG=chromium:542099
      LOG=N
      R=rossberg
      
      Review URL: https://codereview.chromium.org/1396663004
      
      Cr-Commit-Position: refs/heads/master@{#31268}
      d0618585