aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 852d08d8..0e4b7b2d 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -306,6 +306,13 @@ var Runtime = {
});
}
return ret;
+ },
+
+ addFunction: function(func) {
+ var ret = FUNCTION_TABLE.length;
+ FUNCTION_TABLE.push(func);
+ FUNCTION_TABLE.push(0);
+ return ret;
}
};