Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / language / global-code / S10.4.1_A1_T2.js
blobdeef341ea733812888f3f7bd8285bd9747961d3e
1 // Copyright 2009 the Sputnik authors.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 info: |
6     Variable instantiation is performed using the global object as
7     the variable object and using property attributes { DontDelete }
8 es5id: 10.4.1_A1_T2
9 description: Checking if deleting variable x, that is defined as x = 1, fails
10 flags: [noStrict]
11 ---*/
13 x = 1;
15 if (this.x !== 1) {
16   throw new Test262Error("#1: variable x is a property of global object");
19 if(delete this.x !== true){
20   throw new Test262Error("#2: variable x has property attribute DontDelete");
23 reportCompare(0, 0);