Alex Layton
Alex Layton
I am working on a paper right now. I might be able to get to it this weekend, maybe.
I tried to make a test, but now I can't get the bug to happen @puzrin. What SlimerJS were you using @winghouchan?
Yes the problem potentially affects all callbacks @winghouchan. Perhaps you have more time to make a test and fix for this issue?
I don't think node-phantom-simple supports passing regexes. I think the communication is all in JSON, so only things that JSON has will work.
Perhaps something like https://github.com/vkiryukhin/jsonfn?
I might be able to make a PR sometime in the future, but I am rather busy as of late.
I currently do not have much more time for this sort of thing than what I am putting towards node-horseman. I would be open to _possibly_ maintaining this as well...
Glad you found this useful @dickeylth. If I ever have spare time to work on horseman again, I will implement support for this myself. However, who knows when that will...
The problem is not my implementation @mvalipour. The problem is you changed all the functions to arrow functions, and [`this` works differently with arrow functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions#No_binding_of_this).
The `onInit` function will be run within the PhantomJS context (which is neither NodeJS nor a browser window), so you will not see the output of that `console.log` unless you...