Commit 60ef7a0
File tree
7 files changed
+157
-35
lines changed- src
- debuggability.jshas 3 comments
- test
- browser
- mocha
- helpers
- tools
7 files changed
+157
-35
lines changed+119-10
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + Has conversations. Original line has conversations. | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
34 | 105 |
| |
35 | 106 |
| |
36 | 107 |
| |
| |||
40 | 111 |
| |
41 | 112 |
| |
42 | 113 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
| 114 | + | |
47 | 115 |
| |
48 | 116 |
| |
49 | 117 |
| |
| |||
144 | 212 |
| |
145 | 213 |
| |
146 | 214 |
| |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
147 | 239 |
| |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
148 | 253 |
| |
149 | 254 |
| |
150 | 255 |
| |
151 | 256 |
| |
152 | 257 |
| |
| 258 | + | |
153 | 259 |
| |
154 | 260 |
| |
155 | 261 |
| |
156 | 262 |
| |
157 |
| - | |
| 263 | + | |
158 | 264 |
| |
159 | 265 |
| |
160 | 266 |
| |
161 | 267 |
| |
162 |
| - | |
| 268 | + | |
| 269 | + | |
163 | 270 |
| |
164 | 271 |
| |
165 | 272 |
| |
166 | 273 |
| |
167 | 274 |
| |
168 | 275 |
| |
169 | 276 |
| |
170 |
| - | |
| 277 | + | |
| 278 | + | |
171 | 279 |
| |
172 | 280 |
| |
173 | 281 |
| |
174 | 282 |
| |
175 | 283 |
| |
176 |
| - | |
| 284 | + | |
177 | 285 |
| |
178 | 286 |
| |
179 | 287 |
| |
180 | 288 |
| |
181 | 289 |
| |
182 | 290 |
| |
| 291 | + | |
183 | 292 |
| |
184 |
| - | |
| 293 | + | |
185 | 294 |
| |
186 |
| - | |
| 295 | + | |
187 | 296 |
| |
188 | 297 |
| |
189 | 298 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4215 | 4215 |
| |
4216 | 4216 |
| |
4217 | 4217 |
| |
4218 |
| - | |
| 4218 | + | |
4219 | 4219 |
| |
4220 | 4220 |
| |
4221 | 4221 |
| |
| |||
4331 | 4331 |
| |
4332 | 4332 |
| |
4333 | 4333 |
| |
| 4334 | + | |
4334 | 4335 |
| |
4335 | 4336 |
| |
4336 | 4337 |
| |
| |||
5185 | 5186 |
| |
5186 | 5187 |
| |
5187 | 5188 |
| |
5188 |
| - | |
| 5189 | + | |
5189 | 5190 |
| |
5190 | 5191 |
| |
5191 | 5192 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 |
| |
61 | 65 |
| |
62 | 66 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
102 |
| - | |
| 102 | + | |
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
| 125 | + | |
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 | 139 |
| |
| 140 | + | |
144 | 141 |
| |
145 | 142 |
| |
146 | 143 |
| |
147 | 144 |
| |
148 | 145 |
| |
149 | 146 |
| |
150 |
| - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
187 | 190 |
| |
188 | 191 |
| |
189 | 192 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
517 | 517 |
| |
518 | 518 |
| |
519 | 519 |
| |
520 |
| - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
521 | 523 |
| |
522 |
| - | |
| 524 | + | |
523 | 525 |
| |
524 | 526 |
| |
525 | 527 |
| |
| |||
564 | 566 |
| |
565 | 567 |
| |
566 | 568 |
| |
| 569 | + | |
567 | 570 |
| |
568 |
| - | |
569 |
| - | |
| 571 | + | |
| 572 | + | |
570 | 573 |
| |
571 | 574 |
| |
572 | 575 |
| |
| |||
603 | 606 |
| |
604 | 607 |
| |
605 | 608 |
| |
| 609 | + | |
606 | 610 |
| |
607 |
| - | |
608 |
| - | |
| 611 | + | |
| 612 | + | |
609 | 613 |
| |
610 | 614 |
| |
611 | 615 |
| |
| |||
661 | 665 |
| |
662 | 666 |
| |
663 | 667 |
| |
664 |
| - | |
| 668 | + | |
665 | 669 |
| |
666 | 670 |
| |
667 | 671 |
| |
668 | 672 |
| |
669 | 673 |
| |
670 | 674 |
| |
671 |
| - | |
| 675 | + | |
672 | 676 |
| |
673 | 677 |
| |
674 | 678 |
| |
675 | 679 |
| |
676 | 680 |
| |
677 | 681 |
| |
| 682 | + | |
678 | 683 |
| |
679 | 684 |
| |
680 | 685 |
| |
681 | 686 |
| |
682 | 687 |
| |
683 |
| - | |
684 |
| - | |
| 688 | + | |
| 689 | + | |
685 | 690 |
| |
686 | 691 |
| |
687 | 692 |
| |
| |||
722 | 727 |
| |
723 | 728 |
| |
724 | 729 |
| |
725 |
| - | |
| 730 | + | |
726 | 731 |
| |
727 | 732 |
| |
728 | 733 |
| |
| |||
796 | 801 |
| |
797 | 802 |
| |
798 | 803 |
| |
799 |
| - | |
| 804 | + | |
800 | 805 |
| |
801 | 806 |
| |
802 | 807 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
| 215 | + | |
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
98 |
| - | |
| 97 | + | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
|
1 commit comments
Comments
(1)This commit makes the tests unreliable for me locally on macOS using Node.js 12.11.1. It doesn't fail every time but it fails most of the time if I use npm test
and less often if I use node tools/test --run=unhandled_rejections.js
:
55 passing (222ms)
1 failing
1) issues GH-1487-8:
Error: Reporting handled rejection as unhandled from: function testFunction() {
var ret = onUnhandledFail(testFunction);
var arr = [ Promise.reject( new Error('foo') ) ];
var p = Promise.resolve( arr );
p.filter( function() {} ).caught( function() {} );
return ret;
}
at /Users/trott/temp/bluebird/test/mocha/helpers/util.js:142:23
From previous event:
at onUnhandledFail (/Users/trott/temp/bluebird/test/mocha/helpers/util.js:141:16)
at context.testFunction (/Users/trott/temp/bluebird/test/mocha/unhandled_rejections.js:869:19)
at callFn (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:251:21)
at Test.Runnable.run (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:244:7)
at Runner.runTest (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:374:10)
at /Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:452:12
at next (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:299:14)
at /Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:309:7
at next (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:248:23)
at /Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:271:7
at done (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:207:5)
at callFn (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:262:7)
at Hook.Runnable.run (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:244:7)
at next (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:259:10)
at Immediate.<anonymous> (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:276:5)
at processImmediate (internal/timers.js:439:21)
Error: Reporting handled rejection as unhandled from: function testFunction() {
var ret = onUnhandledFail(testFunction);
var arr = [ Promise.reject( new Error('foo') ) ];
var p = Promise.resolve( arr );
p.filter( function() {} ).caught( function() {} );
return ret;
}
at /Users/trott/temp/bluebird/test/mocha/helpers/util.js:142:23
at onUnhandledFail (/Users/trott/temp/bluebird/test/mocha/helpers/util.js:141:16)
at context.testFunction (/Users/trott/temp/bluebird/test/mocha/unhandled_rejections.js:869:19)
at callFn (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:251:21)
at Test.Runnable.run (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:244:7)
at Runner.runTest (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:374:10)
at /Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:452:12
at next (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:299:14)
at /Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:309:7
at next (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:248:23)
at /Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:271:7
at done (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:207:5)
at callFn (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:262:7)
at Hook.Runnable.run (/Users/trott/temp/bluebird/node_modules/mocha/lib/runnable.js:244:7)
at next (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:259:10)
at Immediate.<anonymous> (/Users/trott/temp/bluebird/node_modules/mocha/lib/runner.js:276:5)
From previous event:
at Object.run (/Users/trott/temp/bluebird/tools/job-runner/job-runner.js:141:27)
at runTestGroup (/Users/trott/temp/bluebird/tools/test.js:123:22)
at /Users/trott/temp/bluebird/tools/test.js:261:16
at processImmediate (internal/timers.js:439:21)
From previous event:
at Object.<anonymous> (/Users/trott/temp/bluebird/tools/test.js:254:27)
at Module._compile (internal/modules/cjs/loader.js:945:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)
at Module.load (internal/modules/cjs/loader.js:798:32)
at Function.Module._load (internal/modules/cjs/loader.js:711:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:1014:10)
at internal/main/run_main_module.js:17:11
Please sign in to comment.