ariya/phantomjs — comment on commit e88e008ecf742f705feba07fa9ada3d21f802c82
File: src/utils.cpp line 116
By jonleighton:

I am not quite sure what you mean. Can you elaborate with examples of how it would work?

I agree with you this `__run()` thing is suboptimal. We should at least call it `phantom.run()` to be consistent, and maybe `phantom.run()` would trigger some C++ code that actually injects the javascript into the page such that it is executed. Although note that this `__run()` hack does allow you to run the script several times in the same debug session which can be nice.

@lfranchi any thoughts?