diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-08 11:11:30 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-08 11:11:30 +1000 |
commit | 41ce60e14b313758d36b6fd3ac91eed8db233e87 (patch) | |
tree | 461b32894413ceed99d84f4ecc1e2c271acb4983 /src/lfunc.js | |
parent | cbfde9734a7c70f3ff1125b5a3c991fc7471b23d (diff) | |
download | fengari-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.js | 3 |
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 |