Lines Matching refs:code
6 // * Redistributions of source code must retain the above copyright
85 // Assert that the passed function or eval code throws an exception.
92 // Assert that the passed function or eval code does not throw an exception.
99 // Assert that this code is never executed (i.e., always fails if executed).
102 // Assert that the function code is (not) optimized. If "no sync" is passed
306 assertThrows = function assertThrows(code, type_opt, cause_opt) {
309 if (typeof code == 'function') {
310 code();
312 eval(code);
343 assertDoesNotThrow = function assertDoesNotThrow(code, name_opt) {
345 if (typeof code == 'function') {
346 code();
348 eval(code);