mirror of
https://github.com/Z3Prover/z3
synced 2026-07-29 02:03:49 +00:00
fix: Use globalThis instead of global (#10249)
There are no `global`s in browser context. `globalThis` applied to both browser and node. --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
c1fa2dbfd6
commit
40d370b55b
1 changed files with 1 additions and 1 deletions
|
|
@ -2796,7 +2796,7 @@ export function createApi(Z3: Z3Core, em?: any): Z3HighLevel {
|
|||
for (let i = 0; i < a.numEntries(); i++) {
|
||||
const e = a.entry(i);
|
||||
const n = e.numArgs();
|
||||
const args = global.Array(n).map((_, i) => e.argValue(i));
|
||||
const args = globalThis.Array.from({ length: n }, (_, i) => e.argValue(i));
|
||||
funcInterp.addEntry(args, e.value());
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue