Debian Codegraph @

js/src/tests/test262/language/expressions/logical-assignment/lgcl-or-assignment-operator-unresolved-lhs-strict.js

raw
1 'use strict';
2 // Copyright (c) 2020 Ecma International. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-assignment-operators-runtime-semantics-evaluation
7 description: >
8 ReferenceError is thrown if the LeftHandSideExpression of a Logical
9 Assignment operator(||=) evaluates to an unresolvable reference
10 flags: [onlyStrict]
11 features: [logical-assignment-operators]
12
13 ---*/
14
15 assert.throws(ReferenceError, function() {
16 unresolved ||= 1;
17 });
18
19 reportCompare(0, 0);