summaryrefslogtreecommitdiff
path: root/tests/ldblib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-14 11:26:24 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-14 11:27:45 +0200
commitd8b080f555dbb9e90dd6d4908b6263910f80528f (patch)
tree606375e6bbb97b2fbcc5970475264a89dbb5442d /tests/ldblib.js
parent43c97cbc2904d2bac87c61515bbc16c38a091548 (diff)
downloadfengari-d8b080f555dbb9e90dd6d4908b6263910f80528f.tar.gz
fengari-d8b080f555dbb9e90dd6d4908b6263910f80528f.tar.bz2
fengari-d8b080f555dbb9e90dd6d4908b6263910f80528f.zip
Fixed bad UpVal.setVal
We were making the upval point to the slot of the stack from which the value to set was
Diffstat (limited to 'tests/ldblib.js')
-rw-r--r--tests/ldblib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ldblib.js b/tests/ldblib.js
index 8d00952..8c3ad7f 100644
--- a/tests/ldblib.js
+++ b/tests/ldblib.js
@@ -9,7 +9,7 @@ const linit = require('../src/linit.js');
test('debug.sethook', function (t) {
let luaCode = `
- result = ""
+ local result = ""
debug.sethook(function (event)
result = result .. event .. " "
@@ -44,7 +44,7 @@ test('debug.sethook', function (t) {
t.strictEqual(
lapi.lua_tojsstring(L, -1),
- "return count line count line count line count return count line count line count return count line count line count return count line count line ",
+ "return count line count line count line count return count line count line count return count line count line count return count line return ",
"Correct element(s) on the stack"
);