Closed kevinoid closed 3 years ago
Merging #349 (d7b3e11) into master (bdf8984) will decrease coverage by
0.02%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #349 +/- ##
==========================================
- Coverage 93.15% 93.12% -0.03%
==========================================
Files 1 1
Lines 555 553 -2
==========================================
- Hits 517 515 -2
Misses 38 38
Flag | Coverage Δ | |
---|---|---|
unit | 93.12% <100.00%> (-0.03%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
src/fake-timers-src.js | 93.12% <100.00%> (-0.03%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update bdf8984...d7b3e11. Read the comment docs.
I don't know why this has been dormant for five months, but I see @benjamingr approved it, so I guess it's good. Just merge it the next time, Benjamin, unless there's something specific you want a second pair of eyes on (in which case you just ping that someone) 🙂
Purpose (TL;DR) - mandatory
Fix #347 by copying symbol own-properties to installed methods.
Background (Problem in detail) - optional
The
for...in
loop used to copy properties only copies string own-properties to installed methods, which omitsutil.promisify.custom
necessary forutil.promisify
support on Node as added in #292.Solution - optional
This PR copies all own-property descriptors to get both
Symbol
own-properties and to copy any getters/setters that may be added in the future.If there's a reason getters/setters should not be copied, let me know and I can add an
Object.assign
polyfill to sinonjs/commons and use that instead.Thanks for considering, Kevin
Fixes: #347