summaryrefslogtreecommitdiff
path: root/src/lfunc.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 11:11:30 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 11:11:30 +1000
commit41ce60e14b313758d36b6fd3ac91eed8db233e87 (patch)
tree461b32894413ceed99d84f4ecc1e2c271acb4983 /src/lfunc.js
parentcbfde9734a7c70f3ff1125b5a3c991fc7471b23d (diff)
downloadfengari-41ce60e14b313758d36b6fd3ac91eed8db233e87.tar.gz
fengari-41ce60e14b313758d36b6fd3ac91eed8db233e87.tar.bz2
fengari-41ce60e14b313758d36b6fd3ac91eed8db233e87.zip
src/lfunc.js: Give Protos an id field
Diffstat (limited to 'src/lfunc.js')
-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