Skip to content

Commit f32f1b1

Browse files
committed
Fix SCRIPT compilation.
1 parent 6887404 commit f32f1b1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,13 @@ Framework.prototype.script = function(body, value, callback) {
943943
return compilation ? null : F;
944944
}
945945

946-
if (compilation)
947-
return fn;
946+
if (compilation) {
947+
return (function() {
948+
return function(model, next) {
949+
return fn(next, model, F.datetime);
950+
};
951+
})();
952+
}
948953

949954
fn.call(EMPTYOBJECT, function(value) {
950955

0 commit comments

Comments
 (0)