mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
JavaScript Test - update test to reflect current behavior
This commit is contained in:
parent
114b6b4308
commit
8b7b98fb9c
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user