add function assignment
This commit is contained in:
1
tests/anonymous_function.ar
Normal file
1
tests/anonymous_function.ar
Normal file
@@ -0,0 +1 @@
|
||||
term.log(()=10)
|
||||
1
tests/env.ar
Normal file
1
tests/env.ar
Normal file
@@ -0,0 +1 @@
|
||||
term.log("hello,", env.USER+'.', 'how is', env.XDG_SESSION_TYPE+'?')
|
||||
@@ -1,4 +1,4 @@
|
||||
term.log(global."hello world")
|
||||
term.log(global)
|
||||
let i = 1e8
|
||||
while (i) do
|
||||
i=i-1
|
||||
6
tests/number-memory-leak.ar
Normal file
6
tests/number-memory-leak.ar
Normal file
@@ -0,0 +1,6 @@
|
||||
let i = 10
|
||||
let x = 1
|
||||
while (i) do
|
||||
x = x * 1e100000000
|
||||
term.log(i=i-1)
|
||||
term.log(x)
|
||||
Reference in New Issue
Block a user