TypeScript/tests/cases/conformance/salsa
Nathan Shively-Sanders eeba30afc8
Fix infinite loop: module.exports alias detection (#31436)
* Fix infinite loop: module.exports alias detection

Previously, module.exports alias detection in the binder could enter an
infinite recursion. Now it does not.

Notably, there are *two* safeguards: a counter limiter that I set at
100, and an already-seen set. I actually prefer the counter limiter code
because it's foolproof and uses less memory. But it takes 100
iterations to escape from loops.

* fix space lint

* Remove already-seen map
2019-05-17 12:50:39 -07:00
..
annotatedThisPropertyInitializerDoesntNarrow.ts For a this-property assignment with an empty object initializer, use type annotation if present (#26428) 2018-08-15 14:53:30 -07:00
binderUninitializedModuleExportsAssignment.ts Fix infinite loop: module.exports alias detection (#31436) 2019-05-17 12:50:39 -07:00
chainedPrototypeAssignment.ts
checkSpecialPropertyAssignments.ts
classCanExtendConstructorFunction.ts Add getEffectiveConstructSignatures (#27561) 2018-10-15 12:47:57 -07:00
conflictingCommonJSES2015Exports.ts
constructorFunctionMergeWithClass.ts Fix class/constructor-function merge (#27366) 2018-10-08 12:56:19 -07:00
constructorFunctions.ts Add getEffectiveConstructSignatures (#27561) 2018-10-15 12:47:57 -07:00
constructorFunctions2.ts
constructorFunctions3.ts
constructorFunctionsStrict.ts
contextualTypedSpecialAssignment.ts Check module.exports (#25732) 2018-07-20 10:59:26 -07:00
enumMergeWithExpando.ts Fix JS merge crashes from lovefield (#27989) 2018-10-19 09:23:05 -07:00
exportDefaultInJsFile01.ts
exportDefaultInJsFile02.ts
exportNestedNamespaces.ts
exportNestedNamespaces2.ts
exportPropertyAssignmentNameResolution.ts
globalMergeWithCommonJSAssignmentDeclaration.ts Fix cross-file merge of assignment decl valueDeclaration (#26918) 2018-09-16 07:46:03 -07:00
inferingFromAny.ts
inferringClassMembersFromAssignments.ts
inferringClassMembersFromAssignments2.ts
inferringClassMembersFromAssignments3.ts
inferringClassMembersFromAssignments4.ts
inferringClassMembersFromAssignments5.ts
inferringClassStaticMembersFromAssignments.ts
jsContainerMergeJsContainer.ts
jsContainerMergeTsDeclaration.ts
jsContainerMergeTsDeclaration2.ts
jsContainerMergeTsDeclaration3.ts
jsObjectsMarkedAsOpenEnded.ts
malformedTags.ts
methodsReturningThis.ts
moduleExportAlias.ts
moduleExportAlias2.ts
moduleExportAlias3.ts
moduleExportAlias4.ts
moduleExportAlias5.ts
moduleExportAliasExports.ts Fix alias of module.exports->exports->IIFE (#27992) 2018-10-19 13:50:38 -07:00
moduleExportAliasImported.ts Do not merge commonJS exports into an alias (#28133) 2018-10-25 15:08:06 -07:00
moduleExportAliasUnknown.ts Fix commonjs export= merging (#27368) (#27371) 2018-09-26 12:40:30 -07:00
moduleExportAssignment.ts Check module.exports (#25732) 2018-07-20 10:59:26 -07:00
moduleExportAssignment2.ts Check module.exports (#25732) 2018-07-20 10:59:26 -07:00
moduleExportAssignment3.ts Check module.exports (#25732) 2018-07-20 10:59:26 -07:00
moduleExportAssignment4.ts Check module.exports (#25732) 2018-07-20 10:59:26 -07:00
moduleExportAssignment5.ts Check module.exports (#25732) 2018-07-20 10:59:26 -07:00
moduleExportAssignment6.ts Only bind module.exports if no local definition exists (#25869) 2018-07-30 12:27:59 -07:00
moduleExportNestedNamespaces.ts
moduleExportPropertyAssignmentDefault.ts Check module.exports (#25732) 2018-07-20 10:59:26 -07:00
moduleExportWithExportPropertyAssignment.ts
moduleExportWithExportPropertyAssignment2.ts
moduleExportWithExportPropertyAssignment3.ts
moduleExportWithExportPropertyAssignment4.ts
multipleDeclarations.ts
nestedPrototypeAssignment.ts
propertyAssignmentOnImportedSymbol.ts
propertyAssignmentOnUnresolvedImportedSymbol.ts Fix crash on property assignment of unresolved module (#28606) 2018-11-19 13:29:46 -08:00
prototypePropertyAssignmentMergeWithInterfaceMethod.ts Fix JS merge crashes from lovefield (#27989) 2018-10-19 09:23:05 -07:00
topLevelThisAssignment.ts Add globalThis (#29332) 2019-02-27 14:14:34 -08:00
typeFromContextualThisType.ts In JS, fix contextual type of this assignments (#26743) 2018-08-29 15:06:38 -07:00
typeFromJSConstructor.ts
typeFromJSInitializer.ts
typeFromParamTagForFunction.ts
typeFromPropertyAssignment.ts
typeFromPropertyAssignment2.ts
typeFromPropertyAssignment3.ts
typeFromPropertyAssignment4.ts
typeFromPropertyAssignment5.ts
typeFromPropertyAssignment6.ts
typeFromPropertyAssignment7.ts
typeFromPropertyAssignment8.ts
typeFromPropertyAssignment9.ts
typeFromPropertyAssignment10.ts
typeFromPropertyAssignment11.ts
typeFromPropertyAssignment12.ts
typeFromPropertyAssignment13.ts
typeFromPropertyAssignment14.ts
typeFromPropertyAssignment15.ts
typeFromPropertyAssignment16.ts
typeFromPropertyAssignment17.ts
typeFromPropertyAssignment18.ts
typeFromPropertyAssignment19.ts
typeFromPropertyAssignment20.ts
typeFromPropertyAssignment21.ts
typeFromPropertyAssignment22.ts
typeFromPropertyAssignment23.ts
typeFromPropertyAssignment24.ts
typeFromPropertyAssignment25.ts
typeFromPropertyAssignment26.ts
typeFromPropertyAssignment27.ts
typeFromPropertyAssignment28.ts
typeFromPropertyAssignment29.ts Declaration emit includes function properties (#26499) 2018-08-27 10:29:53 -07:00
typeFromPropertyAssignment30.ts Don't create expando object literals in TS (#26525) 2018-08-23 08:21:28 -07:00
typeFromPropertyAssignment31.ts Fix namespace expando merge (#26690) 2018-08-30 13:18:50 -07:00
typeFromPropertyAssignment32.ts Fix namespace expando merge (#26690) 2018-08-30 13:18:50 -07:00
typeFromPropertyAssignment33.ts Fix namespace expando merge (#26690) 2018-08-30 13:18:50 -07:00
typeFromPropertyAssignment34.ts Bind non-expando property assignments at top-level (#26908) 2018-09-05 10:53:43 -07:00
typeFromPropertyAssignment35.ts Fix cross-file merge of assignment decl valueDeclaration (#26918) 2018-09-16 07:46:03 -07:00
typeFromPropertyAssignment36.ts Definite assignment checking for expando properties (#27128) 2018-09-17 12:56:39 -07:00
typeFromPropertyAssignment37.ts Only report expando use-before-def for identical control flow containers (#27199) 2018-09-18 15:28:16 -07:00
typeFromPropertyAssignmentOutOfOrder.ts
typeFromPropertyAssignmentWithExport.ts
typeFromPrototypeAssignment.ts Fix this-type in prototype-assigned object literals (#26925) 2018-09-12 16:21:17 -07:00
typeFromPrototypeAssignment2.ts Fix non-toplevel prototype assignment (#27096) 2018-09-17 13:07:05 -07:00
typeFromPrototypeAssignment3.ts Fix resolution of properties from prototype assignment in JS (#29302) 2019-01-18 16:00:18 -08:00
typeLookupInIIFE.ts
varRequireFromJavascript.ts
varRequireFromTypescript.ts