| 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 |
When the [[Delete]] method of O is called with property name P, |
| 7 |
and If the property has the DontDelete attribute, return false |
| 8 |
es5id: 8.12.7_A1 |
| 9 |
description: Try to delete Math.E, that has the DontDelete attribute |
| 10 |
flags: [noStrict] |
| 11 |
---*/ |
| 12 |
|
| 13 |
////////////////////////////////////////////////////////////////////////////// |
| 14 |
//CHECK#1 |
| 15 |
if (delete Math.E !== false){ |
| 16 |
$ERROR('#1: delete Math.E === false. Actual: ' + (delete Math.E)); |
| 17 |
}; |
| 18 |
// |
| 19 |
////////////////////////////////////////////////////////////////////////////// |
| 20 |
|
| 21 |
////////////////////////////////////////////////////////////////////////////// |
| 22 |
//CHECK#2 |
| 23 |
if (Math.E === undefined){ |
| 24 |
$ERROR('#2: delete Math.E; Math.E !== undefined'); |
| 25 |
}; |
| 26 |
// |
| 27 |
////////////////////////////////////////////////////////////////////////////// |