summaryrefslogtreecommitdiff
path: root/sandbox
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-11 08:53:10 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-11 15:23:04 +0100
commita7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e (patch)
tree1420dfdb17660fd5ca243f25d279dbd308263f7e /sandbox
parent219d7cf24902b53385a1b6999e8bbf2c8512cf0b (diff)
downloadfengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.tar.gz
fengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.tar.bz2
fengari-a7b98a2e62c49a6c0ced2b57ddcea9bb6bab108e.zip
Fixed bad tailcall, _ENV is a closed upvalue
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/hello.bcbin304 -> 0 bytes
-rw-r--r--sandbox/hello.bc.txt17
-rw-r--r--sandbox/hello.js7
-rw-r--r--sandbox/hello.lua2
-rw-r--r--sandbox/hello2.lua7
5 files changed, 0 insertions, 33 deletions
diff --git a/sandbox/hello.bc b/sandbox/hello.bc
deleted file mode 100644
index 6b88ec8..0000000
--- a/sandbox/hello.bc
+++ /dev/null
Binary files differ
diff --git a/sandbox/hello.bc.txt b/sandbox/hello.bc.txt
deleted file mode 100644
index b41f555..0000000
--- a/sandbox/hello.bc.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-main <sandbox/hello2.lua:0,0> (9 instructions at 0x7ff931403170)
-0+ params, 5 slots, 1 upvalue, 2 locals, 4 constants, 1 function
- 1 [1] LOADK 0 -1 ; 1
- 2 [2] LOADK 1 -2 ; 2
- 3 [3] GETTABUP 2 0 -3 ; _ENV "print"
- 4 [3] MOVE 3 0
- 5 [3] MOVE 4 1
- 6 [3] CALL 2 3 1
- 7 [7] CLOSURE 2 0 ; 0x7ff9314032e0
- 8 [5] SETTABUP 0 -4 2 ; _ENV "c"
- 9 [7] RETURN 0 1
-
-function <sandbox/hello2.lua:5,7> (3 instructions at 0x7ff9314032e0)
-2 params, 3 slots, 0 upvalues, 2 locals, 0 constants, 0 functions
- 1 [6] ADD 2 0 1
- 2 [6] RETURN 2 2
- 3 [7] RETURN 0 1 \ No newline at end of file
diff --git a/sandbox/hello.js b/sandbox/hello.js
deleted file mode 100644
index df32dd8..0000000
--- a/sandbox/hello.js
+++ /dev/null
@@ -1,7 +0,0 @@
-const DataView = require('buffer-dataview');
-const fs = require('fs');
-
-const BytecodeParser = require("../src/lundump.js");
-
-let p = new BytecodeParser(new DataView(fs.readFileSync("./sandbox/hello.bc")))
-p.luaU_undump(); \ No newline at end of file
diff --git a/sandbox/hello.lua b/sandbox/hello.lua
deleted file mode 100644
index b2bf135..0000000
--- a/sandbox/hello.lua
+++ /dev/null
@@ -1,2 +0,0 @@
-local hello = "Hello"
-print (hello.." World!")
diff --git a/sandbox/hello2.lua b/sandbox/hello2.lua
deleted file mode 100644
index bcbc1e0..0000000
--- a/sandbox/hello2.lua
+++ /dev/null
@@ -1,7 +0,0 @@
-local a = 1;
-local b = 2;
-print(a, b);
-
-function c(a, b)
- return a + b
-end \ No newline at end of file