summaryrefslogtreecommitdiff
path: root/test/harness/propertyhelper-verifynotenumerable-not-enumerable-symbol.js
blob: 6c19b2e5b634d15355aa6d85ec22d91cb8173cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 not enumerable satisfy the
    assertion.
includes: [propertyHelper.js]
features: [Symbol]
---*/

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

verifyNotEnumerable(obj, s);