| Index: test/mjsunit/regress/regress-2470.js
|
| diff --git a/test/mjsunit/regress/regress-2470.js b/test/mjsunit/regress/regress-2470.js
|
| index 29a0b250acb2e10919e9a8de8b3b73c57ba3cd7d..cba1b06c3e14716cb542dd96d3a4138fbd7fc502 100644
|
| --- a/test/mjsunit/regress/regress-2470.js
|
| +++ b/test/mjsunit/regress/regress-2470.js
|
| @@ -34,12 +34,14 @@ assertThrows('Function("});(function(){");', SyntaxError);
|
| // Test whether block comments are handled correctly.
|
| assertDoesNotThrow('Function("/*", "*/", "/**/");');
|
| assertDoesNotThrow('Function("/*", "a", "*/", "/**/");');
|
| -assertThrows('Function("a", "/*", "*/", "/**/");', SyntaxError);
|
| +assertDoesNotThrow('Function("a", "/*", "*/", "/**/");');
|
| +assertThrows('Function("a", "/*", "*/", "b", "/*", "*/", "/**/");', SyntaxError);
|
|
|
| // Test whether line comments are handled correctly.
|
| assertDoesNotThrow('Function("//", "//")');
|
| assertDoesNotThrow('Function("//", "//", "//")');
|
| -assertThrows('Function("a", "//", "//")', SyntaxError);
|
| +assertDoesNotThrow('Function("a", "//", "//")');
|
| +assertThrows('Function("a", "", "//", "//")', SyntaxError);
|
|
|
| // Some embedders rely on the string representation of the resulting
|
| // function in cases where no formal parameters are specified.
|
|
|