[wpt-sync] Sync PR 45514 - == to ===, != to !==
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox126 fixed)
| Tracking | Status | |
|---|---|---|
| firefox126 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(7 files)
Sync web-platform-tests PR 45514 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45514
Details from upstream follow.
Caleb Raitto <caraitto@chromium.org> wrote:
== to ===, != to !==
These are preferred as they're more strict [0][1].
The exception is comparisons with null -- we sometimes want
== and != since they also match undefined.[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_inequality
Change-Id: I7a391faab107f02c2486cdd59ebb415c7613526d
Reviewed-on: https://chromium-review.googlesource.com/5420989
WPT-Export-Revision: 0a6288f9afda94fea4b472c5ca2d48455978aefb
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
| Assignee | ||
Comment 4•2 years ago
|
||
| Assignee | ||
Comment 5•2 years ago
|
||
| Assignee | ||
Comment 6•2 years ago
|
||
| Assignee | ||
Comment 7•2 years ago
|
||
| Assignee | ||
Comment 9•2 years ago
|
||
| Assignee | ||
Comment 10•2 years ago
|
||
| Assignee | ||
Comment 11•2 years ago
|
||
| Assignee | ||
Comment 12•2 years ago
|
||
Comment 13•2 years ago
|
||
| bugherder | ||
Description
•