lgcl-nullish-eval-strict-strict.js (512B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (C) 2020 Rick Waldron. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 6 /*--- 7 esid: sec-assignment-operators 8 description: > 9 Strict Mode - SyntaxError is thrown if the identifier eval appear 10 as the LeftHandSideExpression of a Logical Assignment operator(??=) 11 flags: [onlyStrict] 12 negative: 13 phase: parse 14 type: SyntaxError 15 features: [logical-assignment-operators] 16 ---*/ 17 $DONOTEVALUATE(); 18 19 eval ??= 20;