Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/compound-assignment/S11.13.2_A2.1_T3.8.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: Operator uses GetValue
6 es5id: 11.13.2_A2.1_T3.8
7 description: >
8 If GetBase(LeftHandSideExpression) is null, throw ReferenceError.
9 Check operator is "x >>>= y"
10 ---*/
11
12 //CHECK#1
13 try {
14 var z = (x >>>= 1);
15 $ERROR('#1.1: x >>>= 1 throw ReferenceError. Actual: ' + (z));
16 }
17 catch (e) {
18 if ((e instanceof ReferenceError) !== true) {
19 $ERROR('#1.2: x >>>= 1 throw ReferenceError. Actual: ' + (e));
20 }
21 }