test262/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-false.js
André Bargull f95b56ab28 Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
2018-02-09 12:09:47 -05:00

33 lines
751 B
JavaScript

// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 9.5.10
description: >
[[Delete]] (P)
The result is a Boolean value.
features: [Reflect]
---*/
var target = {};
var p = new Proxy(target, {
deleteProperty: function() {
return 0;
}
});
Object.defineProperties(target, {
isConfigurable: {
value: 1,
configurable: true
},
notConfigurable: {
value: 1,
configurable: false
}
});
assert.sameValue(Reflect.deleteProperty(p, "attr"), false);
assert.sameValue(Reflect.deleteProperty(p, "isConfigurable"), false);
assert.sameValue(Reflect.deleteProperty(p, "notConfigurable"), false);