summaryrefslogtreecommitdiff
path: root/tests/lbaselib.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lbaselib.js')
-rw-r--r--tests/lbaselib.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/lbaselib.js b/tests/lbaselib.js
index 5f39991..cc7847e 100644
--- a/tests/lbaselib.js
+++ b/tests/lbaselib.js
@@ -24,7 +24,7 @@ test('print', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -58,7 +58,7 @@ test('setmetatable, getmetatable', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -103,7 +103,7 @@ test('rawequal', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -149,7 +149,7 @@ test('rawset, rawget', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -196,7 +196,7 @@ test('type', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -249,7 +249,7 @@ test('error', function (t) {
t.throws(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -272,7 +272,7 @@ test('error, protected', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -304,7 +304,7 @@ test('pcall', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -340,7 +340,7 @@ test('xpcall', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -382,7 +382,7 @@ test('ipairs', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -411,7 +411,7 @@ test('select', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -452,7 +452,7 @@ test('tonumber', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -499,7 +499,7 @@ test('assert', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -527,7 +527,7 @@ test('rawlen', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -574,7 +574,7 @@ test('next', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -615,7 +615,7 @@ test('pairs', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();
@@ -665,7 +665,7 @@ test('pairs with __pairs', function (t) {
t.doesNotThrow(function () {
- let bc = toByteCode(luaCode).dataView;
+ let bc = toByteCode(luaCode);
L = lauxlib.luaL_newstate();