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
|
|
|
|
|
|
|
/*---
|
2020-09-11 17:58:45 +02:00
|
|
|
esid: sec-delete-operator-runtime-semantics-evaluation
|
2014-07-22 01:09:02 +02:00
|
|
|
description: >
|
2015-06-08 23:35:11 +02:00
|
|
|
TypeError isn't thrown when deleting configurable data property
|
2014-07-22 01:09:02 +02:00
|
|
|
---*/
|
|
|
|
|
2020-09-11 17:58:45 +02:00
|
|
|
var obj = {};
|
|
|
|
Object.defineProperty(obj, 'prop', {
|
|
|
|
value: 'abc',
|
|
|
|
configurable: true,
|
|
|
|
});
|
2014-07-22 01:09:02 +02:00
|
|
|
|
2020-09-11 17:58:45 +02:00
|
|
|
delete obj.prop;
|
2015-08-06 18:31:06 +02:00
|
|
|
|
2020-09-11 17:58:45 +02:00
|
|
|
assert.sameValue(
|
|
|
|
obj.hasOwnProperty('prop'),
|
|
|
|
false,
|
|
|
|
'obj.hasOwnProperty("prop")'
|
|
|
|
);
|