Chromium Code Reviews| Index: test/mjsunit/regress/regress-892742.js |
| diff --git a/test/mjsunit/regress/regress-892742.js b/test/mjsunit/regress/regress-892742.js |
| index 78a57b2ad57f5e734a0ff3ed2ee15f2a77e06b15..9f58df9c66558421ae001e3ed9eb56d5f99bde18 100644 |
| --- a/test/mjsunit/regress/regress-892742.js |
| +++ b/test/mjsunit/regress/regress-892742.js |
| @@ -27,19 +27,19 @@ |
| function f() { |
| return/* Counts as non-line-terminating whitespace */1; |
| -}; |
| +} |
| // According to ECMA-262, this comment should be parsed as a |
| // line terminator making g() return undefined. |
| function g() { |
| - return/* Counts as line-terminator whitespace. |
| + return;/* Counts as line-terminator whitespace. |
|
Rico
2011/12/08 10:24:37
according to comment we should not add this here
|
| */2; |
| -}; |
| +} |
| function h() { |
| - return// Comment doesn't include line-terminator at end. |
| + return;// Comment doesn't include line-terminator at end. |
|
Rico
2011/12/08 10:24:37
don't add here
|
| 3; |
| -}; |
| +} |
| assertEquals(1, f()); |