Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Proxy/deleteProperty/boolean-trap-result-boolean-true.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 9.5.10
5 description: >
6 [[Delete]] (P)
7
8 The result is a Boolean value.
9 ---*/
10
11 var p = new Proxy({}, {
12 deleteProperty: function() {
13 return 1;
14 }
15 });
16
17 assert.sameValue(Reflect.deleteProperty(p, "attr"), true);