mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
make wasm not require reinit
This commit is contained in:
@@ -2,9 +2,12 @@ package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func makeGlobal() ArObject {
|
||||
func makeGlobal(allowDocument bool) ArObject {
|
||||
var vars = Map(anymap{})
|
||||
vars.obj["global"] = vars
|
||||
if allowDocument {
|
||||
vars.obj["document"] = ArDocument
|
||||
}
|
||||
vars.obj["term"] = ArTerm
|
||||
vars.obj["number"] = builtinFunc{"number", ArgonNumber}
|
||||
vars.obj["string"] = builtinFunc{"string", ArgonString}
|
||||
|
||||
Reference in New Issue
Block a user