|
|
|
|
|
by inglor
4006 days ago
|
|
Both parts are incorrect, the native way is `Promise.resolve('done')`. As for .call - native promises let you subclass them. If you have a promise enabled environment you can use generators anyway. I used Q's syntax because that's what OP used. Regardless - nice comment. |
|