summaryrefslogtreecommitdiff
path: root/tests/tests.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-13 17:17:43 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-15 14:52:58 +1100
commitaf95e27d1b2d5f0f39534523778003dfd1fcf417 (patch)
treedd604e436b5af6ae1066be0c076e3dcb14deb2b3 /tests/tests.js
parent60181181128144f483bbf344ef51b2ce5385a3c0 (diff)
downloadfengari-af95e27d1b2d5f0f39534523778003dfd1fcf417.tar.gz
fengari-af95e27d1b2d5f0f39534523778003dfd1fcf417.tar.bz2
fengari-af95e27d1b2d5f0f39534523778003dfd1fcf417.zip
src/lzio.js: Don't permit DataView returned from a lua_load reader any more
Diffstat (limited to 'tests/tests.js')
-rw-r--r--tests/tests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests.js b/tests/tests.js
index 1bc4fc6..1ad9900 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -11,7 +11,7 @@ const toByteCode = function(luaCode) {
return 0;
}, b, false) !== 0)
throw Error("unable to dump given function");
- return new DataView(Uint8Array.from(b).buffer);
+ return Uint8Array.from(b);
};
const getState = function(luaCode) {