summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-29 18:56:14 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-29 22:06:00 +1100
commit62b07567d9f39fa746ea35d9c08cd1dcf37dc67a (patch)
treed8e6b62675e5b027fa11c9a16782e4bfe50f064a /src/lobject.js
parent0836b4ce3f3c66e9268ebcd269b7451fb5700b32 (diff)
downloadfengari-62b07567d9f39fa746ea35d9c08cd1dcf37dc67a.tar.gz
fengari-62b07567d9f39fa746ea35d9c08cd1dcf37dc67a.tar.bz2
fengari-62b07567d9f39fa746ea35d9c08cd1dcf37dc67a.zip
src/lobject.js: Consistently use null in a nil TValue
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 9834df7..34d8550 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -195,7 +195,7 @@ class TValue {
setnilvalue() {
this.type = LUA_TNIL;
- this.value = void 0;
+ this.value = null;
}
setfvalue(x) {