summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/typedarray/dom-view.js
blob: cfc9ead74e4edb90fd0d99312b6e25837a28e13f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Bug 1731039 fuzzbug. Exercises one of the new ArrayBufferOrView classes.

var error;
try {
  encodeAsUtf8InBuffer("", "");
} catch (e) {
  error = e;
}

assertEq(error.message.includes("must be a Uint8Array"), true);

if (typeof reportCompare === "function")
    reportCompare(true, true);