Skip to content

Commit 47ae29a

Browse files
committed
Fix bad edits
1 parent e8f7120 commit 47ae29a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/binder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3526,7 +3526,7 @@ function createBinder(): (file: SourceFile, options: CompilerOptions) => void {
35263526
if (!isBindingPattern(node.name)) {
35273527
const possibleVariableDecl = node.kind === SyntaxKind.VariableDeclaration ? node : node.parent.parent;
35283528
if (isInJSFile(node) &&
3529-
shouldResolveJsRequire(compilerOptions) &&
3529+
shouldResolveJsRequire(options) &&
35303530
isVariableDeclarationInitializedToBareOrAccessedRequire(possibleVariableDecl) &&
35313531
!getJSDocTypeTag(node) &&
35323532
!(getCombinedModifierFlags(node) & ModifierFlags.Export)

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4150,7 +4150,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
41504150
if (!isIdentifier(name)) {
41514151
return undefined;
41524152
}
4153-
const suppressInteropError = name.escapedText === InternalSymbolName.Default && allowSyntheticDefaultImports);
4153+
const suppressInteropError = name.escapedText === InternalSymbolName.Default && allowSyntheticDefaultImports;
41544154
const targetSymbol = resolveESModuleSymbol(moduleSymbol, moduleSpecifier, /*dontResolveAlias*/ false, suppressInteropError);
41554155
if (targetSymbol) {
41564156
if (name.escapedText) {

0 commit comments

Comments
 (0)