@jkcfg/std
Version:
jk standard library
14 lines (13 loc) • 382 B
JavaScript
/**
* @module std/debug
*
* debug exists to help with testing the runtime.
*/
import { valueFromUTF8Bytes } from './internal/data';
import { RPC, RPCSync } from './internal/rpc';
export function echo(...args) {
return RPC('debug.echo', ...args).then(valueFromUTF8Bytes);
}
export function echoSync(...args) {
return valueFromUTF8Bytes(RPCSync('debug.echo', ...args));
}