fixing construction of the structure constructor when there's structure inheritance
This commit is contained in:
parent
8629e8c2ab
commit
b5913fa876
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user