Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getter operations return null without proper IDL #87

Open
saschanaz opened this issue Dec 22, 2020 · 0 comments · May be fixed by #88
Open

Getter operations return null without proper IDL #87

saschanaz opened this issue Dec 22, 2020 · 0 comments · May be fixed by #88

Comments

@saschanaz
Copy link
Contributor

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?

@saschanaz saschanaz linked a pull request Dec 22, 2020 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant