Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up建议消除内置全局对象 #1072
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
|
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. |
wollld commentedJan 22, 2018
如nodejs,分模块,然后导入,减少全局对象污染,如top,parent,self,居然是全局对象window的一个属性,容易出bug,也不合理。