markwylde / workerbox

A secure sandbox to execute untrusted user JavaScript, in a web browser, without any risk to your own domain/site/page.
https://workerbox.net
MIT License
123 stars 3 forks source link

Fix callback return value #10

Closed markwylde closed 1 year ago

markwylde commented 1 year ago

Resolves https://github.com/markwylde/workerbox/issues/9

It's still not a recursive solution, as I think if a callback passes another callback, again it won't get a return value.

I need to cleanup how all these prepareArgs and parseArgs functions work, and come up with a more generic and cleaner recursive solution.

But for now, this should fix the immediate issue.