Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'x' #330

Closed
techar opened this issue Dec 5, 2020 · 2 comments · Fixed by #346
Closed

Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'x' #330

techar opened this issue Dec 5, 2020 · 2 comments · Fixed by #346

Comments

@techar
Copy link

techar commented Dec 5, 2020

When requiring (context: 'sandbox') googleapis (and some other modules) there is an exception
Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'write'
This can be fixed like described in Issue 101 but it hasn't been merged. Is this secure ???

@AminHuang
Copy link

maybe can use require.mock, but I don't know if it's secure enough

@rbayliss
Copy link

rbayliss commented May 4, 2021

I was seeing a similar issue when passing a mock for the events module to work around #102. #346 resolves the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants