Comments (2)
这个地方个人感觉是文字游戏啦,独立的上下文阻止的是对全局作用域的污染,按照文中的用语,应该是防止对Node默认的VM的污染。作用域的话应该是指模块的作用域,因为本来就是局部的,所以不需要独立的上下文也不会被污染。
不过还是希望作者出来确认下啦,我是有点没太明白这里想问的是啥 T_T
from node-interview.
可以当做脑筋急转弯。对其了解到不同深度的人会给出不同的想法。
Feel free to reopen.
from node-interview.
Related Issues (20)
- 将基础类型包装也不能以引用的方式传递 HOT 1
- 回复:`如何实现一个异步的 reduce?` HOT 2
- 模块章节中关于循环require的一个问题 HOT 1
- [请教] : mongodb 的一个问题? HOT 5
- reduceAsync HOT 3
- 几个杂务 HOT 3
- 同源策略解释有误 HOT 4
- 发现一个小问题 HOT 1
- process.nextTick与setTimeout递归调用区别 HOT 5
- a request for docs update HOT 1
- 关于Io那个章节的一个问题 HOT 2
- update docs HOT 1
- Typo HOT 1
- background.png 404
- 关于CDN HOT 4
- dns的lookup那里有错 HOT 1
- try/catch 去捕获异步的异常?如何捕获? HOT 1
- 关于Events HOT 3
- 关于 MySQL 的一些问题
- 有个交流群就好了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-interview.