Skip to content

Commit 3c0c4bc

Browse files
committed
v0.3.0-alpha.23
1 parent fcd94a6 commit 3c0c4bc

File tree

5 files changed

+42
-42
lines changed

5 files changed

+42
-42
lines changed

compiler/dist/wasm-checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const checksum = "9566b0ea43c5a13077d9ae0282c35d289ffc8a24";
1+
export const checksum = "f66d9a66c6b7b172402c9bb7999a2bd1e7c5a63e";

compiler/dist/wasm-pack.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { red } from "https://deno.land/[email protected]/fmt/colors.ts";
22
let wasm;
33

4-
let cachedTextDecoder = new TextDecoder("utf-8", {
5-
ignoreBOM: true,
6-
fatal: true,
7-
});
4+
const heap = new Array(32).fill(undefined);
85

9-
cachedTextDecoder.decode();
6+
heap.push(undefined, null, true, false);
7+
8+
function getObject(idx) {
9+
return heap[idx];
10+
}
11+
12+
let WASM_VECTOR_LEN = 0;
1013

1114
let cachegetUint8Memory0 = null;
1215
function getUint8Memory0() {
@@ -19,31 +22,6 @@ function getUint8Memory0() {
1922
return cachegetUint8Memory0;
2023
}
2124

22-
function getStringFromWasm0(ptr, len) {
23-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
24-
}
25-
26-
const heap = new Array(32).fill(undefined);
27-
28-
heap.push(undefined, null, true, false);
29-
30-
let heap_next = heap.length;
31-
32-
function addHeapObject(obj) {
33-
if (heap_next === heap.length) heap.push(heap.length + 1);
34-
const idx = heap_next;
35-
heap_next = heap[idx];
36-
37-
heap[idx] = obj;
38-
return idx;
39-
}
40-
41-
function getObject(idx) {
42-
return heap[idx];
43-
}
44-
45-
let WASM_VECTOR_LEN = 0;
46-
4725
let cachedTextEncoder = new TextEncoder("utf-8");
4826

4927
const encodeString =
@@ -108,6 +86,8 @@ function getInt32Memory0() {
10886
return cachegetInt32Memory0;
10987
}
11088

89+
let heap_next = heap.length;
90+
11191
function dropObject(idx) {
11292
if (idx < 36) return;
11393
heap[idx] = heap_next;
@@ -119,6 +99,26 @@ function takeObject(idx) {
11999
dropObject(idx);
120100
return ret;
121101
}
102+
103+
let cachedTextDecoder = new TextDecoder("utf-8", {
104+
ignoreBOM: true,
105+
fatal: true,
106+
});
107+
108+
cachedTextDecoder.decode();
109+
110+
function getStringFromWasm0(ptr, len) {
111+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
112+
}
113+
114+
function addHeapObject(obj) {
115+
if (heap_next === heap.length) heap.push(heap.length + 1);
116+
const idx = heap_next;
117+
heap_next = heap[idx];
118+
119+
heap[idx] = obj;
120+
return idx;
121+
}
122122
/**
123123
* @param {string} url
124124
* @param {string} code
@@ -207,10 +207,6 @@ async function init(input) {
207207
}
208208
const imports = {};
209209
imports.wbg = {};
210-
imports.wbg.__wbindgen_json_parse = function (arg0, arg1) {
211-
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
212-
return addHeapObject(ret);
213-
};
214210
imports.wbg.__wbindgen_json_serialize = function (arg0, arg1) {
215211
const obj = getObject(arg1);
216212
var ret = JSON.stringify(obj === undefined ? null : obj);
@@ -226,6 +222,10 @@ async function init(input) {
226222
imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
227223
takeObject(arg0);
228224
};
225+
imports.wbg.__wbindgen_json_parse = function (arg0, arg1) {
226+
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
227+
return addHeapObject(ret);
228+
};
229229
imports.wbg.__wbg_new_59cb74e423758ede = function () {
230230
var ret = new Error();
231231
return addHeapObject(ret);

compiler/dist/wasm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

import_map.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"imports": {
3-
"aleph/": "https://deno.land/x/[email protected].22/",
4-
"framework": "https://deno.land/x/[email protected].22/framework/core/mod.ts",
5-
"framework/react": "https://deno.land/x/[email protected].22/framework/react/mod.ts",
6-
"react": "https://esm.sh/[email protected].1",
7-
"react-dom": "https://esm.sh/[email protected].1"
3+
"aleph/": "https://deno.land/x/[email protected].23/",
4+
"framework": "https://deno.land/x/[email protected].23/framework/core/mod.ts",
5+
"framework/react": "https://deno.land/x/[email protected].23/framework/react/mod.ts",
6+
"react": "https://esm.sh/[email protected].2",
7+
"react-dom": "https://esm.sh/[email protected].2"
88
}
99
}

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.3.0-alpha.22'
1+
export const VERSION = '0.3.0-alpha.23'

0 commit comments

Comments
 (0)