@littledan @caridy The current Readme allows autowrapping callable returns from the Realm functions. It just felt more natural for the workflow.
I believe we set in #9 that only importBinding would autowrap returns and we would also autowrap given arguments. Like in this example:
const red = new Realm();
await red.importBinding('./file.js', myImportRedFn); // wrapped
const redFunction = red.Function('cb', 'return cb(2);');
redFunction(x => x * 3); // the arrow function is wrapped
My question is regarding to block or not autowrap of returns:
@littledan @caridy The current Readme allows autowrapping callable returns from the Realm functions. It just felt more natural for the workflow.
I believe we set in #9 that only importBinding would autowrap returns and we would also autowrap given arguments. Like in this example:
My question is regarding to block or not autowrap of returns:
Maybe I just captured it wrong in #9, it seems fair enough to have this, but my memory might be failing here.