-
-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: enable strictBindCallApply #2254
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2254 +/- ##
========================================
Coverage 99.59% 99.60%
========================================
Files 2637 2638 +1
Lines 244872 244684 -188
Branches 1157 1084 -73
========================================
- Hits 243890 243707 -183
+ Misses 955 950 -5
Partials 27 27
|
please check if you are both
Additionally I think I should add a unit test that explicitly checks that the function is doing for what it is intended |
I'd probably go more for something like
I'll have an additional review for that most likely.
Big +1. Working with |
Co-authored-by: DivisionByZero <[email protected]>
Co-authored-by: ST-DDT <[email protected]>
Co-authored-by: ST-DDT <[email protected]>
Co-authored-by: ST-DDT <[email protected]>
Great help 🙌 Thank you both 😻 |
LOL Today I learned: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL test/internal/bind-this-to-member-functions.spec.ts > internal > bind-this-to-member-functions > should bind this to member functions
AssertionError: expected error to have message: Cannot read properties of undefined (reading 'faker')
- Expected
+ Received
- Cannot read properties of undefined (reading 'faker')
+ Cannot read property 'faker' of undefined NodeJS v14 has another error message 😆 |
I experiment and moved the repeating code into an internal function.
It seems to work and we can really pass
this
just down into the function.However typing this function correctly exceeds my TypeScript knowledge 😖