Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/delete/S11.4.1_A4.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: |
6 "Delete" operator removes property, which is reference to the object, not
7 the object
8 es5id: 11.4.1_A4
9 description: Checking two reference by one object
10 flags: [noStrict]
11 ---*/
12
13 //CHECK#1
14 var obj = new Object();
15 var ref = obj;
16 delete ref;
17 if (typeof obj !== "object") {
18 $ERROR('#1: obj = new Object(); ref = obj; delete ref; typeof obj === "object". Actual: ' + (typeof obj));
19 }