aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 3bc78f62..c8c57244 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -74,6 +74,7 @@ Runtime = {
getFunctionIndex: function getFunctionIndex(func) {
var key = Runtime.FUNCTION_TABLE.length;
FUNCTION_TABLE[key] = func;
+ FUNCTION_TABLE[key+1] = null; // Need to have keys be even numbers, see |polymorph| test
return key;
},