summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/harness/propertyhelper-verifyenumerable-enumerable-symbol.js
blob: bd4101203873933907960c915f1f5fe2368253c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
    Objects whose specified symbol property is enumerable satisfy the assertion.
includes: [propertyHelper.js]
features: [Symbol]
---*/

var obj = {};
var s = Symbol('1');
Object.defineProperty(obj, s, {
  enumerable: true
});

verifyEnumerable(obj, s);

reportCompare(0, 0);