summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1886870.js
blob: a4947bd91a28776cbcf357d05a9752b72bfc0a79 (plain)
1
2
3
4
5
6
7
8
// Check proper handling of OOM after toQuotedString().

oomTest(function () {
  new WebAssembly.Instance(
    new WebAssembly.Module(wasmTextToBinary('(import "m" "f" (func $f))')),
    {}
  );
});