"Maximum call stack size exceeded" when create many Proxy instance using same handler #2206
Labels
AREA: client
STATE: Auto-locked
Issues that were automatically locked by the Lock bot
SYSTEM: client side processing
TYPE: bug
Milestone
Hi, we found that there is a chance that when using testcafe to test a mbox based SPA, "Maximum call stack size exceeded" error will occur during case execution.
It turns out the root cause of this error is because hammerhand overwrite
window.Proxy
.Here is a minimal reproduce script
Start hammerhand play ground and visit any website in it, then execute the code in console, you will get this error:
![微软_Bing_搜索_-_国内版](https://user-images.githubusercontent.com/3314130/71705339-33203e80-2e1a-11ea-8a31-072468d05b4e.png)
Here is the related code
I guess this bug can be fixed by checking if the
handler
has already been overwrite.The text was updated successfully, but these errors were encountered: