Closed
Bug 1502176
Opened 6 years ago
Closed 5 years ago
Replace assertThrows with assertThrowsInstanceOf in js/src/tests/non262 when Error type is tested
Categories
(Core :: JavaScript Engine, defect, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla69
People
(Reporter: anba, Assigned: khyperia)
Details
Attachments
(2 files)
This query [1] shows multiple callers to |assertThrows| [2] which should actually be |assertThrowsInstanceOf| [3], because they pass an explicit Error type. [1] https://searchfox.org/mozilla-central/search?q=assertThrows(&case=true®exp=false&path=js%2Fsrc%2Ftests%2Fnon262 [2] https://searchfox.org/mozilla-central/rev/e0c879c86b95bdc752b1dbff6088169735674e4a/js/src/tests/shell.js#148 [3] https://searchfox.org/mozilla-central/rev/e0c879c86b95bdc752b1dbff6088169735674e4a/js/src/tests/shell.js#160
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Pushed by ahauck@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/31b5217daca7 Fix broken assertThrows tests. r=jorendorff https://hg.mozilla.org/integration/autoland/rev/5f04783422b4 Change assertThrows with type to assertThrowsInstanceOf. r=jorendorff
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/31b5217daca7
https://hg.mozilla.org/mozilla-central/rev/5f04783422b4
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox69:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Updated•5 years ago
|
Assignee: nobody → khyperia
Updated•5 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•