Fix test for 597870 (CLOSED TREE).
authorBrendan Eich <brendan@mozilla.org>
Sun, 19 Sep 2010 22:04:16 -0700
changeset 54421 9f9e109033eddbe243632ace37ce0d5dae7a3c8c
parent 54420 3559d9fded5f93ef4ae8428ada67146214645c45
child 54422 ed934a5f7ef1391d3dc093fdecad812f4d86609d
push idunknown
push userunknown
push dateunknown
bugs597870
milestone2.0b6pre
Fix test for 597870 (CLOSED TREE).
js/src/tests/js1_8_5/regress/regress-597870.js
--- a/js/src/tests/js1_8_5/regress/regress-597870.js
+++ b/js/src/tests/js1_8_5/regress/regress-597870.js
@@ -3,20 +3,20 @@
  * Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/licenses/publicdomain/
  */
 
 try {
   (function() {
     __defineSetter__("x", Math.sin);
   } ());
+  function::x =
+    Proxy.createFunction(function() {
+        return {
+          get: function() {
+            return [];
+          }
+        };
+      } (),
+      function() {});
 } catch(e) {}
-function::x =
-  Proxy.createFunction(function() {
-      return {
-        get: function() {
-          return [];
-        }
-      };
-    } (),
-    function() {});
 
 reportCompare(0, 0, "ok");