aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-24 11:38:08 -0700
committeralon@honor <none@none>2010-10-24 11:38:08 -0700
commitfa7440b389910fefe7b3ea713a21b8a6b44daa6f (patch)
tree995a000499b75bef6a72bc2d97d778cfc6abb373 /src/runtime.js
parent6cc0726f3cac4473eb0ac8bfadaf429a14d472c4 (diff)
add nonvirtual part to polymorph test; fails in clang
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;
},