Debian Codegraph @

js/src/tests/test262/language/expressions/delete/11.4.1-4.a-9-s-strict.js

raw
1 'use strict';
2 // Copyright (c) 2012 Ecma International. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 info: |
7 This test is actually testing the [[Delete]] internal method (8.12.8). Since the
8 language provides no way to directly exercise [[Delete]], the tests are placed here.
9 esid: sec-delete-operator-runtime-semantics-evaluation
10 description: >
11 delete operator throws TypeError when deleting a non-configurable
12 data property (Math.LN2) in strict mode
13 flags: [onlyStrict]
14 ---*/
15
16 assert.throws(TypeError, function() {
17 delete Math.LN2;
18 });
19
20 reportCompare(0, 0);