summaryrefslogtreecommitdiff
path: root/src/lstrlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-09 13:01:21 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-09 13:01:21 +1000
commit74dd47160960b3f0faa13dd1b61b64af69fde02e (patch)
treefee2730a670c4526c1c927230765be3dce49fc95 /src/lstrlib.js
parent9b74a453e4a48f0c2028bc15b2c5bdaee6fcd5c7 (diff)
downloadfengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.tar.gz
fengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.tar.bz2
fengari-74dd47160960b3f0faa13dd1b61b64af69fde02e.zip
Add is_luastring function instead of using Array.isArray directly
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r--src/lstrlib.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index 56817a0..0fb8631 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -65,7 +65,6 @@ const str_char = function(L) {
};
const writer = function(L, b, size, B) {
- assert(Array.isArray(b));
B.push(...b.slice(0, size));
return 0;
};