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

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

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

verifyEnumerable(obj, 'a');

reportCompare(0, 0);