blob: d8e0b58f99ea10f53de67843a61a4095ddcb3f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: If Type(x) is not Reference, return true
esid: sec-delete-operator-runtime-semantics-evaluation
description: Checking primitive value and Object value cases
---*/
//CHECK#1
if (delete 1 !== true) {
throw new Test262Error('#1: delete 1 === true');
}
//CHECK#2
if (delete new Object() !== true) {
throw new Test262Error('#2: delete new Object() === true');
}
reportCompare(0, 0);
|