From 7b6ef7ba8828f069a864b8cbce2189dfacb211d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Roberto=20Vidal?= <rvidal@extrema-sistemas.com>
Date: Tue, 11 Feb 2014 19:56:32 -0500
Subject: [PATCH] Fix Bugzilla 1450

---
 test/suite/ch12/12.6/12.6.4/12.6.4-2.js | 36 +++++++------------------
 1 file changed, 10 insertions(+), 26 deletions(-)

diff --git a/test/suite/ch12/12.6/12.6.4/12.6.4-2.js b/test/suite/ch12/12.6/12.6.4/12.6.4-2.js
index dca36c1ff1..ffdd58cdfb 100644
--- a/test/suite/ch12/12.6/12.6.4/12.6.4-2.js
+++ b/test/suite/ch12/12.6/12.6.4/12.6.4-2.js
@@ -10,43 +10,27 @@
 
 
 function testcase() {
-        var obj = {};
-
-        var proto = {};
-
-        Object.defineProperty(proto, "prop", {
-            value: "inheritedValue",
-            enumerable: false,
-            configurable: true,
-            writable: true
-        });
+        var proto = {
+            prop: "enumerableValue"
+        };
 
         var ConstructFun = function () { };
         ConstructFun.prototype = proto;
 
         var child = new ConstructFun();
 
-        Object.defineProperty(child, "prop1", {
-            value: "overridedValue1",
+        Object.defineProperty(child, "prop", {
+            value: "nonEnumerableValue",
             enumerable: false
         });
-        Object.defineProperty(child, "prop2", {
-            value: "overridedValue2",
-            enumerable: true
-        });
-        var accessedProp1 = false;
-        var accessedProp2 = false;
+
+        var accessedProp = false;
 
         for (var p in child) {
-            if (child.hasOwnProperty(p)) {
-                if (p === "prop1") {
-                    accessedProp1 = true;
-                }
-                if (p === "prop2") {
-                    accessedProp2 = true;
-                }
+            if (p === "prop") {
+                accessedProp = true;
             }
         }
-        return !accessedProp1 && accessedProp2 && child.prop1 === "overridedValue1" && child.prop2 === "overridedValue2";
+        return !accessedProp;
     }
 runTestCase(testcase);
-- 
GitLab