You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with 👍 or 👎 to give our bot feedback!
Expected behaviour
Benchmark for
replace
should compare operations on the same stringtxt
Actual behaviour
_.replace
tries to make a replacement on non-existent stringstr
and silently fails. Therefore there is no actual comparison forreplace
.How to reproduce
node nativeVsLodash.js
Possible solution(s)
Fix the code:
Also, the RegExp in this suite is global - this may affect results.
Environment
Link or repo
https://github.com/Berkmann18/NativeVsUtils/blob/master/nativeVsLodash.js#L395-L396
The text was updated successfully, but these errors were encountered: