lib: minor fix equality comparison#30898
lib: minor fix equality comparison#30898PW486 wants to merge 1 commit intonodejs:masterfrom PW486:equality-fix
Conversation
Change '==' to '===' in v8_prof_polyfill.js, punycode.js.
|
don't we still treat |
|
@targos not anymore as far as I can tell. We did update e.g. var. |
Trott
left a comment
There was a problem hiding this comment.
There was a very specific reason that we used == in prof_polyfill but I don't recall what it was.... Going to "request changes" for a bit while I dig through logs to try to find out. Sorry about that.
Argh, I see it was recently de-
But it looks like maybe we upstreamed that change.... |
|
This should probably be split into two commits, one for each file? |
|
@nodejs/v8 @matthewloring Am I wrong about |
|
@Trott here's an overview for loose equalities: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#Loose_equality_using Objects with a I do not know if that was intentional but I doubt it. |
I thought it had to do with side effects in V8 under the hood that would affect profiling but not anything normally visible to the end user. I'm probably wrong and will remove my request for changes. |
Change '==' to '===' in v8_prof_polyfill.js, punycode.js. PR-URL: #30898 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
|
Landed in 9c460e1. Thanks for the contribution! 🎉 |
Change '==' to '===' in v8_prof_polyfill.js, punycode.js. PR-URL: #30898 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Change '==' to '===' in v8_prof_polyfill.js, punycode.js. PR-URL: #30898 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Change '==' to '===' in v8_prof_polyfill.js, punycode.js. PR-URL: #30898 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Change '==' to '===' in v8_prof_polyfill.js, punycode.js.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes