Skip to content

fix(compiler): return undefined for getScriptVersion#1641

Merged
ahnpnl merged 1 commit intokulshekhar:masterfrom
ahnpnl:fix-compiler
May 14, 2020
Merged

fix(compiler): return undefined for getScriptVersion#1641
ahnpnl merged 1 commit intokulshekhar:masterfrom
ahnpnl:fix-compiler

Conversation

@ahnpnl
Copy link
Copy Markdown
Collaborator

@ahnpnl ahnpnl commented May 14, 2020

Summary

Close #1639

Test plan

Not sure how to test this. But from code perspective, using ! operator is wrong.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

@ahnpnl ahnpnl requested a review from kulshekhar as a code owner May 14, 2020 15:12
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 4835

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.04%) to 92.853%

Totals Coverage Status
Change from base Build 4834: -0.04%
Covered Lines: 1061
Relevant Lines: 1096

💛 - Coveralls

@ahnpnl ahnpnl merged commit 6851b8e into kulshekhar:master May 14, 2020
@ahnpnl ahnpnl deleted the fix-compiler branch May 14, 2020 18:23
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 this pull request may close these issues.

[compiler/language-service::getScriptVersion] Shouldn't this statement use optional chaining and not non-null assertion operator?

3 participants