Open Bug 1898013 Opened 2 years ago Updated 2 years ago

Consider requiring WebIDL methods and getters to return [Moving]NotNull when they return a non-nullable interface type

Categories

(Core :: DOM: Bindings (WebIDL), task)

task

Tracking

()

People

(Reporter: peterv, Unassigned)

References

Details

Currently nothing ensures that they return a non-null pointer, and it's easy to miss (because the WebIDL is where it's specified whether the type is nullable). The complication is that if they're throwing then they are allowed to return null in the error case. We might need a different type that allows for this.

You need to log in before you can comment on or make changes to this bug.