-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sandbox proxy result in function lose apply this #1449
Labels
bug
Something isn't working
Comments
const obj = {}; getTemplate from third party npm package |
@kuitos hi gays,When will this problem be fixed,thanks~ |
mark |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happens?
eg:
const obj = {}; window.getTemplate = function(){ this.a = 'xxxxxxx'; this.b='xxxxxxx'; } window.getTemplate.apply(obj ); console.log(obj .a);
obj .a 、obj.b is undefined
getTemplate from third party npm package
A clear and concise description of what the bug is.
window.getTemplate function agent by sandbox proxy,bind window in getTargetValue
Mini Showcase Repository(REQUIRED)
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
The text was updated successfully, but these errors were encountered: