michael@0: // |jit-test| error:TypeError michael@0: // Array.of can be transplanted to builtin constructors. michael@0: michael@0: load(libdir + "asserts.js"); michael@0: michael@0: Uint8Array.of = Array.of; michael@0: assertDeepEq(new Uint8Array.of(0x12, 0x34, 0x5678, 0x9abcdef), new Uint8Array([0x12, 0x34, 0x78, 0xef]));