lshift-eval-strict-strict.js (505B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (c) 2012 Ecma International. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 6 /*--- 7 es5id: 11.13.2-6-6-s 8 esid: sec-assignment-operators 9 description: > 10 Strict Mode - SyntaxError is thrown if the identifier eval appear 11 as the LeftHandSideExpression of a Compound Assignment 12 operator(<<=) 13 flags: [onlyStrict] 14 negative: 15 phase: parse 16 type: SyntaxError 17 ---*/ 18 19 $DONOTEVALUATE(); 20 21 eval <<= 20;