aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-22 08:08:07 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-22 08:08:30 -0500
commit56d5d83bd4e28636c76c82b0572428ff41d0808b (patch)
tree8c0ce866eeaaf8c4a33707b160d86330818b77e2 /teleterm
parentfb4fda466544afab5f6ce6e91af7ce5ad6eaf45d (diff)
downloadteleterm-56d5d83bd4e28636c76c82b0572428ff41d0808b.tar.gz
teleterm-56d5d83bd4e28636c76c82b0572428ff41d0808b.zip
switch to the log crate
Diffstat (limited to 'teleterm')
-rw-r--r--teleterm/static/teleterm_web.js113
-rw-r--r--teleterm/static/teleterm_web_bg.wasmbin389782 -> 395632 bytes
2 files changed, 61 insertions, 52 deletions
diff --git a/teleterm/static/teleterm_web.js b/teleterm/static/teleterm_web.js
index f7b9436..fcec751 100644
--- a/teleterm/static/teleterm_web.js
+++ b/teleterm/static/teleterm_web.js
@@ -18,31 +18,31 @@ function addHeapObject(obj) {
return idx;
}
function __wbg_elem_binding0(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2));
+ wasm.__wbg_function_table.get(42)(arg0, arg1, addHeapObject(arg2));
}
function __wbg_elem_binding1(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2));
+ wasm.__wbg_function_table.get(258)(arg0, arg1, addHeapObject(arg2));
}
function __wbg_elem_binding2(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(54)(arg0, arg1, arg2);
+ wasm.__wbg_function_table.get(42)(arg0, arg1, addHeapObject(arg2));
}
function __wbg_elem_binding3(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2));
+ wasm.__wbg_function_table.get(47)(arg0, arg1, arg2);
}
function __wbg_elem_binding4(arg0, arg1) {
- wasm.__wbg_function_table.get(174)(arg0, arg1);
+ wasm.__wbg_function_table.get(188)(arg0, arg1);
}
function __wbg_elem_binding5(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(244)(arg0, arg1, addHeapObject(arg2));
+ wasm.__wbg_function_table.get(42)(arg0, arg1, addHeapObject(arg2));
}
function __wbg_elem_binding6(arg0, arg1, arg2) {
- wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2));
+ wasm.__wbg_function_table.get(42)(arg0, arg1, addHeapObject(arg2));
}
function __wbg_elem_binding7(arg0, arg1, arg2, arg3, arg4) {
- wasm.__wbg_function_table.get(271)(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
+ wasm.__wbg_function_table.get(285)(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
}
function __wbg_elem_binding8(arg0, arg1, arg2, arg3) {
- wasm.__wbg_function_table.get(275)(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
+ wasm.__wbg_function_table.get(289)(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}
/**
*/
@@ -50,6 +50,20 @@ export function start() {
wasm.start();
}
+function getObject(idx) { return heap[idx]; }
+
+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 cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
cachedTextDecoder.decode();
@@ -66,20 +80,6 @@ function getStringFromWasm(ptr, len) {
return cachedTextDecoder.decode(getUint8Memory().subarray(ptr, ptr + len));
}
-function getObject(idx) { return heap[idx]; }
-
-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;
let cachedTextEncoder = new TextEncoder('utf-8');
@@ -225,15 +225,12 @@ function init(module) {
let result;
const imports = {};
imports.wbg = {};
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
- const ret = getStringFromWasm(arg0, arg1);
- return addHeapObject(ret);
- };
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
- imports.wbg.__wbg_log_93d35dab6e237612 = function(arg0, arg1) {
- console.log(getStringFromWasm(arg0, arg1));
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
+ const ret = getStringFromWasm(arg0, arg1);
+ return addHeapObject(ret);
};
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
@@ -735,9 +732,21 @@ function init(module) {
const ret = getObject(arg0).fetch(getStringFromWasm(arg1, arg2), getObject(arg3));
return addHeapObject(ret);
};
+ imports.wbg.__widl_f_debug_1_ = function(arg0) {
+ console.debug(getObject(arg0));
+ };
imports.wbg.__widl_f_error_1_ = function(arg0) {
console.error(getObject(arg0));
};
+ imports.wbg.__widl_f_info_1_ = function(arg0) {
+ console.info(getObject(arg0));
+ };
+ imports.wbg.__widl_f_log_1_ = function(arg0) {
+ console.log(getObject(arg0));
+ };
+ imports.wbg.__widl_f_warn_1_ = function(arg0) {
+ console.warn(getObject(arg0));
+ };
imports.wbg.__wbg_call_aa56d0132fec7569 = function(arg0, arg1) {
try {
const ret = getObject(arg0).call(getObject(arg1));
@@ -871,16 +880,16 @@ function init(module) {
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
throw new Error(getStringFromWasm(arg0, arg1));
};
- imports.wbg.__wbindgen_closure_wrapper214 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper213 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding1(a, state.b, arg0);
+ return __wbg_elem_binding5(a, state.b, arg0);
} finally {
- if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b);
+ if (--state.cnt === 0) wasm.__wbg_function_table.get(43)(a, state.b);
else state.a = a;
}
}
@@ -889,16 +898,16 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper216 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper219 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding0(a, state.b, arg0);
+ return __wbg_elem_binding2(a, state.b, arg0);
} finally {
- if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b);
+ if (--state.cnt === 0) wasm.__wbg_function_table.get(43)(a, state.b);
else state.a = a;
}
}
@@ -907,16 +916,16 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper218 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper217 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding2(a, state.b, arg0);
+ return __wbg_elem_binding3(a, state.b, arg0);
} finally {
- if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b);
+ if (--state.cnt === 0) wasm.__wbg_function_table.get(43)(a, state.b);
else state.a = a;
}
}
@@ -925,16 +934,16 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper222 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper215 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding3(a, state.b, arg0);
+ return __wbg_elem_binding6(a, state.b, arg0);
} finally {
- if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b);
+ if (--state.cnt === 0) wasm.__wbg_function_table.get(43)(a, state.b);
else state.a = a;
}
}
@@ -943,16 +952,16 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper506 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper221 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
- const real = () => {
+ const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding4(a, state.b, );
+ return __wbg_elem_binding0(a, state.b, arg0);
} finally {
- if (--state.cnt === 0) wasm.__wbg_function_table.get(175)(a, state.b);
+ if (--state.cnt === 0) wasm.__wbg_function_table.get(43)(a, state.b);
else state.a = a;
}
}
@@ -961,16 +970,16 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper909 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper927 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
const real = (arg0) => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding5(a, state.b, arg0);
+ return __wbg_elem_binding1(a, state.b, arg0);
} finally {
- if (--state.cnt === 0) wasm.__wbg_function_table.get(245)(a, state.b);
+ if (--state.cnt === 0) wasm.__wbg_function_table.get(259)(a, state.b);
else state.a = a;
}
}
@@ -979,16 +988,16 @@ function init(module) {
const ret = real;
return addHeapObject(ret);
};
- imports.wbg.__wbindgen_closure_wrapper220 = function(arg0, arg1, arg2) {
+ imports.wbg.__wbindgen_closure_wrapper520 = function(arg0, arg1, arg2) {
const state = { a: arg0, b: arg1, cnt: 1 };
- const real = (arg0) => {
+ const real = () => {
state.cnt++;
const a = state.a;
state.a = 0;
try {
- return __wbg_elem_binding6(a, state.b, arg0);
+ return __wbg_elem_binding4(a, state.b, );
} finally {
- if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b);
+ if (--state.cnt === 0) wasm.__wbg_function_table.get(189)(a, state.b);
else state.a = a;
}
}
diff --git a/teleterm/static/teleterm_web_bg.wasm b/teleterm/static/teleterm_web_bg.wasm
index 254392e..7cdf809 100644
--- a/teleterm/static/teleterm_web_bg.wasm
+++ b/teleterm/static/teleterm_web_bg.wasm
Binary files differ