Reviewers: rossberg,

Message:
PTAL

Description:
[parser] partially revert "use-strict directives in function body affect init
block"

TC39 agreed to disallow "use strict" directives in function body when
non-simple parameter lists are used.

This is a continuation of caitp's CL https://codereview.chromium.org/1281163002/
with some refactorings removed for now.

Still TODO: there is a lot of duplication between the is_simple field of
FormalParametersBase and the NonSimpleParameter property ExpressionClassifier
keeps track of. It should be possible to remove the former with a minor
refactoring of arrow function parsing. This will be attempted in a follow-up CL.

BUG=
LOG=N

Please review this at https://codereview.chromium.org/1300103005/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+501, -202 lines):
  M src/expression-classifier.h
  M src/messages.h
  M src/parser.h
  M src/parser.cc
  M src/preparser.h
  M src/preparser.cc
  M src/scopes.h
  M src/scopes.cc
  M test/cctest/test-parsing.cc
  M test/mjsunit/harmony/arrow-rest-params.js
  M test/mjsunit/harmony/default-parameters.js
  M test/mjsunit/harmony/destructuring.js
  M test/mjsunit/harmony/rest-params.js
  M test/mjsunit/harmony/spread-call-super-property.js
  M test/mjsunit/strong/destructuring.js
  M test/mjsunit/strong/function-arity.js
  M test/mjsunit/strong/literals.js


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to