tests/auto/qml/ecmascripttests/test262/test/language/expressions/delete/S11.4.1_A2.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 GetBase(x) doesn't have a property GetPropertyName(x), return true |
| 6 | es5id: 11.4.1_A2.2_T3 |
| 7 | description: Checking undeclared variable case |
| 8 | ---*/ |
| 9 | |
| 10 | //CHECK#1 |
| 11 | if (delete this.x !== true) { |
| 12 | $ERROR('#1: delete this.x === true'); |
| 13 | } |