@jplorg/jpl
Version:
JPL interpreter
17 lines (16 loc) • 524 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _library = require("../library");
async function builtin(runtime, signal, next, input) {
const t = runtime.type(input);
switch (t) {
case 'string':
return next(await runtime.alterValue(input, value => value.toLowerCase()));
default:
}
throw new _library.JPLTypeError('%s (%*<100v) cannot be converted to lower case', t, runtime.unwrapValue(input));
}
var _default = exports.default = builtin;