Debian Codegraph @

js/src/tests/test262/harness/propertyhelper-verifyenumerable-enumerable-symbol.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: >
6 Objects whose specified symbol property is enumerable satisfy the assertion.
7 includes: [propertyHelper.js]
8 features: [Symbol]
9 ---*/
10
11 var obj = {};
12 var s = Symbol('1');
13 Object.defineProperty(obj, s, {
14 enumerable: true
15 });
16
17 verifyEnumerable(obj, s);
18
19 reportCompare(0, 0);