Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf307948

Browse files
author
Andy
authored
Merge pull request#11893 from Microsoft/truthy_enum
Fix bug: We want to test for existence of the enum value, not whether it's non-zero
2 parentse928451 +4e20882 commitf307948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/compiler/program.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ namespace ts {
333333
if(host.resolveModuleNames){
334334
resolveModuleNamesWorker=(moduleNames,containingFile)=>host.resolveModuleNames(moduleNames,containingFile).map(resolved=>{
335335
// An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName.
336-
if(!resolved||resolved.extension){
336+
if(!resolved||resolved.extension!==undefined){
337337
returnresolved;
338338
}
339339
resolved=clone(resolved);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp