UNPKG

godprotocol

Version:

A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.

11 lines (8 loc) 258 B
const quit = async(args, vm)=>{ let {code} = args; if (code) code = await code.literal() let msg = `Program exit with code:${code ||0}` console.log(msg) return await vm.throw_error({type: 'KeyBoardInterrupt', message: msg}) } export default quit