-
Promise 有一道经典的前端面试题
```js
console.log(1)
var promise = new Promise(resolve => {
console.log(2)
resolve()
})
promise.then(() => {
console.log(3)
})
console.log(4)
```
问输出结果是什么?
…
-
Imagine, [webdriver checks](http://admc.io/wd/#mocha-integration) run in parallel:
``` coffee
fibrous.wait [
browser
.elementByCss '.entry-title'
.text().should.become "Fibrous & Promises"
…
-
Inspired by https://github.com/promises-aplus/cancellation-spec/issues/1#issuecomment-12377406, what about something as simple as this? Assume underscored properties are "actually private," i.e. would…
-
-
See https://github.com/petkaantonov/bluebird/issues/682#issuecomment-117780167
Not sure if an actual bug but still might be interesting to sort out.
-
For learning promises, I made my own little implementation, see code below. I'm a Javascript newbie, so Douglas, don't be too hard on me please ;-)
For simplicity, it uses `process.nextTick`, so it…
-
Hi!
I noticed the polyfill is checking for the existence of both the `then` and `done` functions in an object. Why check for `done`? Pretty much every implementation out there is only checking for `t…
-
--edited for clarity and grammatical fixes--
The current specification calls for Observable.prototype.subscribe to throw if no arguments are passed to it.
```js
someObservable.subscribe() // thr…
-
检测到 willwan92/interview-questions 一共引入了34个开源组件,存在5个漏洞
```
漏洞标题:Growl命令执行漏洞
缺陷组件:growl@1.9.2
漏洞编号:CVE-2017-16042
漏洞描述:Growl是一套支持Node.js的通知系统。
Growl 1.10.2之前版本中存在安全漏洞,该漏洞源于在将输入传递到shell命令之前,程序未能正确的对其进行过滤…
-
Hey, I've written the following proposal here: https://gist.github.com/benjamingr/0237932cee84712951a2
I'd love your feedback.