| Index: test/mjsunit/regress/regress-5216.js
|
| diff --git a/test/mjsunit/harmony/regexp-change-exec.js b/test/mjsunit/regress/regress-5216.js
|
| similarity index 60%
|
| copy from test/mjsunit/harmony/regexp-change-exec.js
|
| copy to test/mjsunit/regress/regress-5216.js
|
| index ff84506d894ba9a4cb6e9b3127812a9e74642f93..9097310fc2ce20542e7d979cb7612576327d94e4 100644
|
| --- a/test/mjsunit/harmony/regexp-change-exec.js
|
| +++ b/test/mjsunit/regress/regress-5216.js
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +// Ensure that custom error constructors don't show up in stack traces.
|
| +
|
| class MyError extends Error { }
|
| -RegExp.prototype.exec = () => { throw new MyError() };
|
| -assertThrows(() => "foo".match(/bar/), MyError);
|
| +assertFalse(new MyError().stack.includes("at MyError"));
|
|
|