Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NSoiffer committed Jul 3, 2024
1 parent bce2299 commit d8d2edf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions index-a98a542f47807695.js → index-55a2c24660d67ff0.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ function getObject(idx) { return heap[idx]; }

let heap_next = heap.length;

function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];

heap[idx] = obj;
return idx;
}

function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
Expand All @@ -29,6 +20,15 @@ function takeObject(idx) {
return ret;
}

function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];

heap[idx] = obj;
return idx;
}

const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );

if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
Expand Down Expand Up @@ -282,6 +282,9 @@ async function __wbg_load(module, imports) {
function __wbg_get_imports() {
const imports = {};
imports.wbg = {};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_charCode_358ab311d74487af = function(arg0) {
const ret = getObject(arg0).charCode;
return ret;
Expand Down Expand Up @@ -406,9 +409,6 @@ function __wbg_get_imports() {
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}
};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
Expand Down Expand Up @@ -694,8 +694,8 @@ function __wbg_get_imports() {
const ret = getObject(arg0).document;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper5303 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 262, __wbg_adapter_24);
imports.wbg.__wbindgen_closure_wrapper5300 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 259, __wbg_adapter_24);
return addHeapObject(ret);
};

Expand Down Expand Up @@ -736,7 +736,7 @@ async function __wbg_init(input) {
if (wasm !== undefined) return wasm;

if (typeof input === 'undefined') {
input = new URL('index-a98a542f47807695_bg.wasm', import.meta.url);
input = new URL('index-55a2c24660d67ff0_bg.wasm', import.meta.url);
}
const imports = __wbg_get_imports();

Expand Down
Binary file not shown.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,16 @@
}
</script>
<script type="module">
import {load_yaml_file} from '/MathCATDemo/index-a98a542f47807695.js';
import {load_yaml_file} from '/MathCATDemo/index-55a2c24660d67ff0.js';
window.load_yaml_file = load_yaml_file; // put in global scope so it can be called from global scope functions
</script>

<link rel="stylesheet" href="/MathCATDemo/index-2cf400b26753f95b.css">
<!-- for debugging -->
<script type="module">import init from '/MathCATDemo/index-a98a542f47807695.js';init('/MathCATDemo/index-a98a542f47807695_bg.wasm');</script>
<script type="module">import init from '/MathCATDemo/index-55a2c24660d67ff0.js';init('/MathCATDemo/index-55a2c24660d67ff0_bg.wasm');</script>

<link rel="preload" href="/MathCATDemo/index-a98a542f47807695_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/MathCATDemo/index-a98a542f47807695.js"></head>
<link rel="preload" href="/MathCATDemo/index-55a2c24660d67ff0_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/MathCATDemo/index-55a2c24660d67ff0.js"></head>
<body><script>(function () {
var url = 'wss://' + window.location.host + '/_trunk/ws';
var poll_interval = 5000;
Expand Down

0 comments on commit d8d2edf

Please sign in to comment.