2015-01-07 18:38:38 +01:00
|
|
|
// Copyright 2014 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
Error.prepareStackTrace = function (a,b) { return b; };
|
|
|
|
|
|
|
|
try {
|
2021-10-10 11:10:43 +02:00
|
|
|
eval("/(invalid regexp/;");
|
|
|
|
assertUnreachable();
|
2015-01-07 18:38:38 +01:00
|
|
|
} catch (e) {
|
2016-03-01 08:58:05 -08:00
|
|
|
assertEquals("[object global]", e.stack[0].getThis().toString());
|
2015-01-07 18:38:38 +01:00
|
|
|
}
|