Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxvipon/promise-exception-test
https://github.com/maxvipon/promise-exception-test
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxvipon/promise-exception-test
- Owner: maxvipon
- Created: 2014-01-22T07:13:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-22T07:24:08.000Z (almost 11 years ago)
- Last Synced: 2023-03-23T13:24:27.806Z (over 1 year ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Promise Exception Test
```bash
$ npm install
# Test Vow
$ node vow-exception.js
# no exception$ node vow-exception-catch.js
TypeError: Object # has no method 'map'
at /Users/maxpon/vow-exception-catch.js:8:17
at Array.0 (/Users/maxpon/node_modules/vow/lib/vow.js:555:56)
at Object.callFns [as _onImmediate] (/Users/maxpon/node_modules/vow/lib/vow.js:1131:35)
at processImmediate [as _immediateCallback] (timers.js:330:15)# Test Bluebird
$ node bluebird-exception.js
TypeError: Object [object PromiseResolver] has no method 'map'
at /Users/maxpon/bluebird-exception.js:8:17
at tryCatch1 (/Users/maxpon/node_modules/bluebird/js/main/util.js:85:19)
at Promise$_callHandler [as _callHandler] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:679:13)
at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:695:18)
at Promise$_settlePromiseAt [as _settlePromiseAt] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:877:14)
at Promise$_fulfillPromises [as _fulfillPromises] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:978:14)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/Users/maxpon/node_modules/bluebird/js/main/async.js:63:12)
at Async$consumeFunctionBuffer (/Users/maxpon/node_modules/bluebird/js/main/async.js:36:14)
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)$ node bluebird-exception-catch.js
TypeError: Object [object PromiseResolver] has no method 'map'
at /Users/maxpon/bluebird-exception-catch.js:8:17
at tryCatch1 (/Users/maxpon/node_modules/bluebird/js/main/util.js:85:19)
at Promise$_callHandler [as _callHandler] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:679:13)
at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:695:18)
at Promise$_settlePromiseAt [as _settlePromiseAt] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:877:14)
at Promise$_fulfillPromises [as _fulfillPromises] (/Users/maxpon/node_modules/bluebird/js/main/promise.js:978:14)
at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/Users/maxpon/node_modules/bluebird/js/main/async.js:63:12)
at Async$consumeFunctionBuffer (/Users/maxpon/node_modules/bluebird/js/main/async.js:36:14)
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)
```