2014-07-22 01:09:02 +02:00
|
|
|
// Copyright (c) 2012 Ecma International. All rights reserved.
|
2015-07-17 17:42:45 +02:00
|
|
|
// 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
|
|
|
This test is actually testing the [[Delete]] internal method (8.12.8). Since the
|
|
|
|
language provides no way to directly exercise [[Delete]], the tests are placed here.
|
2020-09-11 17:58:45 +02:00
|
|
|
esid: sec-delete-operator-runtime-semantics-evaluation
|
2014-07-22 01:09:02 +02:00
|
|
|
description: >
|
|
|
|
delete operator throws TypeError when deleting a non-configurable
|
|
|
|
data property (Math.LN2) in strict mode
|
|
|
|
flags: [onlyStrict]
|
|
|
|
---*/
|
|
|
|
|
2015-08-11 17:42:41 +02:00
|
|
|
assert.throws(TypeError, function() {
|
2020-09-11 17:58:45 +02:00
|
|
|
delete Math.LN2;
|
2015-08-11 17:42:41 +02:00
|
|
|
});
|