Open Bug 2023503 Opened 5 months ago Updated 5 months ago

Investigate if we can make "return null()" instead of "return errorResult()" a compile error

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: jandem, Unassigned)

References

(Blocks 1 open bug)

Details

return errorResult() is the correct way to propagate an error in the parser, but it's easy to mistype this as return null(). It would be nice if this was harder to get wrong.

See this patch for example: https://phabricator.services.mozilla.com/D287361

Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.