summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/exceptions/prototypes.js
blob: 757ed2ddba808eaffaf8dd949b5effe36eb8807e (plain)
1
2
3
4
5
6
7
8
9
10
class _Tag extends WebAssembly.Tag {}
class _Exception extends WebAssembly.Exception {}

let tag = new _Tag({parameters: []});
assertEq(tag instanceof _Tag, true);
assertEq(tag instanceof WebAssembly.Tag, true);

let exception = new _Exception(tag, []);
assertEq(exception instanceof _Exception, true);
assertEq(exception instanceof WebAssembly.Exception, true);