Index: test/mjsunit/regress/regress-crbug-610207.js |
diff --git a/test/mjsunit/regress/regress-crbug-599067.js b/test/mjsunit/regress/regress-crbug-610207.js |
similarity index 54% |
copy from test/mjsunit/regress/regress-crbug-599067.js |
copy to test/mjsunit/regress/regress-crbug-610207.js |
index bc10aa44c2f157c22183263e9602747a3482084b..4396a56a7714f863f2d0fa0ff3d20ae3dbab8906 100644 |
--- a/test/mjsunit/regress/regress-crbug-599067.js |
+++ b/test/mjsunit/regress/regress-crbug-610207.js |
@@ -2,10 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+Error.prepareStackTrace = function(exception, frames) { |
+ return frames[0].getEvalOrigin(); |
+} |
+ |
try { |
- var o = {}; |
- var p = new Proxy({}, o); |
- Error.captureStackTrace(p); |
+ Realm.eval(0, "throw new Error('boom');"); |
} catch(e) { |
- assertEquals("Cannot pass private property name to proxy trap", e.message); |
+ print(e.stack); |
} |