From 41ce60e14b313758d36b6fd3ac91eed8db233e87 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 8 May 2017 11:11:30 +1000 Subject: src/lfunc.js: Give Protos an id field --- src/lfunc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2