leobalter / shadowrealms-polyfill

MIT License
58 stars 0 forks source link

`thisArgument` wrapping #17

Open mhofman opened 3 years ago

mhofman commented 3 years ago

The proposed spec wraps the thisArgument of wrapped functions but the polyfill ignores it, which means it defaults to the global (default sloppy), a behavior which is explicitly called out in the readme.

leobalter commented 3 years ago

Thanks for catching this up! Would you be interested in writing a PR or tests for that? Otherwise I can do it later this week!