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-190.js
blob28f3dfd9ff5a57892a4ed95534cfa332c347c3df
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-190
6 description: >
7     Object.create - 'writable' property of one property in
8     'Properties' is an inherited accessor property without a get
9     function (8.10.5 step 6.a)
10 includes: [propertyHelper.js]
11 ---*/
13 var proto = {
14   value: 100
17 Object.defineProperty(proto, "writable", {
18   set: function() {}
19 });
21 var ConstructFun = function() {};
22 ConstructFun.prototype = proto;
24 var descObj = new ConstructFun();
26 var newObj = Object.create({}, {
27   prop: descObj
28 });
30 verifyProperty(newObj, "prop", {
31   value: 100,
32   writable: false,
33 });
35 reportCompare(0, 0);