Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Add null check for options.locale before calling toLowerCase - #37

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
a-stewart:bug-fix-in-browser-call-set-pseudo
Nov 8, 2021
Merged

Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:mainfrom
a-stewart:bug-fix-in-browser-call-set-pseudo

Conversation

@a-stewart

Copy link
Copy Markdown
Contributor

In the Options object locale is optional:

https://github.com/microsoft/vscode-nls/blob/main/src/common/common.ts#L21

This PR adds a null check before calling toLowerCase on it.

@dbaeumer

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants