nl_tokens: Given an object path and arguments actually invokes the method and returns the result . This method is run on the target side ( i . e . not the one doing the invoking ) . This method tries to figure out the return value of an object and do the right thing including awaiting Promises to get their values .
pl_tokens: async function evalRemoteMethod ( path , args ) { let [ parent , obj ] = objectAndParentGivenPath ( path ) ; let result = obj ; if ( obj && typeof ( obj ) === 'function' ) { d ( "obj is function!" ) ; let res = obj . apply ( parent , args ) ; result = res ; if ( typeof ( res ) === 'object' && res && 'then' in res ) { d ( "result is Promise!" ) ; <mask> = await res ; } } return result ; }