2014-11-24 11:21:45 +00: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 {
|
|
|
|
/(invalid regexp/;
|
|
|
|
} catch (e) {
|
2015-11-19 16:11:00 +00:00
|
|
|
assertEquals("[object global]", e.stack[0].getThis().toString());
|
2014-11-24 11:21:45 +00:00
|
|
|
}
|