| Index: test/mjsunit/es6/arrow-functions.js
|
| diff --git a/test/mjsunit/es6/arrow-functions.js b/test/mjsunit/es6/arrow-functions.js
|
| index 33147ab3971b3a28581818d4b3aa4b2cf67ecc9b..c1b375a4112685c615ff8b4125de9a8ec9b1fb87 100644
|
| --- a/test/mjsunit/es6/arrow-functions.js
|
| +++ b/test/mjsunit/es6/arrow-functions.js
|
| @@ -68,3 +68,16 @@ assertEquals([5, 10], fives);
|
| assertThrows(function() { return arrowFn.caller; }, TypeError);
|
| assertThrows(function() { arrowFn.caller = {}; }, TypeError);
|
| })();
|
| +
|
| +
|
| +// v8:4474
|
| +(function testConciseBodyReturnsRegexp() {
|
| + var arrow1 = () => /foo/
|
| + var arrow2 = () => /foo/;
|
| + var arrow3 = () => /foo/i
|
| + var arrow4 = () => /foo/i;
|
| + assertEquals(arrow1.toString(), "() => /foo/");
|
| + assertEquals(arrow2.toString(), "() => /foo/");
|
| + assertEquals(arrow3.toString(), "() => /foo/i");
|
| + assertEquals(arrow4.toString(), "() => /foo/i");
|
| +});
|
|
|