Closed ljharb closed 10 years ago
@david-risney, can you test this pr in a web worker, and confirm that it still works? @tavwizard, can you test this pr in node-webkit, and confirm that it now works?
Yep, looks good. I ran the worker test I had added with my previous change and it continues to pass with your change.
work fine under node-webkit
Fixes #258.
This uses
eval
via theFunction
constructor, which is awful, but I can't come up with a better method in strict mode. I could also do(function () { return this; }())
in non-strict mode, but then I'd have to make the outer wrapper of the shim not be in strict mode.