mirror of https://github.com/tc39/test262.git
25 lines
621 B
JavaScript
25 lines
621 B
JavaScript
// Copyright (c) 2012 Ecma International. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
es5id: 15.2.3.4-4-b-1
|
|
description: >
|
|
Object.getOwnPropertyNames - descriptor of resultant array is all
|
|
true
|
|
includes: [runTestCase.js]
|
|
---*/
|
|
|
|
function testcase() {
|
|
var obj = new Object();
|
|
obj.x = 1;
|
|
obj.y = 2;
|
|
var result = Object.getOwnPropertyNames(obj);
|
|
var desc = Object.getOwnPropertyDescriptor(result,"0");
|
|
if (desc.enumerable === true &&
|
|
desc.configurable === true &&
|
|
desc.writable === true) {
|
|
return true;
|
|
}
|
|
}
|
|
runTestCase(testcase);
|