2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: If Type(x) is not Reference, return true
|
2020-09-11 17:58:45 +02:00
|
|
|
esid: sec-delete-operator-runtime-semantics-evaluation
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking primitive value and Object value cases
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
if (delete 1 !== true) {
|
2021-07-28 22:48:39 +02:00
|
|
|
throw new Test262Error('#1: delete 1 === true');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#2
|
|
|
|
if (delete new Object() !== true) {
|
2021-07-28 22:48:39 +02:00
|
|
|
throw new Test262Error('#2: delete new Object() === true');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|