blob: feaf2d0db1a4a58df3dd76b64c05489b9c07a81e [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 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
5var dummy = new ReferenceError("dummy");
6
7constructors = [ ReferenceError, TypeError];
8
9for (var i in constructors) {
10 constructors[i].prototype.__defineGetter__("stack", function() {});
11}
12
13for (var i in constructors) {
14 var obj = new constructors[i];
15 obj.toString();
16}