summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/create/15.2.3.5-4-269.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/create/15.2.3.5-4-269.js')
-rw-r--r--test/built-ins/Object/create/15.2.3.5-4-269.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Object/create/15.2.3.5-4-269.js b/test/built-ins/Object/create/15.2.3.5-4-269.js
index b10039dc2..d09f86e98 100644
--- a/test/built-ins/Object/create/15.2.3.5-4-269.js
+++ b/test/built-ins/Object/create/15.2.3.5-4-269.js
@@ -8,24 +8,24 @@ description: >
an inherited data property (8.10.5 step 8.a)
---*/
-var data = "data";
-var proto = {
- set: function(value) {
- data = value;
- }
-};
+ var data = "data";
+ var proto = {
+ set: function (value) {
+ data = value;
+ }
+ };
-var ConstructFun = function() {};
-ConstructFun.prototype = proto;
-var child = new ConstructFun();
+ var ConstructFun = function () { };
+ ConstructFun.prototype = proto;
+ var child = new ConstructFun();
-var newObj = Object.create({}, {
- prop: child
-});
+ var newObj = Object.create({}, {
+ prop: child
+ });
-var hasProperty = newObj.hasOwnProperty("prop");
+ var hasProperty = newObj.hasOwnProperty("prop");
-newObj.prop = "overrideData";
+ newObj.prop = "overrideData";
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(data, "overrideData", 'data');