UNPKG

@jplorg/jpl

Version:
17 lines (16 loc) 524 B
"use strict"; 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.toUpperCase())); default: } throw new _library.JPLTypeError('%s (%*<100v) cannot be converted to upper case', t, runtime.unwrapValue(input)); } var _default = exports.default = builtin;