summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/wasm-unsafe-eval/script-src-blocks-wasm.any.js
blob: 15e9d87ce9e0920472b4302f813df0ab0e79ed43 (plain)
1
2
3
4
5
6
7
8
// META: global=window,worker

promise_test(t => {
  return promise_rejects_js(
      t, WebAssembly.CompileError,
      WebAssembly.instantiate(
          new Uint8Array([0, 0x61, 0x73, 0x6d, 0x1, 0, 0, 0])));
});