1. 13 Jan, 2016 3 commits
  2. 12 Jan, 2016 34 commits
  3. 11 Jan, 2016 3 commits
    • adamk's avatar
      [parser cleanup] Unify implementation of CheckPossibleEvalCall · 1be3c3a2
      adamk authored
      Besides reducing code duplication, this makes it easier to change the
      implementation, which may be necessary to properly support eval calls
      in arrow function parameter initializers.
      
      Review URL: https://codereview.chromium.org/1573363002
      
      Cr-Commit-Position: refs/heads/master@{#33219}
      1be3c3a2
    • littledan's avatar
      Ship ES2015 sloppy-mode const semantics · 95145fa8
      littledan authored
      This patch moves the semantics of 'const' in sloppy mode to match those
      in strict mode, that is, const makes lexical (let-like) bindings, must
      have an initializer, and does not create properties of the global object.
      
      R=adamk
      LOG=Y
      BUG=v8:3305
      CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel
      
      Review URL: https://codereview.chromium.org/1571873004
      
      Cr-Commit-Position: refs/heads/master@{#33218}
      95145fa8
    • littledan's avatar
      Partial rollback of Promise error checking · ee9d7aca
      littledan authored
      As V8 becomes more and more spec-compliant, Promise polyfill libraries
      like core.js expect fully correct. However, our Promises do not yet
      support Symbol.species. Therefore, a case like
      
      ```
      var test = new Promise(function(){});
      test.constructor = function(){};
      Promise.resolve(test)
      ```
      
      would lead to an unhandled Promise rejection, whereas it should not
      because test.constructor[Symbol.species] is undefined, so test.then
      should end up constructing %Promise% as a fallback, rather than
      calling test.constructor as if it were a constructor, which leads
      this error checking code to throw.
      
      For now, this patch removes the error checking code (which was not
      present until recently). In an interactive test using core.js, the
      error message on the console goes away with this patch. When @@species
      support is in place, this patch can be reverted. A regression test
      is added which checks for the same thing.
      
      Partially reverted patch was originally out for review at
      https://codereview.chromium.org/1531073004
      
      BUG=v8:4633
      LOG=Y
      R=adamk,caitp88@gmail.com
      
      Review URL: https://codereview.chromium.org/1578893002
      
      Cr-Commit-Position: refs/heads/master@{#33217}
      ee9d7aca