| Index: test/mjsunit/switch.js
|
| diff --git a/test/mjsunit/switch.js b/test/mjsunit/switch.js
|
| index 6a61fe5940933ddb68ef4aeaf482b1fd92ec7aa4..e4f8194c5333fbeccaa2fcc85cdfcc07812b7623 100644
|
| --- a/test/mjsunit/switch.js
|
| +++ b/test/mjsunit/switch.js
|
| @@ -162,7 +162,7 @@ function regress_string(value) {
|
|
|
| }
|
| return json;
|
| -};
|
| +}
|
| assertEquals(1, regress_string('object'), 'regression-string');
|
|
|
| function f5(x) {
|
| @@ -367,7 +367,7 @@ function switch_gen(clause_type, feedback, optimize) {
|
| if (optimize) %OptimizeFunctionOnNextCall(fn);
|
|
|
| return fn;
|
| - };
|
| + }
|
|
|
| return opt(new Function(
|
| 'tag',
|
| @@ -379,7 +379,7 @@ function switch_gen(clause_type, feedback, optimize) {
|
| }).join(';') +
|
| '}'
|
| ));
|
| -};
|
| +}
|
|
|
| function test_switch(clause_type, test_type, feedback, optimize) {
|
| var pairs = [],
|
| @@ -431,7 +431,7 @@ function test_switch(clause_type, test_type, feedback, optimize) {
|
| pairs.forEach(function(pair) {
|
| assertEquals(fn(pair.value), pair.expected);
|
| });
|
| -};
|
| +}
|
|
|
| // test_switch(clause_type, test_type, feedback, optimize);
|
|
|
| @@ -451,12 +451,12 @@ function test_switches(opt) {
|
| test_switch(clause_type, test_type, value, value, opt);
|
| });
|
| });
|
| - };
|
| + }
|
|
|
| test('string');
|
| test('smi');
|
| test('mixed');
|
| -};
|
| +}
|
|
|
| test_switches(false);
|
| test_switches(true);
|
|
|