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

建议消除内置全局对象 #1072

Closed
wollld opened this Issue Jan 22, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@wollld

wollld commented Jan 22, 2018

如nodejs,分模块,然后导入,减少全局对象污染,如top,parent,self,居然是全局对象window的一个属性,容易出bug,也不合理。

@wollld

This comment has been minimized.

Show comment
Hide comment
@wollld

wollld Jan 22, 2018

Such as nodejs, sub module, and then import, reduce the global object pollution, such as top, parent, self, which is an attribute of the global object window. It is easy to get bug and unreasonable.

wollld commented Jan 22, 2018

Such as nodejs, sub module, and then import, reduce the global object pollution, such as top, parent, self, which is an attribute of the global object window. It is easy to get bug and unreasonable.

@littledan

This comment has been minimized.

Show comment
Hide comment
@littledan

littledan Jan 22, 2018

Member

The title translates as "It is recommended to eliminate the built-in global object".

I don't see how this could be done without breaking web compatibility. In any case, this sounds like a new proposal. Please see CONTRIBUTING.md for how to create such a new proposal.

Member

littledan commented Jan 22, 2018

The title translates as "It is recommended to eliminate the built-in global object".

I don't see how this could be done without breaking web compatibility. In any case, this sounds like a new proposal. Please see CONTRIBUTING.md for how to create such a new proposal.

@littledan littledan closed this Jan 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment