summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 14:08:13 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 14:21:38 +1000
commit2951276b31e04d7bff330b5c7af42d87cf766cd0 (patch)
treeb58ba139e1554589682b6b400be6324ab268c0d1 /tests
parentcdb82a10424543724388a00df5fb10b11efa8884 (diff)
downloadfengari-2951276b31e04d7bff330b5c7af42d87cf766cd0.tar.gz
fengari-2951276b31e04d7bff330b5c7af42d87cf766cd0.tar.bz2
fengari-2951276b31e04d7bff330b5c7af42d87cf766cd0.zip
src/ldebug.js: Fix incorrect error messages
Previously could get odd things, e.g. `1-nil` would throw: > attempt to perform arithmetic on a number value
Diffstat (limited to 'tests')
-rw-r--r--tests/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ldebug.js b/tests/ldebug.js
index ba5c966..fe6e83d 100644
--- a/tests/ldebug.js
+++ b/tests/ldebug.js
@@ -175,7 +175,7 @@ test('luaG_opinterror', function (t) {
}, "JS Lua program ran without error");
t.ok(
- lua.lua_tojsstring(L, -1).endsWith("attempt to perform arithmetic on a string value"),
+ lua.lua_tojsstring(L, -1).endsWith("attempt to perform arithmetic on a table value"),
"Correct error was thrown"
);
});