Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Reflect/deleteProperty/delete-properties.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: 26.1.4
5 description: >
6 Delete property.
7 info: |
8 26.1.4 Reflect.deleteProperty ( target, propertyKey )
9
10 ...
11 4. Return target.[[Delete]](key).
12 ---*/
13
14 var o = {
15 prop: 42
16 };
17
18 Reflect.deleteProperty(o, 'prop');
19
20 assert.sameValue(o.hasOwnProperty('prop'), false);