tests/auto/qml/ecmascripttests/test262/test/language/expressions/grouping/S11.1.6_A2_T2.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 | "This" operator doesn't use GetValue. The operators "delete" and "typeof" |
| 7 | can be applied to parenthesised expressions |
| 8 | es5id: 11.1.6_A2_T2 |
| 9 | description: > |
| 10 | Applying "delete" operator to an undefined variable |
| 11 | flags: [noStrict] |
| 12 | ---*/ |
| 13 | |
| 14 | //CHECK#1 |
| 15 | if (delete (x) !== true) { |
| 16 | $ERROR('#1: delete (x) === true'); |
| 17 | } |