From 6c1900372346c3006a7587972b39ecea14ba7e13 Mon Sep 17 00:00:00 2001 From: "bclary%bclary.com" Date: Sun, 10 Sep 2006 09:26:16 +0000 Subject: [PATCH] JavaScript Test - update test to reflect current behavior git-svn-id: svn://10.0.0.236/trunk@209624 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/tests/js1_7/block/regress-349493.js | 2 +- mozilla/js/tests/js1_7/block/regress-349499.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/js/tests/js1_7/block/regress-349493.js b/mozilla/js/tests/js1_7/block/regress-349493.js index 71a80abf272..36818da90eb 100755 --- a/mozilla/js/tests/js1_7/block/regress-349493.js +++ b/mozilla/js/tests/js1_7/block/regress-349493.js @@ -51,7 +51,7 @@ function test() printBugNumber (bug); printStatus (summary); - expect = 'function (x) {\n return x ? 0 : let (a = 3) a;\n}'; + expect = 'function (x) {\n return x ? 0 : (let (a = 3) a);\n}'; var f = function (x) { return x ? 0 : let (a = 3) a; } actual = f.toString(); diff --git a/mozilla/js/tests/js1_7/block/regress-349499.js b/mozilla/js/tests/js1_7/block/regress-349499.js index 0f2ca0474e3..0762dd1ec5e 100755 --- a/mozilla/js/tests/js1_7/block/regress-349499.js +++ b/mozilla/js/tests/js1_7/block/regress-349499.js @@ -51,7 +51,7 @@ function test() printBugNumber (bug); printStatus (summary); - expect = 'function (x) {\n new (let (x = 3) x)();\n}'; + expect = 'function (x) {\n new (let (x = 3) x);\n}'; var f = function(x) { new let (x = 3) x }; actual = f.toString();