@swc/wasm
Advanced tools
Comparing version 1.2.126 to 1.2.127
@@ -7,3 +7,3 @@ { | ||
"description": "wasm module for swc", | ||
"version": "1.2.126", | ||
"version": "1.2.127", | ||
"license": "Apache-2.0", | ||
@@ -10,0 +10,0 @@ "repository": { |
93
wasm.js
let imports = {}; | ||
imports['__wbindgen_placeholder__'] = module.exports; | ||
let wasm; | ||
const { TextDecoder, TextEncoder } = require(String.raw`util`); | ||
const { TextDecoder, TextEncoder } = require(`util`); | ||
@@ -39,2 +39,14 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
let WASM_VECTOR_LEN = 0; | ||
@@ -103,14 +115,2 @@ | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
heap[idx] = heap_next; | ||
heap_next = idx; | ||
} | ||
function takeObject(idx) { | ||
const ret = getObject(idx); | ||
dropObject(idx); | ||
return ret; | ||
} | ||
function isLikeNone(x) { | ||
@@ -177,18 +177,19 @@ return x === undefined || x === null; | ||
function handleError(f) { | ||
return function () { | ||
try { | ||
return f.apply(this, arguments); | ||
} catch (e) { | ||
wasm.__wbindgen_exn_store(addHeapObject(e)); | ||
} | ||
}; | ||
function handleError(f, args) { | ||
try { | ||
return f.apply(this, args); | ||
} catch (e) { | ||
wasm.__wbindgen_exn_store(addHeapObject(e)); | ||
} | ||
} | ||
module.exports.__wbindgen_json_parse = function(arg0, arg1) { | ||
var ret = JSON.parse(getStringFromWasm0(arg0, arg1)); | ||
module.exports.__wbindgen_string_new = function(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_json_serialize = function(arg0, arg1) { | ||
@@ -203,12 +204,8 @@ const obj = getObject(arg1); | ||
module.exports.__wbindgen_object_drop_ref = function(arg0) { | ||
takeObject(arg0); | ||
}; | ||
module.exports.__wbindgen_string_new = function(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
module.exports.__wbindgen_json_parse = function(arg0, arg1) { | ||
var ret = JSON.parse(getStringFromWasm0(arg0, arg1)); | ||
return addHeapObject(ret); | ||
}; | ||
module.exports.__wbg_new0_b999da099e34d501 = function() { | ||
module.exports.__wbg_new0_fd3a3a290b25cdac = function() { | ||
var ret = new Date(); | ||
@@ -218,3 +215,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_getTime_fea26678ab8a3ccc = function(arg0) { | ||
module.exports.__wbg_getTime_10d33f4f2959e5dd = function(arg0) { | ||
var ret = getObject(arg0).getTime(); | ||
@@ -224,3 +221,3 @@ return ret; | ||
module.exports.__wbg_getTimezoneOffset_b888306309b35fe2 = function(arg0) { | ||
module.exports.__wbg_getTimezoneOffset_d3e5a22a1b7fb1d8 = function(arg0) { | ||
var ret = getObject(arg0).getTimezoneOffset(); | ||
@@ -230,21 +227,21 @@ return ret; | ||
module.exports.__wbg_self_35a0fda3eb965abe = handleError(function() { | ||
module.exports.__wbg_self_c6fbdfc2918d5e58 = function() { return handleError(function () { | ||
var ret = self.self; | ||
return addHeapObject(ret); | ||
}); | ||
}, arguments) }; | ||
module.exports.__wbg_window_88a6f88dd3a474f1 = handleError(function() { | ||
module.exports.__wbg_window_baec038b5ab35c54 = function() { return handleError(function () { | ||
var ret = window.window; | ||
return addHeapObject(ret); | ||
}); | ||
}, arguments) }; | ||
module.exports.__wbg_globalThis_1d843c4ad7b6a1f5 = handleError(function() { | ||
module.exports.__wbg_globalThis_3f735a5746d41fbd = function() { return handleError(function () { | ||
var ret = globalThis.globalThis; | ||
return addHeapObject(ret); | ||
}); | ||
}, arguments) }; | ||
module.exports.__wbg_global_294ce70448e8fbbf = handleError(function() { | ||
module.exports.__wbg_global_1bc0b39582740e95 = function() { return handleError(function () { | ||
var ret = global.global; | ||
return addHeapObject(ret); | ||
}); | ||
}, arguments) }; | ||
@@ -256,3 +253,3 @@ module.exports.__wbindgen_is_undefined = function(arg0) { | ||
module.exports.__wbg_newnoargs_2349ba6aefe72376 = function(arg0, arg1) { | ||
module.exports.__wbg_newnoargs_be86524d73f67598 = function(arg0, arg1) { | ||
var ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
@@ -262,6 +259,6 @@ return addHeapObject(ret); | ||
module.exports.__wbg_call_e5847d15cc228e4f = handleError(function(arg0, arg1) { | ||
module.exports.__wbg_call_888d259a5fefc347 = function() { return handleError(function (arg0, arg1) { | ||
var ret = getObject(arg0).call(getObject(arg1)); | ||
return addHeapObject(ret); | ||
}); | ||
}, arguments) }; | ||
@@ -273,6 +270,6 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) { | ||
module.exports.__wbg_get_4e90ba4e3de362de = handleError(function(arg0, arg1) { | ||
module.exports.__wbg_get_4d0f21c2f823742e = function() { return handleError(function (arg0, arg1) { | ||
var ret = Reflect.get(getObject(arg0), getObject(arg1)); | ||
return addHeapObject(ret); | ||
}); | ||
}, arguments) }; | ||
@@ -288,3 +285,3 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) { | ||
module.exports.__wbg_new_7c995f2adeba6fb5 = function() { | ||
module.exports.__wbg_new_949bbc1147195c4e = function() { | ||
var ret = new Array(); | ||
@@ -294,3 +291,3 @@ return addHeapObject(ret); | ||
module.exports.__wbg_push_3f7c76b58919ce0d = function(arg0, arg1) { | ||
module.exports.__wbg_push_284486ca27c6aa8b = function(arg0, arg1) { | ||
var ret = getObject(arg0).push(getObject(arg1)); | ||
@@ -297,0 +294,0 @@ return ret; |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4
21143816
295