advent-of-code-wasm
Advanced tools
Comparing version 2022.0.46 to 2022.0.49
@@ -6,3 +6,3 @@ let imports = {}; | ||
const heap = new Array(32).fill(undefined); | ||
const heap = new Array(128).fill(undefined); | ||
@@ -15,6 +15,6 @@ heap.push(undefined, null, true, false); | ||
let cachedUint8Memory0 = new Uint8Array(); | ||
let cachedUint8Memory0 = null; | ||
function getUint8Memory0() { | ||
if (cachedUint8Memory0.byteLength === 0) { | ||
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) { | ||
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer); | ||
@@ -82,6 +82,6 @@ } | ||
let cachedInt32Memory0 = new Int32Array(); | ||
let cachedInt32Memory0 = null; | ||
function getInt32Memory0() { | ||
if (cachedInt32Memory0.byteLength === 0) { | ||
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) { | ||
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer); | ||
@@ -92,6 +92,6 @@ } | ||
let cachedFloat64Memory0 = new Float64Array(); | ||
let cachedFloat64Memory0 = null; | ||
function getFloat64Memory0() { | ||
if (cachedFloat64Memory0.byteLength === 0) { | ||
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) { | ||
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer); | ||
@@ -110,3 +110,3 @@ } | ||
let stack_pointer = 32; | ||
let stack_pointer = 128; | ||
@@ -122,3 +122,3 @@ function addBorrowedObject(obj) { | ||
function dropObject(idx) { | ||
if (idx < 36) return; | ||
if (idx < 132) return; | ||
heap[idx] = heap_next; | ||
@@ -191,3 +191,3 @@ heap_next = idx; | ||
module.exports.__wbg_new_8d2af00bc1e329ee = function(arg0, arg1) { | ||
module.exports.__wbg_new_15d3966e9981a196 = function(arg0, arg1) { | ||
const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
@@ -194,0 +194,0 @@ return addHeapObject(ret); |
@@ -10,3 +10,3 @@ { | ||
"description": "Solutions to Advent of Code written in Rust", | ||
"version": "2022.0.46", | ||
"version": "2022.0.49", | ||
"license": "MIT", | ||
@@ -13,0 +13,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1052269