arkenfox / TZP

https://arkenfox.github.io/TZP
MIT License
8 stars 0 forks source link

fix: proxy error detection #161

Closed abrahamjuliot closed 2 years ago

abrahamjuliot commented 2 years ago

Within our proxy detection functions, this updates the Blink stack line to match Chrome 102.

// "Proxy." is no longer in the stack line "at Proxy.[Symbol.hasInstance]"
proxy = new Proxy(Function.prototype.toString, {})
proxy instanceof proxy
// "Function." is no longer in the stack line "at Function.set __proto__ [as __proto__]"
api = Function.prototype.toString
api.__proto__ = api
api.toString()