Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / create / 15.2.3.5-4-84.js
blob465512f852391f6a12f9745dcc7e64d4bd4ab48f
1 // Copyright (c) 2012 Ecma International.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es5id: 15.2.3.5-4-84
6 description: >
7     Object.create - 'enumerable' property of one property in
8     'Properties' is a Function object (8.10.5 step 3.b)
9 ---*/
11 var accessed = false;
13 var newObj = Object.create({}, {
14   prop: {
15     enumerable: function() {}
16   }
17 });
18 for (var property in newObj) {
19   if (property === "prop") {
20     accessed = true;
21   }
24 assert(accessed, 'accessed !== true');
26 reportCompare(0, 0);