swc/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer1.ts
2022-02-04 17:08:38 +09:00

6 lines
145 B
TypeScript

// @target: es5
// @lib: es5,es2017.sharedmemory
var foge = new SharedArrayBuffer(1024);
var bar = foge.slice(1, 10);
var len = foge.byteLength;