the constructor didn't look at the argcount register properly. Fixed

This commit is contained in:
Danny Yoo 2011-10-03 17:59:17 -04:00
parent 2854bd7cd5
commit 2351c6d80e

View File

@ -2189,9 +2189,9 @@
initFieldCount, initFieldCount,
autoFieldCount, autoFieldCount,
autoV, autoV,
props, // FIXME: currently ignored props,
inspector, // FIXME: currently ignored inspector, // FIXME: currently ignored
procSpec, // FIXME: currently ignored procSpec, // FIXME: currently ignored
immutables, // FIXME: currently ignored immutables, // FIXME: currently ignored
guard, // FIXME: currently ignored guard, // FIXME: currently ignored
constructorName constructorName
@ -2215,7 +2215,7 @@
function (M) { function (M) {
var args = []; var args = [];
var i; var i;
for(i = 0; i < initFieldCount; i++) { for(i = 0; i < M.a; i++) {
args.push(M.e[M.e.length - 1 - i]); args.push(M.e[M.e.length - 1 - i]);
} }
return structType.constructor.apply(null, args); return structType.constructor.apply(null, args);