aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/elymasGlobal.ey11
-rw-r--r--examples/working-compiler/scope-emulation.test2
2 files changed, 11 insertions, 2 deletions
diff --git a/compiler/elymasGlobal.ey b/compiler/elymasGlobal.ey
index e07312d..2e1f8f6 100644
--- a/compiler/elymasGlobal.ey
+++ b/compiler/elymasGlobal.ey
@@ -2656,7 +2656,6 @@
/rbx :pushqReg
:retn
- @scopeCase
@functionCase
/rcx :popqReg
/rbp :pushqReg
@@ -2664,6 +2663,16 @@
/rbx :pushqReg
/rax :movqImmOOBReg "ey!" "ey*" ::linkAbs64
/rax :jmpqReg
+
+ @scopeCase
+ /rbp :pushqReg
+
+ /rax :movqImmOOBReg "#!" ::string
+ /rax :pushqReg
+
+ /rbx :pushqReg
+ /rax :movqImmOOBReg "ey!" "ey." ::linkAbs64
+ /rax :jmpqReg
]] /ey! defv
> _ ==globalFunctions3 { defv }' ::allocateOffsetStruct
diff --git a/examples/working-compiler/scope-emulation.test b/examples/working-compiler/scope-emulation.test
index 703d07a..74da893 100644
--- a/examples/working-compiler/scope-emulation.test
+++ b/examples/working-compiler/scope-emulation.test
@@ -15,5 +15,5 @@ _ dump
_ dump
< { "here: dom" dump } "#dom" deffd > dom
_ dump
-< { "here: *" dump } "#*" deffd > 0 !
+< { "here: !" dump "element count: " dump dump } "#!" deffd > 42 !
_ dump