aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lfunc.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lfunc.js b/src/lfunc.js
index d9ac4db..161724e 100644
--- a/src/lfunc.js
+++ b/src/lfunc.js
@@ -8,7 +8,8 @@ const CT = defs.constant_types;
class Proto {
- constructor() {
+ constructor(L) {
+ this.id = L.l_G.id_counter++;
this.k = []; // constants used by the function
this.p = []; // functions defined inside the function
this.code = []; // opcodes