fixing type of list*; kanren wasn't running properly
This commit is contained in:
parent
656825be9e
commit
b8971417b2
|
@ -631,6 +631,7 @@ var invokeMainModule = function() {
|
||||||
.css('whitespace', 'pre')
|
.css('whitespace', 'pre')
|
||||||
.appendTo(subcontextDiv);
|
.appendTo(subcontextDiv);
|
||||||
} else if (plt.runtime.isProcedure(context[i])) {
|
} else if (plt.runtime.isProcedure(context[i])) {
|
||||||
|
if (context[i].displayName) {
|
||||||
$('<div/>').text('in ' + context[i].displayName)
|
$('<div/>').text('in ' + context[i].displayName)
|
||||||
.addClass('stacktrace')
|
.addClass('stacktrace')
|
||||||
.css('margin-left', '10px')
|
.css('margin-left', '10px')
|
||||||
|
@ -639,6 +640,7 @@ var invokeMainModule = function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
contextDiv.append(subcontextDiv);
|
contextDiv.append(subcontextDiv);
|
||||||
M.params.currentErrorDisplayer(M, contextDiv);
|
M.params.currentErrorDisplayer(M, contextDiv);
|
||||||
};
|
};
|
||||||
|
|
|
@ -81,18 +81,10 @@
|
||||||
|
|
||||||
|
|
||||||
var isProcedure = function (x) {
|
var isProcedure = function (x) {
|
||||||
return (typeof (x) === 'function' ||
|
return (typeof (x) === 'function' || x instanceof Closure);
|
||||||
x instanceof Closure);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var coersePrimitiveToJavaScript = function (v, MACHINE) {
|
var coersePrimitiveToJavaScript = function (v, MACHINE) {
|
||||||
return function (succ, fail) {
|
return function (succ, fail) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -603,7 +603,7 @@
|
||||||
'list*',
|
'list*',
|
||||||
baselib.arity.makeArityAtLeast(1),
|
baselib.arity.makeArityAtLeast(1),
|
||||||
function (M) {
|
function (M) {
|
||||||
var result = checkList(M, 'list*', M.a - 1), i;
|
var result = checkAny(M, 'list*', M.a - 1), i;
|
||||||
for (i = M.a - 2; i >= 0; i--) {
|
for (i = M.a - 2; i >= 0; i--) {
|
||||||
result = makePair(M.e[M.e.length - 1 - i],
|
result = makePair(M.e[M.e.length - 1 - i],
|
||||||
result);
|
result);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user