Evaluating code with { mode: 'module' } now returns the module exports or a promise of the module exports.
introduce context.getPromiseState(handle) for synchronous access to promise contents. This can be used with context.unwrapResult to expect a promise to be resolved. Example usage: context.runtime.executePendingJobs(); resolved = context.unwrapResult(context.getPromiseState(promiseHandle))
Fixes #148
{ mode: 'module' }
now returns the module exports or a promise of the module exports.context.getPromiseState(handle)
for synchronous access to promise contents. This can be used withcontext.unwrapResult
to expect a promise to be resolved. Example usage:context.runtime.executePendingJobs(); resolved = context.unwrapResult(context.getPromiseState(promiseHandle))