Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 5 var dummy = new ReferenceError("dummy"); | |
| 6 | |
| 7 constructors = [ ReferenceError, TypeError]; | |
| 8 | |
| 9 for (var i in constructors) { | |
| 10 constructors[i].prototype.__defineGetter__("stack", function() {}); | |
| 11 } | |
| 12 | |
| 13 for (var i in constructors) { | |
| 14 var obj = new constructors[i]; | |
| 15 obj.toString(); | |
| 16 } | |
| OLD | NEW |