bug 452498 - modify test to deal with new SyntaxError: duplicate argument is mixed with destructuring pattern error.
authorBob Clary <bclary@bclary.com>
Mon, 23 Mar 2009 10:43:16 -0700
changeset 26567 4d62203ea817db5608645f9ae9291820e8500da5
parent 26566 5a51f90893848413ac4a6f67b9c65e1ae3c9a840
child 26568 37ae217b403e7b4810cc9f44b13894558052320a
push id6115
push userrsayre@mozilla.com
push dateTue, 24 Mar 2009 17:50:03 +0000
treeherdermozilla-central@4a34c6235bb7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs452498
milestone1.9.2a1pre
bug 452498 - modify test to deal with new SyntaxError: duplicate argument is mixed with destructuring pattern error.
js/tests/js1_8_1/regress/regress-452498-114.js
--- a/js/tests/js1_8_1/regress/regress-452498-114.js
+++ b/js/tests/js1_8_1/regress/regress-452498-114.js
@@ -57,17 +57,17 @@ function test()
 
   for (var x = 0; x < 3; ++x){ y = function (){} }
 
 // glorp!
 // Assertion failed: "Constantly false guard detected": 0 (../nanojit/LIR.cpp:999)
 // (note, this is with -j; I don't know what the glorp! message is about.)
 
 // =====
-  function y([{x: x, x}]){}
+  function y([{x: x, y}]){}
 
 // Assertion failure: UPVAR_FRAME_SKIP(pn->pn_cookie) == (pn->pn_defn ? cg->staticLevel : 0), at ../jsemit.cpp:3547
 
 // =====
 
   try
   {
     eval("(1.3.__defineGetter__(\"\"));let (y, x) { var z = true, x = 0; }");