We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var Worker = require("webworker-threads").Worker; require("http") .createServer(function(req, res) { var fibo = new Worker(function() { console.log('var', unknownvar) function fibo(n) { console.log('n', n) return n > 1 ? fibo(n - 1) + fibo(n - 2) : 1; } this.onmessage = function(event) { postMessage(fibo(event.data)); }; }); fibo.onerror = function(error) { console.log('error', error) } fibo.onmessage = function(event) { res.end("fib result" + event.data); }; fibo.postMessage(10);
}) .listen(8001);
I am trying to access some unknown variable with this
>console.log('var', unknownvar)
and this code is not responding anything , its not working also. It becomes difficult to debug what is going on without any response.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
})
.listen(8001);
I am trying to access some unknown variable with this
and this code is not responding anything , its not working also. It becomes difficult to debug what is going on without any response.
The text was updated successfully, but these errors were encountered: