@rsvelte/compiler 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/svelte_compiler_rust.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export class CompileResultWasm {
|
|
7
7
|
static __wrap(ptr) {
|
|
8
|
-
ptr = ptr >>> 0;
|
|
9
8
|
const obj = Object.create(CompileResultWasm.prototype);
|
|
10
9
|
obj.__wbg_ptr = ptr;
|
|
11
10
|
CompileResultWasmFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -78,7 +77,6 @@ if (Symbol.dispose) CompileResultWasm.prototype[Symbol.dispose] = CompileResultW
|
|
|
78
77
|
*/
|
|
79
78
|
export class ParseResultWasm {
|
|
80
79
|
static __wrap(ptr) {
|
|
81
|
-
ptr = ptr >>> 0;
|
|
82
80
|
const obj = Object.create(ParseResultWasm.prototype);
|
|
83
81
|
obj.__wbg_ptr = ptr;
|
|
84
82
|
ParseResultWasmFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -222,14 +220,13 @@ export function version() {
|
|
|
222
220
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
223
221
|
}
|
|
224
222
|
}
|
|
225
|
-
|
|
226
223
|
function __wbg_get_imports() {
|
|
227
224
|
const import0 = {
|
|
228
225
|
__proto__: null,
|
|
229
|
-
|
|
226
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
230
227
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
231
228
|
},
|
|
232
|
-
|
|
229
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
233
230
|
let deferred0_0;
|
|
234
231
|
let deferred0_1;
|
|
235
232
|
try {
|
|
@@ -240,11 +237,11 @@ function __wbg_get_imports() {
|
|
|
240
237
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
241
238
|
}
|
|
242
239
|
},
|
|
243
|
-
|
|
240
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
244
241
|
const ret = new Error();
|
|
245
242
|
return ret;
|
|
246
243
|
},
|
|
247
|
-
|
|
244
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
248
245
|
const ret = arg1.stack;
|
|
249
246
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
250
247
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -269,10 +266,10 @@ function __wbg_get_imports() {
|
|
|
269
266
|
|
|
270
267
|
const CompileResultWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
271
268
|
? { register: () => {}, unregister: () => {} }
|
|
272
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_compileresultwasm_free(ptr
|
|
269
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_compileresultwasm_free(ptr, 1));
|
|
273
270
|
const ParseResultWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
274
271
|
? { register: () => {}, unregister: () => {} }
|
|
275
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_parseresultwasm_free(ptr
|
|
272
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_parseresultwasm_free(ptr, 1));
|
|
276
273
|
|
|
277
274
|
let cachedDataViewMemory0 = null;
|
|
278
275
|
function getDataViewMemory0() {
|
|
@@ -283,8 +280,7 @@ function getDataViewMemory0() {
|
|
|
283
280
|
}
|
|
284
281
|
|
|
285
282
|
function getStringFromWasm0(ptr, len) {
|
|
286
|
-
|
|
287
|
-
return decodeText(ptr, len);
|
|
283
|
+
return decodeText(ptr >>> 0, len);
|
|
288
284
|
}
|
|
289
285
|
|
|
290
286
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -361,8 +357,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
361
357
|
|
|
362
358
|
let WASM_VECTOR_LEN = 0;
|
|
363
359
|
|
|
364
|
-
let wasmModule, wasm;
|
|
360
|
+
let wasmModule, wasmInstance, wasm;
|
|
365
361
|
function __wbg_finalize_init(instance, module) {
|
|
362
|
+
wasmInstance = instance;
|
|
366
363
|
wasm = instance.exports;
|
|
367
364
|
wasmModule = module;
|
|
368
365
|
cachedDataViewMemory0 = null;
|
|
Binary file
|