lgcl-or-assignment-operator-unresolved-rhs.js (549B)
1 // Copyright (c) 2020 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-assignment-operators-runtime-semantics-evaluation 6 description: > 7 ReferenceError is not thrown if the AssignmentExpression of a Logical 8 Assignment operator(||=) evaluates to an unresolvable reference and the 9 AssignmentExpression is not evaluated. 10 features: [logical-assignment-operators] 11 12 ---*/ 13 14 var value = 2; 15 16 assert.sameValue(value ||= unresolved, 2, "value"); 17 18 reportCompare(0, 0);