blob: ea5e67513e65689dde0648cb03b42ce15e85dca0 [file] [log] [blame]
Ben Murdoch61f157c2016-09-16 13:49:30 +01001// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5Error.prepareStackTrace = (e,s) => s;
6var CallSiteConstructor = Error().stack[0].constructor;
7
8try {
9 (new CallSiteConstructor(CallSiteConstructor, 6)).toString();
10} catch (e) {
11}