(nativeFunc)
| 36 | // Tests that a native constructor function is included in the |
| 37 | // stack trace. |
| 38 | function testTraceNativeConstructor(nativeFunc) { |
| 39 | var nativeFuncName = nativeFunc.name; |
| 40 | try { |
| 41 | new nativeFunc(thrower); |
| 42 | assertUnreachable(nativeFuncName); |
| 43 | } catch (e) { |
| 44 | assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | // Tests that a native conversion function is included in the |
| 49 | // stack trace. |
no test coverage detected
searching dependent graphs…