test/wasm-js/testharness-additions.js
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function assert_throws(code, func, description) {
  try {
    func();
  } catch (e) {
    assert_true(
        e.name === code.name,
        'expected exception ' + code.name + ', got ' + e.name);
    return;
  }
  assert_true(
      false, 'expected exception ' + code.name + ', no exception thrown');
}
function assert_throws ( code , func , description ) { try { func ( ) ; } catch ( e ) { assert_true ( e . name === code . name , 'expected exception ' + code . name + ', got ' + e . name ) ; return ; } assert_true ( false , 'expected exception ' + code . name + ', no exception thrown' ) ; }
found in the LICENSE file.
found in the LICENSE file .