fixing construction of the structure constructor when there's structure inheritance

This commit is contained in:
Danny Yoo 2011-10-03 17:20:58 -04:00
parent 8629e8c2ab
commit b5913fa876

View File

@ -2197,8 +2197,6 @@
constructorName constructorName
) { ) {
// FIXME: typechecks.
var structType = baselib.structs.makeStructureType( var structType = baselib.structs.makeStructureType(
name, name,
superType, superType,
@ -2214,7 +2212,7 @@
var constructorValue = var constructorValue =
makePrimitiveProcedure( makePrimitiveProcedure(
constructorName, constructorName,
baselib.numbers.toFixnum(initFieldCount), initFieldCount + (superType ? superType.numberOfArgs : 0),
function (M) { function (M) {
var args = []; var args = [];
var i; var i;