@jplorg/jpl
Version:
JPL interpreter
19 lines (18 loc) • 483 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _utils = require("../utils");
var _default = exports.default = {
/** { by: [op] } */
op(runtime, input, target, params, scope, next) {
return runtime.executeInstructions(params.by ?? [], [input], scope, by => next(!runtime.equals(target, by)));
},
/** { by: function } */
map(runtime, params) {
return {
by: (0, _utils.call)(params.by)
};
}
};