ef52836cd8
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}
5 lines
181 B
Plaintext
5 lines
181 B
Plaintext
*%(basename)s:7: ReferenceError: Invalid left-hand side in assignment
|
|
function f() { new.target = 5 }
|
|
^^^^^^^^^^
|
|
ReferenceError: Invalid left-hand side in assignment
|