@esbuild/android-arm
Advanced tools
Comparing version 0.21.5 to 0.22.0
{ | ||
"name": "@esbuild/android-arm", | ||
"version": "0.21.5", | ||
"version": "0.22.0", | ||
"description": "A WebAssembly shim for esbuild on Android ARM.", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=18" | ||
}, | ||
@@ -15,0 +15,0 @@ "os": [ |
@@ -17,15 +17,5 @@ // Copyright 2021 The Go Authors. All rights reserved. | ||
globalThis.performance = { | ||
now() { | ||
const [sec, nsec] = process.hrtime(); | ||
return sec * 1000 + nsec / 1000000; | ||
}, | ||
}; | ||
globalThis.performance ??= require("performance"); | ||
const crypto = require("crypto"); | ||
globalThis.crypto = { | ||
getRandomValues(b) { | ||
crypto.randomFillSync(b); | ||
}, | ||
}; | ||
globalThis.crypto ??= require("crypto"); | ||
@@ -32,0 +22,0 @@ require("./wasm_exec"); |
@@ -116,2 +116,6 @@ // Copyright 2018 The Go Authors. All rights reserved. | ||
const setInt32 = (addr, v) => { | ||
this.mem.setUint32(addr + 0, v, true); | ||
} | ||
const getInt64 = (addr) => { | ||
@@ -210,3 +214,6 @@ const low = this.mem.getUint32(addr + 0, true); | ||
this.importObject = { | ||
go: { | ||
_gotest: { | ||
add: (a, b) => a + b, | ||
}, | ||
gojs: { | ||
// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters) | ||
@@ -274,3 +281,3 @@ // may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported | ||
}, | ||
getInt64(sp + 8) + 1, // setTimeout has been seen to fire up to 1 millisecond early | ||
getInt64(sp + 8), | ||
)); | ||
@@ -277,0 +284,0 @@ this.mem.setInt32(sp + 16, id, true); |
Sorry, the diff of this file is not supported yet
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
11653464
534