aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lstate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstate.js b/src/lstate.js
index 0c44f3c..6e623b9 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -79,7 +79,7 @@ class lua_State {
class global_State {
constructor() {
- this.id_counter = 0; /* used to give objects unique ids */
+ this.id_counter = 1; /* used to give objects unique ids */
this.ids = new WeakMap();
this.mainthread = null;