Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/delete/S11.4.1_A3.2_T3.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: If the property doesn't have the DontDelete attribute, return true
6 es5id: 11.4.1_A3.2_T3
7 description: Checking declared variable
8 ---*/
9
10 //CHECK#1
11 function MyFunction(){};
12 var MyObject = new MyFunction();
13 MyObject.prop = 1;
14 if (delete MyObject.prop !== true) {
15 $ERROR('#1: function MyFunction(){}; var MyObject = new MyFunction(); MyFunction.prop = 1; delete MyObject.prop === true');
16 }