getting rid of the raiseOperatorIsNotClosure in favor of raiseOperatorApplicationError
This commit is contained in:
parent
452fbffcd5
commit
de0f72b249
|
@ -145,13 +145,6 @@
|
||||||
ExnFailContract.constructor(message, contMarks));
|
ExnFailContract.constructor(message, contMarks));
|
||||||
};
|
};
|
||||||
|
|
||||||
var raiseOperatorIsNotClosure = function(MACHINE, operator) {
|
|
||||||
var message = baselib.format.format("not a closure: ~e",
|
|
||||||
[operator]);
|
|
||||||
var contMarks = MACHINE.captureContinuationMarks();
|
|
||||||
raise(MACHINE,
|
|
||||||
ExnFailContract.constructor(message, contMarks));
|
|
||||||
};
|
|
||||||
|
|
||||||
var raiseOperatorIsNotPrimitiveProcedure = function(MACHINE, operator) {
|
var raiseOperatorIsNotPrimitiveProcedure = function(MACHINE, operator) {
|
||||||
var message = baselib.format.format("not a primitive procedure: ~e",
|
var message = baselib.format.format("not a primitive procedure: ~e",
|
||||||
|
@ -235,7 +228,6 @@
|
||||||
exceptions.raiseContextExpectedValuesError = raiseContextExpectedValuesError;
|
exceptions.raiseContextExpectedValuesError = raiseContextExpectedValuesError;
|
||||||
exceptions.raiseArityMismatchError = raiseArityMismatchError;
|
exceptions.raiseArityMismatchError = raiseArityMismatchError;
|
||||||
exceptions.raiseOperatorApplicationError = raiseOperatorApplicationError;
|
exceptions.raiseOperatorApplicationError = raiseOperatorApplicationError;
|
||||||
exceptions.raiseOperatorIsNotClosure = raiseOperatorIsNotClosure;
|
|
||||||
exceptions.raiseOperatorIsNotPrimitiveProcedure = raiseOperatorIsNotPrimitiveProcedure;
|
exceptions.raiseOperatorIsNotPrimitiveProcedure = raiseOperatorIsNotPrimitiveProcedure;
|
||||||
exceptions.raiseUnimplementedPrimitiveError = raiseUnimplementedPrimitiveError;
|
exceptions.raiseUnimplementedPrimitiveError = raiseUnimplementedPrimitiveError;
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,6 @@
|
||||||
var raiseArityMismatchError = baselib.exceptions.raiseArityMismatchError;
|
var raiseArityMismatchError = baselib.exceptions.raiseArityMismatchError;
|
||||||
var raiseOperatorApplicationError = baselib.exceptions.raiseOperatorApplicationError;
|
var raiseOperatorApplicationError = baselib.exceptions.raiseOperatorApplicationError;
|
||||||
var raiseOperatorIsNotPrimitiveProcedure = baselib.exceptions.raiseOperatorIsNotPrimitiveProcedure;
|
var raiseOperatorIsNotPrimitiveProcedure = baselib.exceptions.raiseOperatorIsNotPrimitiveProcedure;
|
||||||
var raiseOperatorIsNotClosure = baselib.exceptions.raiseOperatorIsNotClosure;
|
|
||||||
var raiseUnimplementedPrimitiveError = baselib.exceptions.raiseUnimplementedPrimitiveError;
|
var raiseUnimplementedPrimitiveError = baselib.exceptions.raiseUnimplementedPrimitiveError;
|
||||||
|
|
||||||
|
|
||||||
|
@ -635,7 +634,7 @@
|
||||||
|
|
||||||
var checkClosureAndArity = function(M) {
|
var checkClosureAndArity = function(M) {
|
||||||
if(!(M.p instanceof Closure)){
|
if(!(M.p instanceof Closure)){
|
||||||
raiseOperatorIsNotClosure(M,M.p);
|
raiseOperatorApplicationError(M,M.p);
|
||||||
}
|
}
|
||||||
if(!isArityMatching(M.p.racketArity,M.a)) {
|
if(!isArityMatching(M.p.racketArity,M.a)) {
|
||||||
raiseArityMismatchError(M,M.p,M.a);
|
raiseArityMismatchError(M,M.p,M.a);
|
||||||
|
@ -722,7 +721,6 @@
|
||||||
exports['raiseArityMismatchError'] = raiseArityMismatchError;
|
exports['raiseArityMismatchError'] = raiseArityMismatchError;
|
||||||
exports['raiseOperatorApplicationError'] = raiseOperatorApplicationError;
|
exports['raiseOperatorApplicationError'] = raiseOperatorApplicationError;
|
||||||
exports['raiseOperatorIsNotPrimitiveProcedure'] = raiseOperatorIsNotPrimitiveProcedure;
|
exports['raiseOperatorIsNotPrimitiveProcedure'] = raiseOperatorIsNotPrimitiveProcedure;
|
||||||
exports['raiseOperatorIsNotClosure'] = raiseOperatorIsNotClosure;
|
|
||||||
exports['raiseUnimplementedPrimitiveError'] = raiseUnimplementedPrimitiveError;
|
exports['raiseUnimplementedPrimitiveError'] = raiseUnimplementedPrimitiveError;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
(provide version)
|
(provide version)
|
||||||
(: version String)
|
(: version String)
|
||||||
|
|
||||||
(define version "1.88")
|
(define version "1.89")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user