1// 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} 17