Open Bug 880380 Opened 12 years ago Updated 2 years ago

Rename makeInfallible to logExceptions or something

Categories

(DevTools :: Framework, defect)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: dcamp, Unassigned)

Details

makeInfallible's name has confused at least one person, and it doesn't quite match the infallible semantics we use elsewhere ('will kill the app if it fails' vs. 'will log failures'), so maybe a rename is in order?
Sure, if it's not helpful, we should rename it. 'logExceptions' seems fine. (In js/src "infallible" means that the function doesn't return a failure indication (a false return value; a null pointer; etc.). That seemed analogous with throwing an exception in JS. makeInfallible takes a function that might throw, and returns one that never throws. But, communication is about getting the idea into the other person's head...)
Product: Firefox → DevTools
Component: General → Framework
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.