| Index: test/mjsunit/harmony/regress/regress-4056.js
|
| diff --git a/test/mjsunit/harmony/regress/regress-crbug-465671-null.js b/test/mjsunit/harmony/regress/regress-4056.js
|
| similarity index 55%
|
| copy from test/mjsunit/harmony/regress/regress-crbug-465671-null.js
|
| copy to test/mjsunit/harmony/regress/regress-4056.js
|
| index d24599c38526aca26943669a1b5e153ee652bd9a..d938df0be088185f1990e4b253c5d5c300c39f1f 100644
|
| --- a/test/mjsunit/harmony/regress/regress-crbug-465671-null.js
|
| +++ b/test/mjsunit/harmony/regress/regress-4056.js
|
| @@ -4,13 +4,9 @@
|
|
|
| // Flags: --harmony-arrow-functions
|
|
|
| -// This used to trigger a segfault because of NULL being accessed.
|
| -function f() {
|
| - var a = [10];
|
| - try {
|
| - f();
|
| - } catch(e) {
|
| - a.map((v) => v + 1);
|
| - }
|
| -}
|
| -f();
|
| +function strictFunctionArrowEval(s) {
|
| + "use strict";
|
| + return (()=>eval(s))();
|
| +};
|
| +
|
| +assertEquals(strictFunctionArrowEval("42"), 42)
|
|
|