Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/freeze/frozen-object-contains-symbol-properties-non-strict.js

raw
1 // Copyright (C) 2013 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 19.1.2.5
5 description: >
6 Frozen object contains symbol properties.
7 flags: [noStrict]
8 features: [Symbol]
9 ---*/
10 var sym = Symbol();
11 var obj = {};
12 obj[sym] = 1;
13 Object.freeze(obj);
14 obj[sym] = 2;
15 assert.sameValue(obj[sym], 1, "The value of `obj[sym]` is `1`");
16 assert.sameValue(delete obj[sym], false, "`delete obj[sym]` is `false`");