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
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-07-22 01:09:02 +02:00
|
|
|
When the [[Delete]] method of O is called with property name P,
|
|
|
|
and If the property has the DontDelete attribute, return false
|
2020-09-11 17:58:45 +02:00
|
|
|
esid: sec-delete-operator-runtime-semantics-evaluation
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Try to delete Math.E, that has the DontDelete attribute
|
|
|
|
flags: [noStrict]
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#1
|
2020-09-11 17:58:45 +02:00
|
|
|
if (delete Math.E !== false) {
|
2021-07-28 22:48:39 +02:00
|
|
|
throw new Test262Error('#1: delete Math.E === false. Actual: ' + delete Math.E);
|
2020-09-11 17:58:45 +02:00
|
|
|
}
|
2011-09-07 08:35:18 +02:00
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//CHECK#2
|
2020-09-11 17:58:45 +02:00
|
|
|
if (Math.E === undefined) {
|
2021-07-28 22:48:39 +02:00
|
|
|
throw new Test262Error('#2: delete Math.E; Math.E !== undefined');
|
2020-09-11 17:58:45 +02:00
|
|
|
}
|
2011-09-07 08:35:18 +02:00
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|