-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
26 lines (24 loc) · 968 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* From wasm-feature-detect (https://www.npmjs.com/package/wasm-feature-detect) */
const isSimdSupported = WebAssembly.validate(
new Uint8Array([
0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10,
1, 8, 0, 65, 0, 253, 15, 253, 98, 11,
]),
);
const {
compile,
getArgumentNames,
isValidIdentifier,
prepareStackTrace,
start,
} = isSimdSupported ? require('./simd/compiler') : require('./pkg/compiler');
exports._isSimdSupported = isSimdSupported;
exports.compile = compile;
exports.getArgumentNames = getArgumentNames;
exports.isValidIdentifier = isValidIdentifier;
exports.prepareStackTrace = prepareStackTrace;
exports.start = start;
exports.getReflectionData = require('./lib/reflection').getReflectionData;
global._apply_decs_2203_r = require('./lib/_apply_decs_2203_r')._;
global._construct_jobject = require('./lib/_construct_jobject')._;
global.__jymfony_reflect = require('./lib/reflection')._;