make wasm work

This commit is contained in:
2023-03-25 00:45:13 +00:00
parent 47727a6d2f
commit 97ec428aca
12 changed files with 984 additions and 115 deletions

View File

@@ -44,6 +44,7 @@ func parseGenericImport(code UNPARSEcode, index int, codeline []UNPARSEcode) (Ar
}
func runImport(importOBJ ArImport, stack stack, stacklevel int) (any, ArErr) {
return nil, ArErr{"Import Error", "importing in WASM is currently not supported", importOBJ.line, importOBJ.path, importOBJ.code, true}
val, err := runVal(importOBJ.filePath, stack, stacklevel+1)
val = ArValidToAny(val)
if err.EXISTS {