trying to reduce explicit for loop in structure construction
This commit is contained in:
parent
d4236158ee
commit
a23e117b6d
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
// When we're in the middle of computing with-cont-mark, we
|
// When we're in the middle of computing with-cont-mark, we
|
||||||
// stash the key in here temporarily.
|
// stash the key in here temporarily.
|
||||||
this.pendingContinuationMarkKey = undefined;
|
// this.pendingContinuationMarkKey = undefined;
|
||||||
};
|
};
|
||||||
CallFrame.prototype = baselib.heir(Frame.prototype);
|
CallFrame.prototype = baselib.heir(Frame.prototype);
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
// When we're in the middle of computing with-cont-mark, we
|
// When we're in the middle of computing with-cont-mark, we
|
||||||
// stash the key in here temporarily.
|
// stash the key in here temporarily.
|
||||||
this.pendingContinuationMarkKey = undefined;
|
// this.pendingContinuationMarkKey = undefined;
|
||||||
};
|
};
|
||||||
PromptFrame.prototype = baselib.heir(Frame.prototype);
|
PromptFrame.prototype = baselib.heir(Frame.prototype);
|
||||||
|
|
||||||
|
|
|
@ -2249,11 +2249,7 @@
|
||||||
constructorName,
|
constructorName,
|
||||||
initFieldCount + (superType ? superType.numberOfArgs : 0),
|
initFieldCount + (superType ? superType.numberOfArgs : 0),
|
||||||
function (M) {
|
function (M) {
|
||||||
var args = [];
|
var args = M.e.slice(M.e.length - M.a).reverse();
|
||||||
var i;
|
|
||||||
for(i = 0; i < M.a; i++) {
|
|
||||||
args.push(M.e[M.e.length - 1 - i]);
|
|
||||||
}
|
|
||||||
return structType.constructor.apply(null, args);
|
return structType.constructor.apply(null, args);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user