1. 03 May, 2016 1 commit
    • adamk's avatar
      Properly disallow 'yield' in class expressions and arrow parameters · 9e9abcff
      adamk authored
      Yield expressions are not allowed in formal parameter initializers of
      generators, but we weren't properly catching the case where the yield
      expression appeared in the 'extends' clause of a class expression.
      
      They also aren't allowed in arrow functions, which we were failing to
      catch due to not looking at the obscurely-named "FormalParameterInitializerError"
      bit of ExpressionClassifier.
      
      This patch passes along an ExpressionClassifier when parsing class
      expressions and accumulates the proper error for that case.
      
      For the arrow function case, the fix is simply to check for the
      "formal parameter initializer" error once we know we've parsed
      an arrow function. The error message used for this has also
      been made specific to yield expressions.
      
      Tests are added both for the error case and the non-error cases (where
      yield is used in such a position inside the class body).
      
      BUG=v8:4966, v8:4968, v8:4974
      LOG=n
      
      Review-Url: https://codereview.chromium.org/1941823003
      Cr-Commit-Position: refs/heads/master@{#35957}
      9e9abcff
  2. 12 Dec, 2015 1 commit
  3. 30 Sep, 2015 1 commit
  4. 10 Jun, 2015 1 commit
  5. 19 Feb, 2015 1 commit
  6. 10 Feb, 2015 1 commit
    • adamk's avatar
      Enable compiling mjsunit tests as ES6 modules · a18b797f
      adamk authored
      Adding the line "// MODULE" to an mjsunit file will now cause
      run-tests.py to prefix the test case with "--module" in the
      d8 commandline.
      
      d8 has itself been updated to treat files preceded with "--module" as
      modules (that is, it compiles them with ScriptCompiler::CompileModule,
      and turns on --harmony-modules).
      
      Review URL: https://codereview.chromium.org/902263002
      
      Cr-Commit-Position: refs/heads/master@{#26555}
      a18b797f
  7. 22 Jan, 2015 1 commit
  8. 07 Jan, 2015 1 commit
  9. 05 Jan, 2015 1 commit
  10. 03 Jan, 2015 1 commit
  11. 24 Jun, 2014 1 commit
  12. 04 Jun, 2014 1 commit
  13. 03 Apr, 2014 1 commit
  14. 31 Mar, 2014 1 commit
  15. 28 Feb, 2014 3 commits
  16. 25 Feb, 2014 1 commit
  17. 20 Feb, 2014 1 commit
  18. 14 Feb, 2014 1 commit