Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/delete/11.4.1-4-a-4-s.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 11.4.1-4-a-4-s
6 description: >
7 TypeError isn't thrown when deleting configurable accessor property
8 ---*/
9
10 var obj = {};
11 Object.defineProperty(obj, "prop", {
12 get: function () {
13 return "abc";
14 },
15 configurable: true
16 });
17
18 delete obj.prop;
19
20 assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")');