Lines Matching refs:stack
158 // in the stack trace produced when running the given function.
165 assertTrue(e.stack.indexOf(expected[i]) != -1,
166 name + " doesn't contain expected[" + i + "] stack = " + e.stack);
170 assertEquals(e.stack.indexOf(unexpected[i]), -1,
185 assertEquals(-1, e.stack.indexOf('at new ReferenceError'),
202 assertTrue(e.stack.indexOf('at new ReferenceError') != -1,
209 // If an error occurs while the stack trace is being formatted it should
218 // the stack frame. Put that in your pipe and smoke it!
230 // stack trace.
237 assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
242 // stack trace.
249 assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
259 assertTrue(e.stack.indexOf(omitted) < 0, omitted);
310 error.stack;
315 error.stack;
320 error.stack;
325 error.stack;
328 // Check that throwing exception in a custom stack trace formatting function
336 e.stack;
346 new Error().stack;
350 // Check that the formatted stack trace can be set to undefined.
352 error.stack = undefined;
353 assertEquals(undefined, error.stack);
355 // Check that the stack trace accessors are not forcibly set.
366 var stolen_getter = Object.getOwnPropertyDescriptor(my_error, 'stack').get;
367 Object.defineProperty(fake_error, 'stack', { get: stolen_getter });
368 assertEquals(undefined, fake_error.stack);