OLD | NEW |
---|---|
(Empty) | |
1 // 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 | |
5 var o = { f: function() { throw new Error(); } }; | |
6 o.g1 = function() { o.f() } | |
7 o.g2 = o.g1; | |
8 o.h = function() { o.g1() } | |
9 o.f.displayName = "MySpecialFunction"; | |
10 | |
11 try { | |
12 o.h(); | |
13 } catch (e) { | |
14 assertTrue(e.stack.indexOf("MySpecialFunction") != -1); | |
15 } | |
OLD | NEW |