Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Ignore NaN coordinates passed to workspace.open - #7808

Merged
maxbrunsfeld merged 1 commit into
masterfrom
mb-handle-nan-in-workspace-open
Jul 9, 2015
Merged

maxbrunsfeld merged 1 commit into
masterfrom
mb-handle-nan-in-workspace-open

Conversation

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

Generally, I want an exception to be thrown when packages try to put markers at invalid positions: it's a problem in the package. But in the case of calling Workspace::open with an initialLine or initialColumn, the stack trace doesn't include the package, because the method is async. It also seems like it's not a big deal to ignore these parameters if they're something that's not a number, like NaN.

Fixes #7398
Fixes #7672

maxbrunsfeld pushed a commit that referenced this pull request Jul 9, 2015
Ignore NaN coordinates passed to workspace.open
@maxbrunsfeld
maxbrunsfeld merged commit f6ce49d into master Jul 9, 2015
@maxbrunsfeld
maxbrunsfeld deleted the mb-handle-nan-in-workspace-open branch July 9, 2015 00:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants