Comment #2 on issue 4370 by [email protected]: Assignment to new.target should be an early error
https://code.google.com/p/v8/issues/detail?id=4370#c2
The following revision refers to this bug:https://chromium.googlesource.com/v8/v8.git/+/ef52836cd8c1340cf0c5054560fc936d6de1d25e
commit ef52836cd8c1340cf0c5054560fc936d6de1d25e Author: adamk <[email protected]> Date: Thu Aug 13 18:06:04 2015 [es6] Make assignment to new.target an early ReferenceError In doing so, fix calls CheckAndRewriteReferenceExpression to take proper start and end positions (instead of just pointing at the first token in the LHS expression). BUG=v8:4370 LOG=n Review URL: https://codereview.chromium.org/1290013002 Cr-Commit-Position: refs/heads/master@{#30166} [modify] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/src/ast.h[modify] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/src/parser.cc [modify] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/src/preparser.cc [modify] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/src/preparser.h [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-assignment.js [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-assignment.out [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-for-loop.js [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-for-loop.out [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-postfix-op.js [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-postfix-op.out [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-prefix-op.js [add] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/message/new-target-prefix-op.out [modify] http://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e/test/mjsunit/harmony/new-target.js
--You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at: https://code.google.com/hosting/settings -- -- 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.
