Skip to content

Getter operations return null without proper IDL #87

Open
@saschanaz

Description

@saschanaz

For example, the SpeechRecognitionResult's getter operation says:

If index is greater than or equal to length, this returns null

But the IDL does not indicate so:

[Exposed=Window]
interface SpeechRecognitionResult {
    readonly attribute unsigned long length;
    getter SpeechRecognitionAlternative item(unsigned long index);
    readonly attribute boolean isFinal;
};

The return types must be nullable here. I'm not sure how Blink allows returning null here, though?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions