blob: ee0a00693d9d5699b3f062e09fcc01d08e1ed104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 11.4.1-4-a-3-s
description: >
TypeError isn't thrown when deleting configurable data property
includes: [runTestCase.js]
---*/
function testcase() {
var obj = {};
Object.defineProperty(obj, "prop", {
value: "abc",
configurable: true
});
delete obj.prop;
return !obj.hasOwnProperty("prop");
}
runTestCase(testcase);
|