(nativeFunc)
| 252 | // Tests that a native constructor function is included in the |
| 253 | // stack trace. |
| 254 | function testTraceNativeConstructor(nativeFunc) { |
| 255 | var nativeFuncName = nativeFunc.name; |
| 256 | try { |
| 257 | new nativeFunc(thrower); |
| 258 | assertUnreachable(nativeFuncName); |
| 259 | } catch (e) { |
| 260 | assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | // Tests that a native conversion function is included in the |
| 265 | // stack trace. |
no test coverage detected