Closed Bug 1496868 Opened 6 years ago Closed 6 years ago

[jstests] Make assertThrowsValue and assertThrowsInstanceOf overridable

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: decoder, Assigned: decoder)

Details

Attachments

(1 file)

Most of the assert* function are defined in js/src/jit-test/lib/asserts.js and they can be redefined from the outside. However, js/src/tests/non262/shell.js has two more functions, assertThrowsValue and assertThrowsInstanceOf, that cannot be redefined the same way. I'd like to change that because it could help fuzzing.
Pushed by choller@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/741a43f63ec4
Make assertThrowsValue and assertThrowsInstanceOf overridable. r=sfink
https://hg.mozilla.org/mozilla-central/rev/741a43f63ec4
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: