From 94f3ca142f155791d45b90b0c99f2a056eaab314 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sun, 8 Mar 2020 16:25:23 -0400 Subject: [PATCH] Added runtime TypeError for non-function, non-null __extends As per the linked issue, although TypeScript already has checking in place that tries to prevent users from extending classes before their declaration, it's still possible to accidentally work around the checker. This adds a block to `__extends` that throws a `TypeError` if the base class `b` isn't a function. My _hope_ is that this will not have a negative performance impact on community performance-critical applications, as they would likely already prefer newer browser/Node versions and output ES2015+ code. If there is something you can think of that I should do to verify that hope, I'd love to know! For reference, runtime errors in Node 12.0.0 (Chrome exhibits the same messages): ```js class X extends null { } // undefined class Y extends undefined { } // TypeError: Class extends value undefined is not a constructor or null class Z extends 0 { } // TypeError: Class extends value 0 is not a constructor or null ``` `Class extends value {0} is not a constructor or null` matches the Node.js behavior: * [Message template](https://github.com/nodejs/node/blob/2bdeb88c27b4d8de3a8f6b7a438cf0bcb88fa927/deps/v8/src/common/message-template.h) for `ExtendsValueNotConstructor` * [Error thrown with that message](https://github.com/nodejs/node/blob/6ca81ad72a3c6fdf16c683335be748f22aaa9a0d/deps/v8/src/runtime/runtime-classes.cc#L617) when `!super_class->IsConstructor()` Runtime errors in Firefox 72.0.1: ```js class X extends null { } // undefined class Y extends undefined { } // TypeError: class heritage undefined is not an object or null class Z extends 0 { } // TypeError: class heritage 0 is not an object or null ``` --- src/compiler/transformers/es2015.ts | 3 + ...sClassHeritageListMemberTypeAnnotations.js | 3 + ...accessibleTypeInTypeParameterConstraint.js | 3 + .../reference/abstractClassInLocalScope.js | 3 + .../abstractClassInLocalScopeIsAbstract.js | 3 + tests/baselines/reference/abstractProperty.js | 3 + .../abstractPropertyInConstructor.js | 3 + .../reference/abstractPropertyNegative.js | 3 + .../accessOverriddenBaseClassMember1.js | 3 + .../reference/accessorsOverrideProperty7.js | 3 + .../accessors_spec_section-4.5_inference.js | 3 + .../reference/aliasUsageInAccessorsOfClass.js | 3 + .../baselines/reference/aliasUsageInArray.js | 3 + .../aliasUsageInFunctionExpression.js | 3 + .../reference/aliasUsageInGenericFunction.js | 3 + .../reference/aliasUsageInIndexerOfClass.js | 3 + .../reference/aliasUsageInObjectLiteral.js | 3 + .../reference/aliasUsageInOrExpression.js | 3 + ...aliasUsageInTypeArgumentOfExtendsClause.js | 6 + .../reference/aliasUsageInVarAssignment.js | 3 + .../reference/ambiguousOverloadResolution.js | 3 + .../amdDeclarationEmitNoExtraDeclare.js | 3 + .../anonClassDeclarationEmitIsAnon.js | 6 + ...ClassDeclarationDoesntPrintWithReadonly.js | 3 + .../reference/apparentTypeSubtyping.js | 3 + .../reference/apparentTypeSupertype.js | 3 + .../reference/arrayAssignmentTest1.js | 3 + .../reference/arrayAssignmentTest2.js | 3 + .../reference/arrayBestCommonTypes.js | 3 + .../reference/arrayLiteralTypeInference.js | 3 + tests/baselines/reference/arrayLiterals.js | 3 + .../arrayLiteralsWithRecursiveGenerics.js | 3 + ...rayOfSubtypeIsAssignableToReadonlyArray.js | 3 + .../reference/arrowFunctionContexts.js | 3 + .../reference/assertionTypePredicates1.js | 3 + .../assignmentCompatWithCallSignatures3.js | 3 + .../assignmentCompatWithCallSignatures4.js | 3 + .../assignmentCompatWithCallSignatures5.js | 3 + .../assignmentCompatWithCallSignatures6.js | 3 + ...ssignmentCompatWithConstructSignatures3.js | 3 + ...ssignmentCompatWithConstructSignatures4.js | 3 + ...ssignmentCompatWithConstructSignatures5.js | 3 + ...ssignmentCompatWithConstructSignatures6.js | 3 + .../assignmentCompatWithNumericIndexer.js | 3 + .../assignmentCompatWithNumericIndexer3.js | 3 + .../assignmentCompatWithObjectMembers4.js | 3 + ...nmentCompatWithObjectMembersOptionality.js | 3 + ...mentCompatWithObjectMembersOptionality2.js | 3 + .../assignmentCompatWithStringIndexer.js | 3 + .../reference/assignmentLHSIsValue.js | 3 + .../reference/asyncImportedPromise_es5.js | 3 + tests/baselines/reference/autolift4.js | 3 + tests/baselines/reference/baseCheck.js | 3 + .../baseClassImprovedMismatchErrors.js | 3 + .../reference/baseConstraintOfDecorator.js | 3 + .../reference/baseExpressionTypeParameters.js | 3 + .../reference/baseIndexSignatureResolution.js | 3 + .../reference/baseTypeOrderChecking.js | 3 + .../baseTypeWrappingInstantiationChain.js | 3 + tests/baselines/reference/bases.js | 3 + .../bestCommonTypeOfConditionalExpressions.js | 3 + ...bestCommonTypeOfConditionalExpressions2.js | 3 + .../reference/bestCommonTypeOfTuple2.js | 3 + .../callChainWithSuper(target=es5).js | 3 + ...allSignatureAssignabilityInInheritance2.js | 3 + ...allSignatureAssignabilityInInheritance3.js | 3 + ...allSignatureAssignabilityInInheritance4.js | 3 + ...allSignatureAssignabilityInInheritance5.js | 3 + ...allSignatureAssignabilityInInheritance6.js | 3 + tests/baselines/reference/callWithSpread.js | 3 + ...captureSuperPropertyAccessInSuperCall01.js | 3 + .../reference/captureThisInSuperCall.js | 3 + tests/baselines/reference/castingTuple.js | 3 + .../baselines/reference/chainedAssignment3.js | 3 + ...arameterConstrainedToOtherTypeParameter.js | 3 + .../reference/checkForObjectTooStrict.js | 3 + .../checkJsxChildrenCanBeTupleType.js | 3 + .../reference/checkJsxChildrenProperty12.js | 3 + .../reference/checkJsxChildrenProperty13.js | 3 + .../reference/checkJsxChildrenProperty14.js | 3 + .../reference/checkJsxChildrenProperty3.js | 3 + .../reference/checkJsxChildrenProperty4.js | 3 + .../reference/checkJsxChildrenProperty5.js | 3 + .../reference/checkJsxChildrenProperty6.js | 3 + .../reference/checkJsxChildrenProperty7.js | 3 + .../reference/checkJsxChildrenProperty8.js | 3 + .../checkJsxIntersectionElementPropsType.js | 3 + .../checkJsxSubtleSkipContextSensitiveBug.js | 3 + .../checkSuperCallBeforeThisAccessing1.js | 3 + .../checkSuperCallBeforeThisAccessing2.js | 3 + .../checkSuperCallBeforeThisAccessing3.js | 3 + .../checkSuperCallBeforeThisAccessing4.js | 3 + .../checkSuperCallBeforeThisAccessing5.js | 3 + .../checkSuperCallBeforeThisAccessing6.js | 3 + .../checkSuperCallBeforeThisAccessing7.js | 3 + .../checkSuperCallBeforeThisAccessing8.js | 3 + ...ircularConstraintYieldsAppropriateError.js | 3 + .../reference/circularImportAlias.js | 3 + .../circularTypeofWithFunctionModule.js | 3 + .../classAbstractConstructorAssignability.js | 3 + .../reference/classAbstractCrashedOnce.js | 3 + .../reference/classAbstractExtends.js | 3 + .../reference/classAbstractFactoryFunction.js | 3 + .../reference/classAbstractGeneric.js | 3 + .../reference/classAbstractInAModule.js | 3 + .../reference/classAbstractInheritance.js | 3 + .../reference/classAbstractInstantiations1.js | 3 + .../reference/classAbstractInstantiations2.js | 3 + .../classAbstractOverrideWithAbstract.js | 3 + .../reference/classAbstractSuperCalls.js | 3 + .../classAbstractUsingAbstractMethod1.js | 3 + .../classAbstractUsingAbstractMethods2.js | 3 + .../classConstructorAccessibility2.js | 3 + .../classConstructorAccessibility4.js | 3 + .../classConstructorAccessibility5.js | 3 + ...classConstructorParametersAccessibility.js | 3 + ...lassConstructorParametersAccessibility2.js | 3 + ...lassConstructorParametersAccessibility3.js | 3 + ...clarationMergedInModuleWithContinuation.js | 3 + .../classDeclaredBeforeClassFactory.js | 3 + .../classDoesNotDependOnBaseTypes.js | 3 + tests/baselines/reference/classExpression2.js | 3 + tests/baselines/reference/classExpression3.js | 3 + .../classExpressionExtendingAbstractClass.js | 3 + ...lassExpressionInClassStaticDeclarations.js | 3 + .../reference/classExtendingBuiltinType.js | 3 + .../reference/classExtendingClass.js | 3 + .../reference/classExtendingClassLikeType.js | 3 + .../reference/classExtendingNonConstructor.js | 3 + .../baselines/reference/classExtendingNull.js | 3 + .../reference/classExtendingPrimitive.js | 3 + .../reference/classExtendingPrimitive2.js | 3 + .../reference/classExtendingQualifiedName.js | 3 + .../reference/classExtendingQualifiedName2.js | 3 + .../reference/classExtendsAcrossFiles.js | 6 + ...sMergedWithModuleNotReferingConstructor.js | 3 + ...tendsClauseClassNotReferringConstructor.js | 3 + .../reference/classExtendsEveryObjectType.js | 3 + .../reference/classExtendsEveryObjectType2.js | 3 + .../reference/classExtendsInterface.js | 3 + .../classExtendsInterfaceInExpression.js | 3 + .../classExtendsInterfaceInModule.js | 3 + .../reference/classExtendsInterface_not.js | 3 + .../baselines/reference/classExtendsItself.js | 3 + .../reference/classExtendsItselfIndirectly.js | 3 + .../classExtendsItselfIndirectly2.js | 3 + .../classExtendsItselfIndirectly3.js | 18 + .../classExtendsMultipleBaseClasses.js | 3 + tests/baselines/reference/classExtendsNull.js | 3 + ...classExtendsShadowedConstructorFunction.js | 3 + .../classExtendsValidConstructorFunction.js | 3 + .../reference/classExtensionNameOutput.js | 3 + .../classHeritageWithTrailingSeparator.js | 3 + .../reference/classImplementsClass2.js | 3 + .../reference/classImplementsClass3.js | 3 + .../reference/classImplementsClass4.js | 3 + .../reference/classImplementsClass5.js | 3 + .../reference/classImplementsClass6.js | 3 + tests/baselines/reference/classIndexer3.js | 3 + tests/baselines/reference/classInheritence.js | 3 + .../reference/classIsSubtypeOfBaseType.js | 3 + ...MergedWithInterfaceMultipleBasesNoError.js | 3 + tests/baselines/reference/classOrder2.js | 3 + tests/baselines/reference/classOrderBug.js | 3 + .../reference/classSideInheritance1.js | 3 + .../reference/classSideInheritance2.js | 3 + .../reference/classSideInheritance3.js | 3 + tests/baselines/reference/classUpdateTests.js | 3 + .../classUsedBeforeInitializedVariables.js | 3 + .../classWithBaseClassButNoConstructor.js | 3 + .../reference/classWithConstructors.js | 3 + .../reference/classWithProtectedProperty.js | 3 + .../reference/classWithStaticMembers.js | 3 + tests/baselines/reference/classdecl.js | 3 + .../reference/cloduleGenericOnSelfMember.js | 3 + .../reference/clodulesDerivedClasses.js | 3 + ...llisionSuperAndLocalFunctionInAccessors.js | 3 + ...isionSuperAndLocalFunctionInConstructor.js | 3 + .../collisionSuperAndLocalFunctionInMethod.js | 3 + ...ollisionSuperAndLocalFunctionInProperty.js | 3 + .../collisionSuperAndLocalVarInAccessors.js | 3 + .../collisionSuperAndLocalVarInConstructor.js | 3 + .../collisionSuperAndLocalVarInMethod.js | 3 + .../collisionSuperAndLocalVarInProperty.js | 3 + .../collisionSuperAndNameResolution.js | 3 + .../reference/collisionSuperAndParameter.js | 3 + .../reference/collisionSuperAndParameter1.js | 3 + ...perAndPropertyNameAsConstuctorParameter.js | 3 + ...xpressionAndLocalVarWithSuperExperssion.js | 3 + .../reference/commentsInheritance.js | 3 + .../comparisonOperatorWithIdenticalObjects.js | 3 + ...ithNoRelationshipObjectsOnCallSignature.js | 3 + ...lationshipObjectsOnConstructorSignature.js | 3 + ...thNoRelationshipObjectsOnIndexSignature.js | 3 + ...nshipObjectsOnInstantiatedCallSignature.js | 3 + ...jectsOnInstantiatedConstructorSignature.js | 3 + ...peratorWithSubtypeObjectOnCallSignature.js | 3 + ...WithSubtypeObjectOnConstructorSignature.js | 3 + ...eratorWithSubtypeObjectOnIndexSignature.js | 3 + ...ubtypeObjectOnInstantiatedCallSignature.js | 3 + ...bjectOnInstantiatedConstructorSignature.js | 3 + ...isonOperatorWithSubtypeObjectOnProperty.js | 3 + .../reference/complexClassRelationships.js | 3 + ...catedGenericRecursiveBaseClassReference.js | 3 + .../reference/compoundAssignmentLHSIsValue.js | 3 + ...poundExponentiationAssignmentLHSIsValue.js | 3 + .../reference/computedPropertyNames24_ES5.js | 3 + .../reference/computedPropertyNames25_ES5.js | 3 + .../reference/computedPropertyNames26_ES5.js | 3 + .../reference/computedPropertyNames27_ES5.js | 3 + .../reference/computedPropertyNames28_ES5.js | 3 + .../reference/computedPropertyNames30_ES5.js | 3 + .../reference/computedPropertyNames31_ES5.js | 3 + .../reference/computedPropertyNames43_ES5.js | 3 + .../reference/computedPropertyNames44_ES5.js | 3 + .../reference/computedPropertyNames45_ES5.js | 3 + .../conditionalOperatorWithIdenticalBCT.js | 3 + .../conditionalOperatorWithoutIdenticalBCT.js | 3 + .../reference/constantOverloadFunction.js | 3 + .../constantOverloadFunctionNoSubtypeError.js | 3 + ...nstraintCheckInGenericBaseTypeReference.js | 3 + ...uctSignatureAssignabilityInInheritance2.js | 3 + ...uctSignatureAssignabilityInInheritance3.js | 3 + ...uctSignatureAssignabilityInInheritance4.js | 3 + ...uctSignatureAssignabilityInInheritance5.js | 3 + ...uctSignatureAssignabilityInInheritance6.js | 3 + tests/baselines/reference/constructorArgs.js | 3 + ...uctorFunctionTypeIsAssignableToBaseType.js | 3 + ...ctorFunctionTypeIsAssignableToBaseType2.js | 3 + .../constructorHasPrototypeProperty.js | 3 + .../reference/constructorOverloads2.js | 3 + .../reference/constructorOverloads3.js | 3 + .../reference/constructorWithCapturedSuper.js | 3 + ...constructorWithIncompleteTypeAnnotation.js | 3 + .../contextualTypingArrayOfLambdas.js | 3 + ...contextualTypingOfConditionalExpression.js | 3 + ...ontextualTypingOfConditionalExpression2.js | 3 + .../controlFlowSuperPropertyAccess.js | 3 + ...urcePropertyIsRelatableToTargetProperty.js | 3 + .../reference/declFileClassExtendsNull.js | 3 + .../declFileForFunctionTypeAsTypeParameter.js | 3 + ...ileGenericClassWithGenericExtendedClass.js | 3 + .../reference/declFileGenericType.js | 3 + .../reference/declFileGenericType2.js | 3 + ...lictingWithClassReferredByExtendsClause.js | 3 + ...dsClauseThatHasItsContainerNameConflict.js | 3 + .../declarationEmitExpressionInExtends.js | 3 + .../declarationEmitExpressionInExtends2.js | 3 + .../declarationEmitExpressionInExtends3.js | 3 + .../declarationEmitExpressionInExtends4.js | 3 + .../declarationEmitExpressionInExtends5.js | 3 + ...DefaultExportClassExtendingExpression01.js | 3 + ...clarationEmitLocalClassDeclarationMixin.js | 3 + .../declarationEmitNameConflicts3.js | 3 + .../declarationEmitPrivateNameCausesError.js | 3 + ...tPrivateSymbolCausesVarDeclarationEmit2.js | 3 + .../declarationEmitProtectedMembers.js | 3 + .../declarationEmitThisPredicates01.js | 3 + ...tionEmitThisPredicatesWithPrivateName01.js | 3 + .../declarationNoDanglingGenerics.js | 3 + ...clarationsForFileShadowingGlobalNoError.js | 3 + .../reference/declareDottedExtend.js | 3 + .../baselines/reference/decoratorOnClass9.js | 3 + .../reference/decoratorOnClassConstructor2.js | 3 + .../reference/decoratorOnClassConstructor3.js | 3 + .../reference/decoratorOnClassConstructor4.js | 3 + .../reference/decoratorOnClassMethod12.js | 3 + .../defaultPropsEmptyCurlyBecomesAnyForJs.js | 6 + .../reference/defineProperty(target=es5).js | 3 + ...edClassConstructorWithExplicitReturns01.js | 3 + ...assConstructorWithExplicitReturns01.js.map | 2 +- ...tructorWithExplicitReturns01.sourcemap.txt | 239 +++--- ...derivedClassConstructorWithoutSuperCall.js | 3 + ...ClassFunctionOverridesBaseClassAccessor.js | 3 + .../derivedClassIncludesInheritedMembers.js | 3 + ...idesIndexersWithAssignmentCompatibility.js | 3 + .../derivedClassOverridesPrivateFunction1.js | 3 + .../derivedClassOverridesPrivates.js | 3 + .../derivedClassOverridesProtectedMembers.js | 3 + .../derivedClassOverridesProtectedMembers2.js | 3 + .../derivedClassOverridesProtectedMembers3.js | 3 + .../derivedClassOverridesProtectedMembers4.js | 3 + .../derivedClassOverridesPublicMembers.js | 3 + .../derivedClassOverridesWithoutSubtype.js | 3 + .../derivedClassParameterProperties.js | 3 + ...dClassSuperCallsInNonConstructorMembers.js | 3 + .../derivedClassSuperCallsWithThisArg.js | 3 + .../reference/derivedClassTransitivity.js | 3 + .../reference/derivedClassTransitivity2.js | 3 + .../reference/derivedClassTransitivity3.js | 3 + .../reference/derivedClassTransitivity4.js | 3 + .../reference/derivedClassWithAny.js | 3 + ...ivateInstanceShadowingProtectedInstance.js | 3 + ...hPrivateInstanceShadowingPublicInstance.js | 3 + ...thPrivateStaticShadowingProtectedStatic.js | 3 + ...sWithPrivateStaticShadowingPublicStatic.js | 3 + .../derivedClassWithoutExplicitConstructor.js | 3 + ...derivedClassWithoutExplicitConstructor2.js | 3 + ...derivedClassWithoutExplicitConstructor3.js | 3 + tests/baselines/reference/derivedClasses.js | 3 + .../reference/derivedGenericClassWithAny.js | 3 + ...sesHiddenBaseCallViaSuperPropertyAccess.js | 3 + .../derivedTypeDoesNotRequireExtendsClause.js | 3 + ...derivedUninitializedPropertyDeclaration.js | 3 + .../destructuringParameterDeclaration5.js | 3 + ...oubleMixinConditionalTypeBaseClassWorks.js | 3 + .../emitBundleWithPrologueDirectives1.js | 3 + .../reference/emitBundleWithShebang1.js | 3 + .../reference/emitBundleWithShebang2.js | 3 + ...BundleWithShebangAndPrologueDirectives1.js | 3 + ...BundleWithShebangAndPrologueDirectives2.js | 3 + ...tionWithPropertyAccessInHeritageClause1.js | 3 + .../emitClassExpressionInDeclarationFile.js | 3 + .../emitClassExpressionInDeclarationFile2.js | 3 + ...BeforeEmitParameterPropertyDeclaration1.js | 3 + ...SuperCallBeforeEmitPropertyDeclaration1.js | 3 + ...arationAndParameterPropertyDeclaration1.js | 3 + .../reference/emitThisInSuperMethodCall.js | 3 + ...mitter.asyncGenerators.classMethods.es5.js | 3 + tests/baselines/reference/emptyModuleName.js | 3 + ...rorForwardReferenceForwadingConstructor.js | 3 + tests/baselines/reference/errorSuperCalls.js | 3 + .../reference/errorSuperPropertyAccess.js | 3 + .../reference/errorsInGenericTypeReference.js | 3 + .../reference/es6ClassSuperCodegenBug.js | 3 + tests/baselines/reference/es6ClassTest.js | 3 + tests/baselines/reference/es6ClassTest2.js | 3 + tests/baselines/reference/es6ClassTest7.js | 3 + .../exportAssignmentOfGenericType1.js | 3 + .../exportClassExtendingIntersection.js | 6 + .../exportDeclarationInInternalModule.js | 3 + .../reference/exportDefaultAbstractClass.js | 6 + tests/baselines/reference/extBaseClass1.js | 3 + tests/baselines/reference/extBaseClass2.js | 3 + .../extendAndImplementTheSameBaseType.js | 3 + .../extendAndImplementTheSameBaseType2.js | 3 + .../extendBaseClassBeforeItsDeclared.js | 3 + .../extendClassExpressionFromModule.js | 3 + .../extendConstructSignatureInInterface.js | 3 + tests/baselines/reference/extendFromAny.js | 3 + .../reference/extendNonClassSymbol1.js | 3 + .../reference/extendNonClassSymbol2.js | 3 + .../extendPrivateConstructorClass.js | 3 + ...xtendingClassFromAliasAndUsageInIndexer.js | 6 + tests/baselines/reference/extendsClause.js | 3 + .../reference/extendsClauseAlreadySeen.js | 3 + .../reference/extendsClauseAlreadySeen2.js | 3 + .../reference/extendsUntypedModule.js | 3 + tests/baselines/reference/fluentClasses.js | 3 + tests/baselines/reference/for-inStatements.js | 3 + .../reference/for-inStatementsInvalid.js | 3 + .../forStatementsMultipleInvalidDecl.js | 3 + .../reference/functionImplementationErrors.js | 3 + .../reference/functionImplementations.js | 3 + .../reference/functionSubtypingOfVarArgs.js | 3 + .../reference/functionSubtypingOfVarArgs2.js | 3 + .../reference/generatedContextualTyping.js | 3 + .../genericBaseClassLiteralProperty.js | 3 + .../genericBaseClassLiteralProperty2.js | 3 + ...allWithConstraintsTypeArgumentInference.js | 3 + .../genericCallWithObjectTypeArgs2.js | 3 + ...icCallWithObjectTypeArgsAndConstraints2.js | 3 + ...icCallWithObjectTypeArgsAndConstraints3.js | 3 + .../genericCallbacksAndClassHierarchy.js | 3 + .../genericClassExpressionInFunction.js | 3 + ...sInheritsConstructorFromNonGenericClass.js | 3 + ...cClassPropertyInheritanceSpecialization.js | 3 + .../reference/genericClassStaticMethod.js | 3 + tests/baselines/reference/genericClasses3.js | 3 + ...genericConstraintOnExtendedBuiltinTypes.js | 3 + ...enericConstraintOnExtendedBuiltinTypes2.js | 3 + .../genericDerivedTypeWithSpecializedBase.js | 3 + .../genericDerivedTypeWithSpecializedBase2.js | 3 + .../genericInheritedDefaultConstructors.js | 3 + .../reference/genericPrototypeProperty2.js | 3 + .../reference/genericPrototypeProperty3.js | 3 + ...ericRecursiveImplicitConstructorErrors2.js | 3 + ...ericRecursiveImplicitConstructorErrors3.js | 3 + .../reference/genericTypeAssertions2.js | 3 + .../reference/genericTypeAssertions4.js | 3 + .../reference/genericTypeAssertions6.js | 3 + .../reference/genericTypeConstraints.js | 3 + ...genericTypeReferenceWithoutTypeArgument.js | 3 + ...enericTypeReferenceWithoutTypeArgument2.js | 3 + .../genericWithIndexerOfTypeParameterType2.js | 3 + .../reference/heterogeneousArrayLiterals.js | 3 + .../reference/ifDoWhileStatements.js | 3 + .../illegalSuperCallsInConstructor.js | 3 + .../implementClausePrecedingExtends.js | 3 + ...gAnInterfaceExtendingClassWithPrivates2.js | 3 + ...AnInterfaceExtendingClassWithProtecteds.js | 3 + .../baselines/reference/importAsBaseClass.js | 3 + tests/baselines/reference/importHelpers.js | 3 + .../reference/importHelpersNoHelpers.js | 3 + .../reference/importHelpersNoModule.js | 3 + .../reference/importNotElidedWhenNotFound.js | 3 + .../reference/importShadowsGlobalName.js | 3 + .../reference/importUsedInExtendsList1.js | 3 + ...eyofNestedSimplifiedSubstituteUnwrapped.js | 3 + .../reference/indexedAccessRelation.js | 3 + .../reference/indexedAccessTypeConstraints.js | 3 + .../reference/indexerConstraints2.js | 3 + .../reference/indirectSelfReference.js | 3 + .../reference/indirectSelfReferenceGeneric.js | 3 + .../infinitelyExpandingTypesNonGenericBase.js | 3 + .../inheritFromGenericTypeParameter.js | 3 + ...SameNamePrivatePropertiesFromSameOrigin.js | 3 + tests/baselines/reference/inheritance.js | 3 + tests/baselines/reference/inheritance1.js | 3 + ...itanceGrandParentPrivateMemberCollision.js | 3 + ...tPrivateMemberCollisionWithPublicMember.js | 3 + ...tPublicMemberCollisionWithPrivateMember.js | 3 + ...ritanceMemberAccessorOverridingAccessor.js | 3 + ...heritanceMemberAccessorOverridingMethod.js | 3 + ...ritanceMemberAccessorOverridingProperty.js | 3 + ...inheritanceMemberFuncOverridingAccessor.js | 3 + .../inheritanceMemberFuncOverridingMethod.js | 3 + ...inheritanceMemberFuncOverridingProperty.js | 3 + ...ritanceMemberPropertyOverridingAccessor.js | 3 + ...heritanceMemberPropertyOverridingMethod.js | 3 + ...ritanceMemberPropertyOverridingProperty.js | 3 + .../inheritanceOfGenericConstructorMethod1.js | 3 + .../inheritanceOfGenericConstructorMethod2.js | 3 + ...ritanceStaticAccessorOverridingAccessor.js | 3 + ...heritanceStaticAccessorOverridingMethod.js | 3 + ...ritanceStaticAccessorOverridingProperty.js | 3 + ...inheritanceStaticFuncOverridingAccessor.js | 3 + ...eStaticFuncOverridingAccessorOfFuncType.js | 3 + .../inheritanceStaticFuncOverridingMethod.js | 3 + ...inheritanceStaticFuncOverridingProperty.js | 3 + ...eStaticFuncOverridingPropertyOfFuncType.js | 3 + ...taticFunctionOverridingInstanceProperty.js | 3 + .../inheritanceStaticMembersCompatible.js | 3 + .../inheritanceStaticMembersIncompatible.js | 3 + ...ritanceStaticPropertyOverridingAccessor.js | 3 + ...heritanceStaticPropertyOverridingMethod.js | 3 + ...ritanceStaticPropertyOverridingProperty.js | 3 + .../inheritedConstructorWithRestParams.js | 3 + .../inheritedConstructorWithRestParams2.js | 3 + .../inheritedModuleMembersForClodule.js | 3 + .../reference/instanceOfAssignability.js | 3 + ...nstancePropertiesInheritedIntoClassType.js | 3 + .../reference/instanceSubtypeCheck2.js | 3 + ...nstanceofWithStructurallyIdenticalTypes.js | 3 + .../instantiatedReturnTypeContravariance.js | 3 + .../reference/interfaceClassMerging.js | 3 + .../reference/interfaceClassMerging2.js | 3 + .../reference/interfaceExtendsClass1.js | 3 + .../interfaceExtendsClassWithPrivate1.js | 3 + .../interfaceExtendsClassWithPrivate2.js | 3 + .../interfaceExtendsObjectIntersection.js | 3 + ...nterfaceExtendsObjectIntersectionErrors.js | 3 + .../reference/interfaceImplementation8.js | 3 + .../invalidModuleWithStatementsOfEveryKind.js | 3 + .../invalidMultipleVariableDeclarations.js | 3 + .../reference/invalidReturnStatements.js | 3 + .../isolatedModulesImportExportElision.js | 3 + .../jsDeclarationsClassExtendsVisibility.js | 3 + .../reference/jsDeclarationsClasses.js | 3 + .../reference/jsDeclarationsClassesErr.js | 3 + .../reference/jsDeclarationsDefault.js | 3 + ...NoImplicitAnyNoCascadingReferenceErrors.js | 3 + tests/baselines/reference/jsdocTypeTagCast.js | 3 + .../reference/jsxCallbackWithDestructuring.js | 3 + ...ldConfusableWithMultipleChildrenNoError.js | 3 + .../baselines/reference/jsxHasLiteralType.js | 3 + .../baselines/reference/jsxInExtendsClause.js | 3 + tests/baselines/reference/jsxViaImport.2.js | 3 + tests/baselines/reference/jsxViaImport.js | 3 + .../reference/keyofAndIndexedAccess.js | 3 + tests/baselines/reference/lambdaArgCrash.js | 3 + tests/baselines/reference/lift.js | 3 + tests/baselines/reference/localTypes1.js | 3 + tests/baselines/reference/m7Bugs.js | 3 + .../reference/mappedTypePartialConstraints.js | 3 + .../reference/mergedDeclarations5.js | 3 + .../reference/mergedDeclarations6.js | 3 + .../mergedInheritedClassInterface.js | 3 + ...rgedInheritedMembersSatisfyAbstractBase.js | 3 + .../mergedInterfacesWithInheritedPrivates2.js | 3 + .../mergedInterfacesWithInheritedPrivates3.js | 3 + .../missingPropertiesOfClassExpression.js | 3 + .../reference/mixinAccessModifiers.js | 3 + .../reference/mixinClassesAnnotated.js | 3 + .../reference/mixinClassesAnonymous.js | 3 + .../reference/mixinClassesMembers.js | 3 + .../mixinIntersectionIsValidbaseType.js | 3 + .../reference/mixinPrivateAndProtected.js | 3 + .../reference/mixingApparentTypeOverrides.js | 3 + tests/baselines/reference/moduleAsBaseType.js | 3 + .../moduleImportedForTypeArgumentPosition.js | 3 + .../baselines/reference/moduleNoneOutFile.js | 3 + .../moduleWithStatementsOfEveryKind.js | 3 + .../reference/multipleInheritance.js | 3 + .../mutuallyRecursiveGenericBaseTypes2.js | 3 + .../reference/mutuallyRecursiveInference.js | 3 + .../reference/narrowingOfDottedNames.js | 3 + .../reference/neverReturningFunctions1.js | 3 + tests/baselines/reference/newTarget.es5.js | 3 + tests/baselines/reference/noCrashOnMixin.js | 3 + .../noImplicitAnyMissingGetAccessor.js | 3 + .../noImplicitAnyMissingSetAccessor.js | 3 + ...enericClassExtendingGenericClassWithAny.js | 3 + ...cIndexerConstrainsPropertyDeclarations2.js | 3 + .../reference/numericIndexerConstraint3.js | 3 + .../reference/numericIndexerConstraint4.js | 3 + .../reference/numericIndexerTyping2.js | 3 + ...objectCreationOfElementAccessExpression.js | 3 + ...objectTypeHidingMembersOfExtendedObject.js | 3 + ...objectTypesIdentityWithNumericIndexers1.js | 3 + ...objectTypesIdentityWithNumericIndexers2.js | 3 + ...objectTypesIdentityWithNumericIndexers3.js | 3 + .../objectTypesIdentityWithPrivates.js | 3 + .../objectTypesIdentityWithPrivates2.js | 3 + .../objectTypesIdentityWithPrivates3.js | 3 + .../objectTypesIdentityWithStringIndexers.js | 3 + .../objectTypesIdentityWithStringIndexers2.js | 3 + .../optionalConstructorArgInSuper.js | 3 + tests/baselines/reference/optionalMethods.js | 3 + .../reference/optionalParamArgsTest.js | 3 + .../reference/optionalParamInOverride.js | 3 + .../reference/optionalParameterProperty.js | 3 + .../baselines/reference/outModuleConcatAmd.js | 3 + .../reference/outModuleConcatAmd.js.map | 2 +- .../outModuleConcatAmd.sourcemap.txt | 59 +- .../reference/outModuleConcatSystem.js | 3 + .../reference/outModuleConcatSystem.js.map | 2 +- .../outModuleConcatSystem.sourcemap.txt | 59 +- .../reference/outModuleTripleSlashRefs.js | 3 + .../reference/outModuleTripleSlashRefs.js.map | 2 +- .../outModuleTripleSlashRefs.sourcemap.txt | 87 +- tests/baselines/reference/overload1.js | 3 + .../overloadOnConstConstraintChecks1.js | 3 + .../overloadOnConstConstraintChecks2.js | 3 + .../overloadOnConstConstraintChecks3.js | 3 + .../overloadOnConstConstraintChecks4.js | 3 + .../overloadOnConstantsInvalidOverload1.js | 3 + .../baselines/reference/overloadResolution.js | 3 + .../overloadResolutionClassConstructors.js | 3 + .../overloadResolutionConstructors.js | 3 + .../reference/overloadingOnConstants1.js | 3 + .../reference/overloadingOnConstants2.js | 3 + .../overrideBaseIntersectionMethod.js | 3 + .../overridingPrivateStaticMembers.js | 3 + .../reference/parseErrorInHeritageClause1.js | 3 + tests/baselines/reference/parser509630.js | 3 + tests/baselines/reference/parserAstSpans1.js | 3 + .../reference/parserClassDeclaration1.js | 3 + .../reference/parserClassDeclaration3.js | 3 + .../reference/parserClassDeclaration4.js | 3 + .../reference/parserClassDeclaration5.js | 3 + .../reference/parserClassDeclaration6.js | 3 + ...rrorRecovery_ExtendsOrImplementsClause2.js | 3 + ...rrorRecovery_ExtendsOrImplementsClause4.js | 3 + ...rrorRecovery_ExtendsOrImplementsClause5.js | 3 + .../parserGenericsInTypeContexts1.js | 3 + .../parserGenericsInTypeContexts2.js | 3 + .../baselines/reference/parserRealSource10.js | 3 + .../baselines/reference/parserRealSource11.js | 3 + tests/baselines/reference/parserharness.js | 3 + ...artiallyAnnotatedFunctionInferenceError.js | 3 + ...tatedFunctionInferenceWithTypeParameter.js | 3 + tests/baselines/reference/primitiveMembers.js | 3 + tests/baselines/reference/privacyClass.js | 3 + .../privacyClassExtendsClauseDeclFile.js | 6 + tests/baselines/reference/privacyGloClass.js | 3 + .../reference/privateAccessInSubclass1.js | 3 + .../privateInstanceMemberAccessibility.js | 3 + ...tedMembersAreNotAccessibleDestructuring.js | 3 + .../privateStaticMemberAccessibility.js | 3 + .../privateStaticNotAccessibleInClodule2.js | 3 + .../amd/testGlo.js | 3 + .../node/testGlo.js | 3 + .../reference/project/prologueEmit/amd/out.js | 3 + .../project/prologueEmit/node/out.js | 3 + .../amd/m'ain.js | 3 + .../node/m'ain.js | 3 + .../reference/propertiesAndIndexers.js | 3 + tests/baselines/reference/propertyAccess.js | 3 + ...tyAccessOnTypeParameterWithConstraints2.js | 3 + ...tyAccessOnTypeParameterWithConstraints3.js | 3 + ...tyAccessOnTypeParameterWithConstraints5.js | 3 + .../reference/propertyOverridesAccessors4.js | 3 + .../reference/propertyOverridingPrototype.js | 3 + ...sPropertyAccessibleWithinNestedSubclass.js | 3 + ...PropertyAccessibleWithinNestedSubclass1.js | 3 + ...edClassPropertyAccessibleWithinSubclass.js | 3 + ...dClassPropertyAccessibleWithinSubclass2.js | 3 + ...dClassPropertyAccessibleWithinSubclass3.js | 3 + .../protectedInstanceMemberAccessibility.js | 3 + tests/baselines/reference/protectedMembers.js | 3 + ...icClassPropertyAccessibleWithinSubclass.js | 3 + ...cClassPropertyAccessibleWithinSubclass2.js | 3 + ...solution-does-not-affect-class-heritage.js | 3 + .../reactDefaultPropsInferenceSuccess.js | 3 + .../reference/reactHOCSpreadprops.js | 3 + .../reactReadonlyHOCAssignabilityReal.js | 3 + ...uxLikeDeferredInferenceAllowsAssignment.js | 3 + ...lyAssignmentInSubclassOfClassExpression.js | 3 + .../readonlyConstructorAssignment.js | 3 + .../reference/recursiveBaseCheck3.js | 3 + .../reference/recursiveBaseCheck4.js | 3 + .../reference/recursiveBaseCheck6.js | 3 + .../recursiveBaseConstructorCreation1.js | 3 + ...ssInstantiationsWithDefaultConstructors.js | 3 + .../reference/recursiveClassReferenceTest.js | 3 + .../recursiveClassReferenceTest.js.map | 2 +- .../recursiveClassReferenceTest.sourcemap.txt | 745 +++++++++--------- .../reference/recursiveComplicatedClasses.js | 3 + ...sivelySpecializedConstructorDeclaration.js | 3 + .../reference/reexportClassDefinition.js | 3 + .../reference/reexportDefaultIsCallable.js | 3 + .../reference/reexportedMissingAlias.js | 3 + ...lassDeclarationWhenInBaseTypeResolution.js | 3 + .../reference/returnInConstructor1.js | 3 + tests/baselines/reference/returnStatements.js | 3 + ...PredicateIsInstantiateInContextOfTarget.js | 3 + ...peCheckExtendedClassInsidePublicMethod2.js | 3 + ...peCheckExtendedClassInsideStaticMethod1.js | 3 + tests/baselines/reference/scopeTests.js | 3 + .../reference/shadowPrivateMembers.js | 3 + ...sWithDefaultConstructorAndExtendsClause.js | 3 + ...hDefaultConstructorAndExtendsClause.js.map | 2 +- ...tConstructorAndExtendsClause.sourcemap.txt | 75 +- .../specializedInheritedConstructors1.js | 3 + .../specializedOverloadWithRestParameters.js | 3 + tests/baselines/reference/staticFactory1.js | 3 + .../baselines/reference/staticInheritance.js | 3 + .../staticMemberAccessOffDerivedType1.js | 3 + .../staticMismatchBecauseOfPrototype.js | 3 + tests/baselines/reference/staticPropSuper.js | 3 + .../reference/strictModeInConstructor.js | 3 + .../reference/strictModeReservedWord.js | 3 + ...trictModeReservedWordInClassDeclaration.js | 3 + ...gIndexerConstrainsPropertyDeclarations2.js | 3 + ...ubSubClassCanAccessProtectedConstructor.js | 3 + .../reference/subtypesOfTypeParameter.js | 3 + .../subtypesOfTypeParameterWithConstraints.js | 3 + ...subtypesOfTypeParameterWithConstraints4.js | 3 + ...OfTypeParameterWithRecursiveConstraints.js | 3 + .../reference/subtypingTransitivity.js | 3 + .../reference/subtypingWithCallSignatures2.js | 3 + .../reference/subtypingWithCallSignatures3.js | 3 + .../reference/subtypingWithCallSignatures4.js | 3 + .../subtypingWithConstructSignatures2.js | 3 + .../subtypingWithConstructSignatures3.js | 3 + .../subtypingWithConstructSignatures4.js | 3 + .../subtypingWithConstructSignatures5.js | 3 + .../subtypingWithConstructSignatures6.js | 3 + .../reference/subtypingWithNumericIndexer.js | 3 + .../reference/subtypingWithNumericIndexer3.js | 3 + .../reference/subtypingWithNumericIndexer4.js | 3 + .../reference/subtypingWithObjectMembers.js | 3 + .../reference/subtypingWithObjectMembers4.js | 3 + ...subtypingWithObjectMembersAccessibility.js | 3 + ...ubtypingWithObjectMembersAccessibility2.js | 3 + .../reference/subtypingWithStringIndexer.js | 3 + .../reference/subtypingWithStringIndexer3.js | 3 + .../reference/subtypingWithStringIndexer4.js | 3 + tests/baselines/reference/super.js | 3 + tests/baselines/reference/super1.js | 3 + tests/baselines/reference/super2.js | 3 + tests/baselines/reference/superAccess.js | 3 + tests/baselines/reference/superAccess2.js | 3 + .../reference/superAccessCastedCall.js | 3 + .../reference/superAccessInFatArrow1.js | 3 + .../reference/superCallArgsMustMatch.js | 3 + .../reference/superCallAssignResult.js | 3 + .../superCallBeforeThisAccessing1.js | 3 + .../superCallBeforeThisAccessing2.js | 3 + .../superCallBeforeThisAccessing3.js | 3 + .../superCallBeforeThisAccessing4.js | 3 + .../superCallBeforeThisAccessing5.js | 3 + .../superCallBeforeThisAccessing6.js | 3 + .../superCallBeforeThisAccessing7.js | 3 + .../superCallBeforeThisAccessing8.js | 3 + ...allFromClassThatDerivesFromGenericType1.js | 3 + ...allFromClassThatDerivesFromGenericType2.js | 3 + ...eButWithIncorrectNumberOfTypeArguments1.js | 3 + ...sFromGenericTypeButWithNoTypeArguments1.js | 3 + ...ivesNonGenericTypeButWithTypeArguments1.js | 3 + .../reference/superCallInNonStaticMethod.js | 3 + .../reference/superCallInStaticMethod.js | 3 + .../superCallInsideClassDeclaration.js | 3 + .../superCallInsideClassExpression.js | 3 + .../superCallInsideObjectLiteralExpression.js | 3 + .../reference/superCallOutsideConstructor.js | 3 + .../superCallParameterContextualTyping1.js | 3 + .../superCallParameterContextualTyping2.js | 3 + .../superCallParameterContextualTyping3.js | 3 + .../reference/superCallWithCommentEmit01.js | 3 + .../superCallWithMissingBaseClass.js | 3 + tests/baselines/reference/superCalls.js | 3 + .../reference/superCallsInConstructor.js | 3 + .../baselines/reference/superElementAccess.js | 3 + tests/baselines/reference/superErrors.js | 3 + .../superHasMethodsFromMergedInterface.js | 3 + .../baselines/reference/superInCatchBlock1.js | 3 + .../reference/superInConstructorParam1.js | 3 + tests/baselines/reference/superInLambdas.js | 3 + .../reference/superInObjectLiterals_ES5.js | 3 + tests/baselines/reference/superNewCall1.js | 3 + .../reference/superNoModifiersCrash.js | 3 + .../reference/superPropertyAccess.js | 3 + .../reference/superPropertyAccess1.js | 3 + .../reference/superPropertyAccess2.js | 3 + ...essInComputedPropertiesOfNestedType_ES5.js | 3 + .../superPropertyAccessInSuperCall01.js | 3 + .../reference/superPropertyAccessNoError.js | 3 + .../reference/superPropertyAccess_ES5.js | 3 + ...opertyElementNoUnusedLexicalThisCapture.js | 3 + ...perPropertyInConstructorBeforeSuperCall.js | 3 + .../reference/superSymbolIndexedAccess5.js | 3 + .../reference/superSymbolIndexedAccess6.js | 3 + .../superWithGenericSpecialization.js | 3 + .../baselines/reference/superWithGenerics.js | 3 + .../reference/superWithTypeArgument.js | 3 + .../reference/superWithTypeArgument2.js | 3 + .../reference/superWithTypeArgument3.js | 3 + ...side-object-literal-getters-and-setters.js | 3 + tests/baselines/reference/switchStatements.js | 3 + .../reference/systemModuleWithSuperClass.js | 3 + .../reference/targetTypeBaseCalls.js | 3 + ...ditionalOnMethodReturnOfGenericInstance.js | 3 + .../reference/thisInInvalidContexts.js | 3 + .../thisInInvalidContextsExternalModule.js | 3 + tests/baselines/reference/thisInSuperCall.js | 3 + tests/baselines/reference/thisInSuperCall1.js | 3 + tests/baselines/reference/thisInSuperCall2.js | 3 + tests/baselines/reference/thisInSuperCall3.js | 3 + ...sIndexOnExistingReadonlyFieldIsNotNever.js | 3 + .../reference/thisTypeInFunctions.js | 3 + .../reference/thisTypeInFunctions3.js | 3 + .../reference/tsxAttributeResolution15.js | 3 + .../reference/tsxAttributeResolution16.js | 3 + .../tsxCorrectlyParseLessThanComparison1.js | 3 + .../tsxDefaultAttributesResolution1.js | 3 + .../tsxDefaultAttributesResolution2.js | 3 + .../tsxDefaultAttributesResolution3.js | 3 + .../baselines/reference/tsxDynamicTagName5.js | 3 + .../baselines/reference/tsxDynamicTagName7.js | 3 + .../baselines/reference/tsxDynamicTagName8.js | 3 + .../baselines/reference/tsxDynamicTagName9.js | 3 + .../reference/tsxExternalModuleEmit1.js | 6 + .../reference/tsxFragmentChildrenCheck.js | 3 + .../reference/tsxGenericAttributesType3.js | 3 + .../reference/tsxGenericAttributesType4.js | 3 + .../reference/tsxGenericAttributesType5.js | 3 + .../reference/tsxGenericAttributesType6.js | 3 + .../reference/tsxGenericAttributesType9.js | 3 + .../reference/tsxLibraryManagedAttributes.js | 3 + .../reference/tsxNotUsingApparentTypeOfSFC.js | 3 + .../tsxSpreadAttributesResolution1.js | 3 + .../tsxSpreadAttributesResolution10.js | 3 + .../tsxSpreadAttributesResolution11.js | 3 + .../tsxSpreadAttributesResolution12.js | 3 + .../tsxSpreadAttributesResolution17.js | 3 + .../tsxSpreadAttributesResolution2.js | 3 + .../tsxSpreadAttributesResolution3.js | 3 + .../tsxSpreadAttributesResolution4.js | 3 + .../tsxSpreadAttributesResolution5.js | 3 + .../tsxSpreadAttributesResolution6.js | 3 + .../tsxSpreadAttributesResolution7.js | 3 + .../tsxSpreadAttributesResolution8.js | 3 + .../tsxSpreadAttributesResolution9.js | 3 + .../tsxSpreadDoesNotReportExcessProps.js | 3 + .../tsxStatelessFunctionComponents2.js | 3 + .../reference/tsxUnionElementType3.js | 3 + .../reference/tsxUnionElementType4.js | 3 + .../reference/tsxUnionTypeComponent1.js | 3 + .../typeAliasFunctionTypeSharedSymbol.js | 3 + tests/baselines/reference/typeAssertions.js | 3 + .../baselines/reference/typeGuardFunction.js | 3 + .../reference/typeGuardFunctionErrors.js | 3 + .../reference/typeGuardFunctionGenerics.js | 3 + .../reference/typeGuardFunctionOfFormThis.js | 3 + .../typeGuardFunctionOfFormThisErrors.js | 3 + .../reference/typeGuardOfFormInstanceOf.js | 3 + .../reference/typeGuardOfFormIsType.js | 3 + .../reference/typeGuardOfFormThisMember.js | 3 + .../typeGuardOfFormThisMemberErrors.js | 3 + tests/baselines/reference/typeMatch2.js | 3 + tests/baselines/reference/typeOfSuperCall.js | 3 + .../reference/typeParameterAsBaseClass.js | 3 + .../reference/typeParameterAsBaseType.js | 3 + .../reference/typeParameterExtendingUnion1.js | 3 + .../reference/typeParameterExtendingUnion2.js | 3 + .../baselines/reference/typeRelationships.js | 3 + .../baselines/reference/typeValueConflict1.js | 3 + .../baselines/reference/typeValueConflict2.js | 3 + .../reference/typeVariableTypeGuards.js | 3 + tests/baselines/reference/typeofClass2.js | 3 + .../typesWithSpecializedCallSignatures.js | 3 + ...typesWithSpecializedConstructSignatures.js | 3 + tests/baselines/reference/undeclaredBase.js | 3 + .../undefinedIsSubtypeOfEverything.js | 3 + .../baselines/reference/underscoreMapFirst.js | 3 + .../underscoreThisInDerivedClass01.js | 3 + .../underscoreThisInDerivedClass02.js | 3 + .../reference/unionTypeEquivalence.js | 3 + .../reference/unionTypeFromArrayLiteral.js | 3 + .../reference/unionTypesAssignability.js | 3 + tests/baselines/reference/unknownSymbols1.js | 3 + .../reference/unspecializedConstraints.js | 3 + ...untypedFunctionCallsWithTypeParameters1.js | 3 + .../reference/unusedClassesinNamespace4.js | 3 + .../unusedIdentifiersConsolidated1.js | 3 + .../reference/unusedInvalidTypeArguments.js | 6 + .../useBeforeDeclaration_superClass.js | 3 + .../reference/validUseOfThisInSuper.js | 3 + .../reference/varArgsOnConstructorTypes.js | 3 + ...ndZeroOrderIndexSignatureRelationsAlign.js | 3 + ...dZeroOrderIndexSignatureRelationsAlign2.js | 3 + 813 files changed, 3095 insertions(+), 629 deletions(-) diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 6bffbe3b299..548e8d68277 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -4321,6 +4321,9 @@ namespace ts { }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js index 9074e2ad4c8..9557601efee 100644 --- a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js +++ b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js index 7ffab769794..d4cf1fe69ae 100644 --- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js +++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/abstractClassInLocalScope.js b/tests/baselines/reference/abstractClassInLocalScope.js index 4e7b9f87095..4f71c72da59 100644 --- a/tests/baselines/reference/abstractClassInLocalScope.js +++ b/tests/baselines/reference/abstractClassInLocalScope.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js index 60af14e625b..fe0304dc8bd 100644 --- a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js +++ b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/abstractProperty.js b/tests/baselines/reference/abstractProperty.js index 5fc7f19d7c6..149339bc265 100644 --- a/tests/baselines/reference/abstractProperty.js +++ b/tests/baselines/reference/abstractProperty.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/abstractPropertyInConstructor.js b/tests/baselines/reference/abstractPropertyInConstructor.js index ab830664d51..5c67c4c920a 100644 --- a/tests/baselines/reference/abstractPropertyInConstructor.js +++ b/tests/baselines/reference/abstractPropertyInConstructor.js @@ -80,6 +80,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/abstractPropertyNegative.js b/tests/baselines/reference/abstractPropertyNegative.js index a26369108ab..ac5c77c59a8 100644 --- a/tests/baselines/reference/abstractPropertyNegative.js +++ b/tests/baselines/reference/abstractPropertyNegative.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.js b/tests/baselines/reference/accessOverriddenBaseClassMember1.js index 6512ba01d67..b2005724d03 100644 --- a/tests/baselines/reference/accessOverriddenBaseClassMember1.js +++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/accessorsOverrideProperty7.js b/tests/baselines/reference/accessorsOverrideProperty7.js index 938bae03374..ecfe5fc34fd 100644 --- a/tests/baselines/reference/accessorsOverrideProperty7.js +++ b/tests/baselines/reference/accessorsOverrideProperty7.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/accessors_spec_section-4.5_inference.js b/tests/baselines/reference/accessors_spec_section-4.5_inference.js index 9d0a9689e05..b18895a48ea 100644 --- a/tests/baselines/reference/accessors_spec_section-4.5_inference.js +++ b/tests/baselines/reference/accessors_spec_section-4.5_inference.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass.js b/tests/baselines/reference/aliasUsageInAccessorsOfClass.js index 8f9b50367df..da5b2725fe9 100644 --- a/tests/baselines/reference/aliasUsageInAccessorsOfClass.js +++ b/tests/baselines/reference/aliasUsageInAccessorsOfClass.js @@ -47,6 +47,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInArray.js b/tests/baselines/reference/aliasUsageInArray.js index 5c695af5101..68833218d2c 100644 --- a/tests/baselines/reference/aliasUsageInArray.js +++ b/tests/baselines/reference/aliasUsageInArray.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInFunctionExpression.js b/tests/baselines/reference/aliasUsageInFunctionExpression.js index d47b38d7122..d010bdf1072 100644 --- a/tests/baselines/reference/aliasUsageInFunctionExpression.js +++ b/tests/baselines/reference/aliasUsageInFunctionExpression.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInGenericFunction.js b/tests/baselines/reference/aliasUsageInGenericFunction.js index 27e4106b46e..177b1a5cea7 100644 --- a/tests/baselines/reference/aliasUsageInGenericFunction.js +++ b/tests/baselines/reference/aliasUsageInGenericFunction.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInIndexerOfClass.js b/tests/baselines/reference/aliasUsageInIndexerOfClass.js index 847bc0fcb0a..ae171ff395d 100644 --- a/tests/baselines/reference/aliasUsageInIndexerOfClass.js +++ b/tests/baselines/reference/aliasUsageInIndexerOfClass.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInObjectLiteral.js b/tests/baselines/reference/aliasUsageInObjectLiteral.js index b2a06fc061a..0e06ab07a16 100644 --- a/tests/baselines/reference/aliasUsageInObjectLiteral.js +++ b/tests/baselines/reference/aliasUsageInObjectLiteral.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInOrExpression.js b/tests/baselines/reference/aliasUsageInOrExpression.js index d65977dd09e..bca20359e01 100644 --- a/tests/baselines/reference/aliasUsageInOrExpression.js +++ b/tests/baselines/reference/aliasUsageInOrExpression.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js index fa5fa26384d..9d387ff62cb 100644 --- a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js +++ b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -70,6 +73,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/aliasUsageInVarAssignment.js b/tests/baselines/reference/aliasUsageInVarAssignment.js index 2d570d3cccc..c569781f1ff 100644 --- a/tests/baselines/reference/aliasUsageInVarAssignment.js +++ b/tests/baselines/reference/aliasUsageInVarAssignment.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/ambiguousOverloadResolution.js b/tests/baselines/reference/ambiguousOverloadResolution.js index 56bef268fb4..11669a4b006 100644 --- a/tests/baselines/reference/ambiguousOverloadResolution.js +++ b/tests/baselines/reference/ambiguousOverloadResolution.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js index f8f25a4e1aa..886f7ae5280 100644 --- a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js +++ b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js index 50090286ffa..36cbcaa0275 100644 --- a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js +++ b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -84,6 +87,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js b/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js index 606f33724d0..58a2cfc4623 100644 --- a/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js +++ b/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/apparentTypeSubtyping.js b/tests/baselines/reference/apparentTypeSubtyping.js index 2e9987f1e0d..6d54f798fb2 100644 --- a/tests/baselines/reference/apparentTypeSubtyping.js +++ b/tests/baselines/reference/apparentTypeSubtyping.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/apparentTypeSupertype.js b/tests/baselines/reference/apparentTypeSupertype.js index 82443d22197..09c6abe3491 100644 --- a/tests/baselines/reference/apparentTypeSupertype.js +++ b/tests/baselines/reference/apparentTypeSupertype.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js index baf1e8bfa3a..c3f3338c811 100644 --- a/tests/baselines/reference/arrayAssignmentTest1.js +++ b/tests/baselines/reference/arrayAssignmentTest1.js @@ -94,6 +94,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js index 5b1a655d781..fcb5ff5df68 100644 --- a/tests/baselines/reference/arrayAssignmentTest2.js +++ b/tests/baselines/reference/arrayAssignmentTest2.js @@ -68,6 +68,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js index 7b8da4f7970..9e74206c132 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.js +++ b/tests/baselines/reference/arrayBestCommonTypes.js @@ -116,6 +116,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrayLiteralTypeInference.js b/tests/baselines/reference/arrayLiteralTypeInference.js index fcd8a62ce0b..8c9d99dc46e 100644 --- a/tests/baselines/reference/arrayLiteralTypeInference.js +++ b/tests/baselines/reference/arrayLiteralTypeInference.js @@ -60,6 +60,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrayLiterals.js b/tests/baselines/reference/arrayLiterals.js index c4d257dd546..1cf819168e5 100644 --- a/tests/baselines/reference/arrayLiterals.js +++ b/tests/baselines/reference/arrayLiterals.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js index 25a76bec5c7..ef77fb3ea15 100644 --- a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js +++ b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js index 45b587c0e62..c22456b5eac 100644 --- a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js +++ b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/arrowFunctionContexts.js b/tests/baselines/reference/arrowFunctionContexts.js index 466131ea206..84ec5e76414 100644 --- a/tests/baselines/reference/arrowFunctionContexts.js +++ b/tests/baselines/reference/arrowFunctionContexts.js @@ -104,6 +104,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assertionTypePredicates1.js b/tests/baselines/reference/assertionTypePredicates1.js index 46e88e61ad0..fa95311ea24 100644 --- a/tests/baselines/reference/assertionTypePredicates1.js +++ b/tests/baselines/reference/assertionTypePredicates1.js @@ -174,6 +174,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js index a051b4e5194..136312daaae 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js @@ -109,6 +109,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js index fc83877023b..5d172b9b5a3 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js @@ -108,6 +108,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js index fb6d0be1be1..3f754e20256 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js @@ -75,6 +75,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js index 9e752a43a17..40d925b99f4 100644 --- a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js +++ b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js index 932f9bb5d66..6b9ea414bba 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js @@ -109,6 +109,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js index 4dad18cea8f..9a14d501a7c 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js @@ -108,6 +108,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js index 5f16895caf2..9b6b6f2983f 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js @@ -75,6 +75,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js index dfce487fff1..3fd0675a214 100644 --- a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js +++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js index 6cdab6f3bed..81289abd59e 100644 --- a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js +++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js @@ -53,6 +53,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js index 54eb5e3ac9b..ca864f24df8 100644 --- a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js +++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js @@ -50,6 +50,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js index dd8d9d1bf46..56e0ca2b037 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js @@ -101,6 +101,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js index fa8ca3f7ad8..2af39acd2aa 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js @@ -98,6 +98,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js index 918c2739ace..a8f0991cf64 100644 --- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js +++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js @@ -101,6 +101,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentCompatWithStringIndexer.js b/tests/baselines/reference/assignmentCompatWithStringIndexer.js index 9a67a00bac0..08e335b55a9 100644 --- a/tests/baselines/reference/assignmentCompatWithStringIndexer.js +++ b/tests/baselines/reference/assignmentCompatWithStringIndexer.js @@ -63,6 +63,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/assignmentLHSIsValue.js b/tests/baselines/reference/assignmentLHSIsValue.js index dd7f28cb003..644f66e5abf 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.js +++ b/tests/baselines/reference/assignmentLHSIsValue.js @@ -79,6 +79,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/asyncImportedPromise_es5.js b/tests/baselines/reference/asyncImportedPromise_es5.js index 7e8b5990238..3cdf95df073 100644 --- a/tests/baselines/reference/asyncImportedPromise_es5.js +++ b/tests/baselines/reference/asyncImportedPromise_es5.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/autolift4.js b/tests/baselines/reference/autolift4.js index 53ce6dc9dc3..f96ad8fc6ab 100644 --- a/tests/baselines/reference/autolift4.js +++ b/tests/baselines/reference/autolift4.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/baseCheck.js b/tests/baselines/reference/baseCheck.js index 114bbf655e4..516adec8694 100644 --- a/tests/baselines/reference/baseCheck.js +++ b/tests/baselines/reference/baseCheck.js @@ -38,6 +38,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/baseClassImprovedMismatchErrors.js b/tests/baselines/reference/baseClassImprovedMismatchErrors.js index 2b864807570..4d64e8af1d2 100644 --- a/tests/baselines/reference/baseClassImprovedMismatchErrors.js +++ b/tests/baselines/reference/baseClassImprovedMismatchErrors.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/baseConstraintOfDecorator.js b/tests/baselines/reference/baseConstraintOfDecorator.js index 8b496c83a03..396adade09b 100644 --- a/tests/baselines/reference/baseConstraintOfDecorator.js +++ b/tests/baselines/reference/baseConstraintOfDecorator.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/baseExpressionTypeParameters.js b/tests/baselines/reference/baseExpressionTypeParameters.js index aa16fcebf55..38f60f7fd97 100644 --- a/tests/baselines/reference/baseExpressionTypeParameters.js +++ b/tests/baselines/reference/baseExpressionTypeParameters.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/baseIndexSignatureResolution.js b/tests/baselines/reference/baseIndexSignatureResolution.js index 09aabe21ac4..b947fd1216c 100644 --- a/tests/baselines/reference/baseIndexSignatureResolution.js +++ b/tests/baselines/reference/baseIndexSignatureResolution.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/baseTypeOrderChecking.js b/tests/baselines/reference/baseTypeOrderChecking.js index 31fa3391af5..9b3417dc995 100644 --- a/tests/baselines/reference/baseTypeOrderChecking.js +++ b/tests/baselines/reference/baseTypeOrderChecking.js @@ -45,6 +45,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js index de50a58205d..6ee6efc8933 100644 --- a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js +++ b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/bases.js b/tests/baselines/reference/bases.js index 25cf4073d5c..9f6b20a71eb 100644 --- a/tests/baselines/reference/bases.js +++ b/tests/baselines/reference/bases.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js index b755bf200a5..26fb7952d44 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js index b7afc3eee41..d357dd5363d 100644 --- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js +++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/bestCommonTypeOfTuple2.js b/tests/baselines/reference/bestCommonTypeOfTuple2.js index a3672a76423..df3bd9deec0 100644 --- a/tests/baselines/reference/bestCommonTypeOfTuple2.js +++ b/tests/baselines/reference/bestCommonTypeOfTuple2.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/callChainWithSuper(target=es5).js b/tests/baselines/reference/callChainWithSuper(target=es5).js index 5487991bc29..325dc56370b 100644 --- a/tests/baselines/reference/callChainWithSuper(target=es5).js +++ b/tests/baselines/reference/callChainWithSuper(target=es5).js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js index e139bcca598..f3a4ed31761 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js @@ -79,6 +79,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js index b8a024a8a09..2b10f0e3851 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js @@ -124,6 +124,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js index a969d77fb03..b98cd8a885b 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js @@ -59,6 +59,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js index cf8889cbf27..830901db1ca 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js @@ -59,6 +59,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js index baa98cb72d5..cfbd3f9a181 100644 --- a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js +++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js @@ -62,6 +62,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index ee0ab6fe8a7..c1977dc9981 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -67,6 +67,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js index dd433fc1db7..42899e76c33 100644 --- a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/captureThisInSuperCall.js b/tests/baselines/reference/captureThisInSuperCall.js index 919f8491114..5032900df2a 100644 --- a/tests/baselines/reference/captureThisInSuperCall.js +++ b/tests/baselines/reference/captureThisInSuperCall.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/castingTuple.js b/tests/baselines/reference/castingTuple.js index ac21b229a3c..5a2f89298ce 100644 --- a/tests/baselines/reference/castingTuple.js +++ b/tests/baselines/reference/castingTuple.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/chainedAssignment3.js b/tests/baselines/reference/chainedAssignment3.js index c3e73310188..81c9e0d4159 100644 --- a/tests/baselines/reference/chainedAssignment3.js +++ b/tests/baselines/reference/chainedAssignment3.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js index 69ecf8cd52d..dfb8d8a455c 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkForObjectTooStrict.js b/tests/baselines/reference/checkForObjectTooStrict.js index d03127eaa7d..87995535308 100644 --- a/tests/baselines/reference/checkForObjectTooStrict.js +++ b/tests/baselines/reference/checkForObjectTooStrict.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js index 30e59613eb9..63f811a67c7 100644 --- a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js +++ b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty12.js b/tests/baselines/reference/checkJsxChildrenProperty12.js index 44fe4e1053d..af28d3eb339 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty12.js +++ b/tests/baselines/reference/checkJsxChildrenProperty12.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty13.js b/tests/baselines/reference/checkJsxChildrenProperty13.js index dcdf7ac1e88..480c7baabaa 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty13.js +++ b/tests/baselines/reference/checkJsxChildrenProperty13.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty14.js b/tests/baselines/reference/checkJsxChildrenProperty14.js index 12051095b6a..e213c7c05e6 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty14.js +++ b/tests/baselines/reference/checkJsxChildrenProperty14.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty3.js b/tests/baselines/reference/checkJsxChildrenProperty3.js index 7ebf2ec717a..bae227dd449 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty3.js +++ b/tests/baselines/reference/checkJsxChildrenProperty3.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.js b/tests/baselines/reference/checkJsxChildrenProperty4.js index 02480bc17c9..ddd75f2d3ce 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty4.js +++ b/tests/baselines/reference/checkJsxChildrenProperty4.js @@ -54,6 +54,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty5.js b/tests/baselines/reference/checkJsxChildrenProperty5.js index 2e29ee2a2fb..d3c34622b84 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty5.js +++ b/tests/baselines/reference/checkJsxChildrenProperty5.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty6.js b/tests/baselines/reference/checkJsxChildrenProperty6.js index 825f38b92ac..b4f77ae0ff6 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty6.js +++ b/tests/baselines/reference/checkJsxChildrenProperty6.js @@ -53,6 +53,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty7.js b/tests/baselines/reference/checkJsxChildrenProperty7.js index a8b5e4e9fa4..f96a0585b0a 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty7.js +++ b/tests/baselines/reference/checkJsxChildrenProperty7.js @@ -38,6 +38,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty8.js b/tests/baselines/reference/checkJsxChildrenProperty8.js index f085c94f5ed..d6e371fd197 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty8.js +++ b/tests/baselines/reference/checkJsxChildrenProperty8.js @@ -39,6 +39,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxIntersectionElementPropsType.js b/tests/baselines/reference/checkJsxIntersectionElementPropsType.js index cbdf2835c0b..af389ce3fce 100644 --- a/tests/baselines/reference/checkJsxIntersectionElementPropsType.js +++ b/tests/baselines/reference/checkJsxIntersectionElementPropsType.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js b/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js index d1d6dd7eeec..ed629829b97 100644 --- a/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js +++ b/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js index e507ddaecc1..d99574f3051 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js index 74a40ba6f29..30de6e92a83 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js index 199ab08d993..6452059dd39 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js index fcb45365bfc..bdc6e55bc32 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js index c6372d5a436..fbddda517ec 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js index 5e0e9000e7d..9cfaf4afec4 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js index 2c32bc82248..4c82d7b2b29 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js index 74bd178a888..a8301289def 100644 --- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js +++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/circularConstraintYieldsAppropriateError.js b/tests/baselines/reference/circularConstraintYieldsAppropriateError.js index 175f48d4bca..1bd6fb4e401 100644 --- a/tests/baselines/reference/circularConstraintYieldsAppropriateError.js +++ b/tests/baselines/reference/circularConstraintYieldsAppropriateError.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/circularImportAlias.js b/tests/baselines/reference/circularImportAlias.js index 11049041b18..3b3181bacb3 100644 --- a/tests/baselines/reference/circularImportAlias.js +++ b/tests/baselines/reference/circularImportAlias.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/circularTypeofWithFunctionModule.js b/tests/baselines/reference/circularTypeofWithFunctionModule.js index 97dec519a99..d83696bfc50 100644 --- a/tests/baselines/reference/circularTypeofWithFunctionModule.js +++ b/tests/baselines/reference/circularTypeofWithFunctionModule.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractConstructorAssignability.js b/tests/baselines/reference/classAbstractConstructorAssignability.js index b19f6788fed..ea86d2bf083 100644 --- a/tests/baselines/reference/classAbstractConstructorAssignability.js +++ b/tests/baselines/reference/classAbstractConstructorAssignability.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractCrashedOnce.js b/tests/baselines/reference/classAbstractCrashedOnce.js index ec0680fe873..ea2db89e9cf 100644 --- a/tests/baselines/reference/classAbstractCrashedOnce.js +++ b/tests/baselines/reference/classAbstractCrashedOnce.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractExtends.js b/tests/baselines/reference/classAbstractExtends.js index 24357c0bdc6..7dd4b30bcb0 100644 --- a/tests/baselines/reference/classAbstractExtends.js +++ b/tests/baselines/reference/classAbstractExtends.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractFactoryFunction.js b/tests/baselines/reference/classAbstractFactoryFunction.js index 002b065c641..7ca0b425cc8 100644 --- a/tests/baselines/reference/classAbstractFactoryFunction.js +++ b/tests/baselines/reference/classAbstractFactoryFunction.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractGeneric.js b/tests/baselines/reference/classAbstractGeneric.js index e7e77bd47df..510f492b522 100644 --- a/tests/baselines/reference/classAbstractGeneric.js +++ b/tests/baselines/reference/classAbstractGeneric.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractInAModule.js b/tests/baselines/reference/classAbstractInAModule.js index ff2103d78ac..288b452c88c 100644 --- a/tests/baselines/reference/classAbstractInAModule.js +++ b/tests/baselines/reference/classAbstractInAModule.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractInheritance.js b/tests/baselines/reference/classAbstractInheritance.js index 478c2f5979d..ce76c42f190 100644 --- a/tests/baselines/reference/classAbstractInheritance.js +++ b/tests/baselines/reference/classAbstractInheritance.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractInstantiations1.js b/tests/baselines/reference/classAbstractInstantiations1.js index fc3a2448346..fd2222a5377 100644 --- a/tests/baselines/reference/classAbstractInstantiations1.js +++ b/tests/baselines/reference/classAbstractInstantiations1.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractInstantiations2.js b/tests/baselines/reference/classAbstractInstantiations2.js index 4beafc415f7..d43568f3dbb 100644 --- a/tests/baselines/reference/classAbstractInstantiations2.js +++ b/tests/baselines/reference/classAbstractInstantiations2.js @@ -60,6 +60,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractOverrideWithAbstract.js b/tests/baselines/reference/classAbstractOverrideWithAbstract.js index 1765b8958c8..8502b5aa21e 100644 --- a/tests/baselines/reference/classAbstractOverrideWithAbstract.js +++ b/tests/baselines/reference/classAbstractOverrideWithAbstract.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractSuperCalls.js b/tests/baselines/reference/classAbstractSuperCalls.js index f812c4425a8..cff0842ff9b 100644 --- a/tests/baselines/reference/classAbstractSuperCalls.js +++ b/tests/baselines/reference/classAbstractSuperCalls.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js index 9f855223f17..5099fe11971 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js index 0a8e4893496..4e5b2ade0c8 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classConstructorAccessibility2.js b/tests/baselines/reference/classConstructorAccessibility2.js index 1868df64fd8..4c66edf5103 100644 --- a/tests/baselines/reference/classConstructorAccessibility2.js +++ b/tests/baselines/reference/classConstructorAccessibility2.js @@ -54,6 +54,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classConstructorAccessibility4.js b/tests/baselines/reference/classConstructorAccessibility4.js index 412f4f95bca..888e9c5316b 100644 --- a/tests/baselines/reference/classConstructorAccessibility4.js +++ b/tests/baselines/reference/classConstructorAccessibility4.js @@ -38,6 +38,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classConstructorAccessibility5.js b/tests/baselines/reference/classConstructorAccessibility5.js index ec950634e11..94dd91637aa 100644 --- a/tests/baselines/reference/classConstructorAccessibility5.js +++ b/tests/baselines/reference/classConstructorAccessibility5.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classConstructorParametersAccessibility.js b/tests/baselines/reference/classConstructorParametersAccessibility.js index 2bb0f49a481..453900bf32d 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classConstructorParametersAccessibility2.js b/tests/baselines/reference/classConstructorParametersAccessibility2.js index de647fc282a..a6b497780ad 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility2.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility2.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classConstructorParametersAccessibility3.js b/tests/baselines/reference/classConstructorParametersAccessibility3.js index bf034cde19b..13cd7db5e4a 100644 --- a/tests/baselines/reference/classConstructorParametersAccessibility3.js +++ b/tests/baselines/reference/classConstructorParametersAccessibility3.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js index 53ed374116f..2c9c7ae1642 100644 --- a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js +++ b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classDeclaredBeforeClassFactory.js b/tests/baselines/reference/classDeclaredBeforeClassFactory.js index 78fee53c66c..f3664491f83 100644 --- a/tests/baselines/reference/classDeclaredBeforeClassFactory.js +++ b/tests/baselines/reference/classDeclaredBeforeClassFactory.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classDoesNotDependOnBaseTypes.js b/tests/baselines/reference/classDoesNotDependOnBaseTypes.js index 0a3e6698f3c..2369bda834d 100644 --- a/tests/baselines/reference/classDoesNotDependOnBaseTypes.js +++ b/tests/baselines/reference/classDoesNotDependOnBaseTypes.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExpression2.js b/tests/baselines/reference/classExpression2.js index 3ad11c2b731..0dd173f34e8 100644 --- a/tests/baselines/reference/classExpression2.js +++ b/tests/baselines/reference/classExpression2.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExpression3.js b/tests/baselines/reference/classExpression3.js index a87515f3f2f..16ea2823a2f 100644 --- a/tests/baselines/reference/classExpression3.js +++ b/tests/baselines/reference/classExpression3.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExpressionExtendingAbstractClass.js b/tests/baselines/reference/classExpressionExtendingAbstractClass.js index fe8e4ce19df..bef91534fe1 100644 --- a/tests/baselines/reference/classExpressionExtendingAbstractClass.js +++ b/tests/baselines/reference/classExpressionExtendingAbstractClass.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExpressionInClassStaticDeclarations.js b/tests/baselines/reference/classExpressionInClassStaticDeclarations.js index cb635f9eee2..1c8fa8aa34e 100644 --- a/tests/baselines/reference/classExpressionInClassStaticDeclarations.js +++ b/tests/baselines/reference/classExpressionInClassStaticDeclarations.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingBuiltinType.js b/tests/baselines/reference/classExtendingBuiltinType.js index 8d2c2dfdd31..83cd9b04bfa 100644 --- a/tests/baselines/reference/classExtendingBuiltinType.js +++ b/tests/baselines/reference/classExtendingBuiltinType.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingClass.js b/tests/baselines/reference/classExtendingClass.js index cd462784c4f..1b6b7f9a76a 100644 --- a/tests/baselines/reference/classExtendingClass.js +++ b/tests/baselines/reference/classExtendingClass.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingClassLikeType.js b/tests/baselines/reference/classExtendingClassLikeType.js index 016454073ec..61af83d198d 100644 --- a/tests/baselines/reference/classExtendingClassLikeType.js +++ b/tests/baselines/reference/classExtendingClassLikeType.js @@ -67,6 +67,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingNonConstructor.js b/tests/baselines/reference/classExtendingNonConstructor.js index c83ea16696e..a1698b831d3 100644 --- a/tests/baselines/reference/classExtendingNonConstructor.js +++ b/tests/baselines/reference/classExtendingNonConstructor.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingNull.js b/tests/baselines/reference/classExtendingNull.js index 99c8fb76501..65c4fff4373 100644 --- a/tests/baselines/reference/classExtendingNull.js +++ b/tests/baselines/reference/classExtendingNull.js @@ -13,6 +13,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingPrimitive.js b/tests/baselines/reference/classExtendingPrimitive.js index 8ad1eb89c1b..5d9ee3c76bd 100644 --- a/tests/baselines/reference/classExtendingPrimitive.js +++ b/tests/baselines/reference/classExtendingPrimitive.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingPrimitive2.js b/tests/baselines/reference/classExtendingPrimitive2.js index b6524e2bd04..9cca267f309 100644 --- a/tests/baselines/reference/classExtendingPrimitive2.js +++ b/tests/baselines/reference/classExtendingPrimitive2.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingQualifiedName.js b/tests/baselines/reference/classExtendingQualifiedName.js index 1465af9739a..42d82f6ea0f 100644 --- a/tests/baselines/reference/classExtendingQualifiedName.js +++ b/tests/baselines/reference/classExtendingQualifiedName.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendingQualifiedName2.js b/tests/baselines/reference/classExtendingQualifiedName2.js index 20e9994ea2e..f0454c72f27 100644 --- a/tests/baselines/reference/classExtendingQualifiedName2.js +++ b/tests/baselines/reference/classExtendingQualifiedName2.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsAcrossFiles.js b/tests/baselines/reference/classExtendsAcrossFiles.js index 16b8095cc45..953f7bd630b 100644 --- a/tests/baselines/reference/classExtendsAcrossFiles.js +++ b/tests/baselines/reference/classExtendsAcrossFiles.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -64,6 +67,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js index 18dd63364b6..7613c23ae8d 100644 --- a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js +++ b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js index f746f36daef..8ad72c59b1e 100644 --- a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js +++ b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsEveryObjectType.js b/tests/baselines/reference/classExtendsEveryObjectType.js index 7fcb678fc65..6624104b8ba 100644 --- a/tests/baselines/reference/classExtendsEveryObjectType.js +++ b/tests/baselines/reference/classExtendsEveryObjectType.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsEveryObjectType2.js b/tests/baselines/reference/classExtendsEveryObjectType2.js index f8c5f110389..e11d58af787 100644 --- a/tests/baselines/reference/classExtendsEveryObjectType2.js +++ b/tests/baselines/reference/classExtendsEveryObjectType2.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsInterface.js b/tests/baselines/reference/classExtendsInterface.js index 047e6161354..84aea7bdf8b 100644 --- a/tests/baselines/reference/classExtendsInterface.js +++ b/tests/baselines/reference/classExtendsInterface.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsInterfaceInExpression.js b/tests/baselines/reference/classExtendsInterfaceInExpression.js index a930feed6cf..261777267c7 100644 --- a/tests/baselines/reference/classExtendsInterfaceInExpression.js +++ b/tests/baselines/reference/classExtendsInterfaceInExpression.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsInterfaceInModule.js b/tests/baselines/reference/classExtendsInterfaceInModule.js index 7aa057a9227..22a852a58bd 100644 --- a/tests/baselines/reference/classExtendsInterfaceInModule.js +++ b/tests/baselines/reference/classExtendsInterfaceInModule.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsInterface_not.js b/tests/baselines/reference/classExtendsInterface_not.js index 238a00bbbd2..407e55690cc 100644 --- a/tests/baselines/reference/classExtendsInterface_not.js +++ b/tests/baselines/reference/classExtendsInterface_not.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsItself.js b/tests/baselines/reference/classExtendsItself.js index ba71ae1df91..1b9eac2a341 100644 --- a/tests/baselines/reference/classExtendsItself.js +++ b/tests/baselines/reference/classExtendsItself.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsItselfIndirectly.js b/tests/baselines/reference/classExtendsItselfIndirectly.js index 04d5a9879d5..fa2026179d3 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsItselfIndirectly2.js b/tests/baselines/reference/classExtendsItselfIndirectly2.js index 310d96ee7ab..bd1d4afddce 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly2.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly2.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsItselfIndirectly3.js b/tests/baselines/reference/classExtendsItselfIndirectly3.js index af882e651d0..4546e39b74c 100644 --- a/tests/baselines/reference/classExtendsItselfIndirectly3.js +++ b/tests/baselines/reference/classExtendsItselfIndirectly3.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -48,6 +51,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -69,6 +75,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -90,6 +99,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -111,6 +123,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -132,6 +147,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsMultipleBaseClasses.js b/tests/baselines/reference/classExtendsMultipleBaseClasses.js index 1727a582238..27427f54141 100644 --- a/tests/baselines/reference/classExtendsMultipleBaseClasses.js +++ b/tests/baselines/reference/classExtendsMultipleBaseClasses.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsNull.js b/tests/baselines/reference/classExtendsNull.js index 2fef0e405f1..82fedc750a2 100644 --- a/tests/baselines/reference/classExtendsNull.js +++ b/tests/baselines/reference/classExtendsNull.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js index 3b86d7739cd..23305ebdfce 100644 --- a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js +++ b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtendsValidConstructorFunction.js b/tests/baselines/reference/classExtendsValidConstructorFunction.js index 6570beaf8c9..cb8781c1562 100644 --- a/tests/baselines/reference/classExtendsValidConstructorFunction.js +++ b/tests/baselines/reference/classExtendsValidConstructorFunction.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classExtensionNameOutput.js b/tests/baselines/reference/classExtensionNameOutput.js index e2c80c242e4..5bcc85966ae 100644 --- a/tests/baselines/reference/classExtensionNameOutput.js +++ b/tests/baselines/reference/classExtensionNameOutput.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classHeritageWithTrailingSeparator.js b/tests/baselines/reference/classHeritageWithTrailingSeparator.js index 993a8c37afb..13537655316 100644 --- a/tests/baselines/reference/classHeritageWithTrailingSeparator.js +++ b/tests/baselines/reference/classHeritageWithTrailingSeparator.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classImplementsClass2.js b/tests/baselines/reference/classImplementsClass2.js index ac9348b90a2..80f8863586f 100644 --- a/tests/baselines/reference/classImplementsClass2.js +++ b/tests/baselines/reference/classImplementsClass2.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js index e06c47c60cf..afa01e4c613 100644 --- a/tests/baselines/reference/classImplementsClass3.js +++ b/tests/baselines/reference/classImplementsClass3.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classImplementsClass4.js b/tests/baselines/reference/classImplementsClass4.js index dfba80d1543..5ad639f311a 100644 --- a/tests/baselines/reference/classImplementsClass4.js +++ b/tests/baselines/reference/classImplementsClass4.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classImplementsClass5.js b/tests/baselines/reference/classImplementsClass5.js index 0ab2ff23fdd..8555a3f262c 100644 --- a/tests/baselines/reference/classImplementsClass5.js +++ b/tests/baselines/reference/classImplementsClass5.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classImplementsClass6.js b/tests/baselines/reference/classImplementsClass6.js index 28e8b574403..c373354722f 100644 --- a/tests/baselines/reference/classImplementsClass6.js +++ b/tests/baselines/reference/classImplementsClass6.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classIndexer3.js b/tests/baselines/reference/classIndexer3.js index 217bfa7958e..a63e1777a67 100644 --- a/tests/baselines/reference/classIndexer3.js +++ b/tests/baselines/reference/classIndexer3.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classInheritence.js b/tests/baselines/reference/classInheritence.js index 99206a1e8ff..ed3e55e2726 100644 --- a/tests/baselines/reference/classInheritence.js +++ b/tests/baselines/reference/classInheritence.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classIsSubtypeOfBaseType.js b/tests/baselines/reference/classIsSubtypeOfBaseType.js index c185c546ad9..98da3b47181 100644 --- a/tests/baselines/reference/classIsSubtypeOfBaseType.js +++ b/tests/baselines/reference/classIsSubtypeOfBaseType.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js b/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js index 16eb43631c9..8615a47ee4f 100644 --- a/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js +++ b/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classOrder2.js b/tests/baselines/reference/classOrder2.js index 27a8d9091dd..437fe85c776 100644 --- a/tests/baselines/reference/classOrder2.js +++ b/tests/baselines/reference/classOrder2.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classOrderBug.js b/tests/baselines/reference/classOrderBug.js index 6660407f8ad..eb0aed3c132 100644 --- a/tests/baselines/reference/classOrderBug.js +++ b/tests/baselines/reference/classOrderBug.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classSideInheritance1.js b/tests/baselines/reference/classSideInheritance1.js index 0cce6704987..48b65706657 100644 --- a/tests/baselines/reference/classSideInheritance1.js +++ b/tests/baselines/reference/classSideInheritance1.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classSideInheritance2.js b/tests/baselines/reference/classSideInheritance2.js index 0794de5d946..67b2022c460 100644 --- a/tests/baselines/reference/classSideInheritance2.js +++ b/tests/baselines/reference/classSideInheritance2.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classSideInheritance3.js b/tests/baselines/reference/classSideInheritance3.js index e407b85ecfb..8d36c5915c6 100644 --- a/tests/baselines/reference/classSideInheritance3.js +++ b/tests/baselines/reference/classSideInheritance3.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classUpdateTests.js b/tests/baselines/reference/classUpdateTests.js index 916ac9baa47..7ee6920b472 100644 --- a/tests/baselines/reference/classUpdateTests.js +++ b/tests/baselines/reference/classUpdateTests.js @@ -122,6 +122,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables.js b/tests/baselines/reference/classUsedBeforeInitializedVariables.js index eb3e7908ea5..1dab28c11d7 100644 --- a/tests/baselines/reference/classUsedBeforeInitializedVariables.js +++ b/tests/baselines/reference/classUsedBeforeInitializedVariables.js @@ -48,6 +48,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classWithBaseClassButNoConstructor.js b/tests/baselines/reference/classWithBaseClassButNoConstructor.js index 54b0fd482e5..6721e1db675 100644 --- a/tests/baselines/reference/classWithBaseClassButNoConstructor.js +++ b/tests/baselines/reference/classWithBaseClassButNoConstructor.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classWithConstructors.js b/tests/baselines/reference/classWithConstructors.js index db3fcb05a34..57be5658324 100644 --- a/tests/baselines/reference/classWithConstructors.js +++ b/tests/baselines/reference/classWithConstructors.js @@ -58,6 +58,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classWithProtectedProperty.js b/tests/baselines/reference/classWithProtectedProperty.js index 91d4564a5d3..826be5fa6f1 100644 --- a/tests/baselines/reference/classWithProtectedProperty.js +++ b/tests/baselines/reference/classWithProtectedProperty.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classWithStaticMembers.js b/tests/baselines/reference/classWithStaticMembers.js index d2a181c5b8d..094cd7a31ac 100644 --- a/tests/baselines/reference/classWithStaticMembers.js +++ b/tests/baselines/reference/classWithStaticMembers.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/classdecl.js b/tests/baselines/reference/classdecl.js index a3506a88035..a6f42a59592 100644 --- a/tests/baselines/reference/classdecl.js +++ b/tests/baselines/reference/classdecl.js @@ -102,6 +102,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/cloduleGenericOnSelfMember.js b/tests/baselines/reference/cloduleGenericOnSelfMember.js index fbd431d4709..dfe890598cc 100644 --- a/tests/baselines/reference/cloduleGenericOnSelfMember.js +++ b/tests/baselines/reference/cloduleGenericOnSelfMember.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/clodulesDerivedClasses.js b/tests/baselines/reference/clodulesDerivedClasses.js index 1d522b86089..75d2ffeafbf 100644 --- a/tests/baselines/reference/clodulesDerivedClasses.js +++ b/tests/baselines/reference/clodulesDerivedClasses.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js index 2814b7dc2b4..2e9aee055c3 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js @@ -48,6 +48,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js index abb43068394..6fa8bfc0592 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js index 30bd47f7cdc..54be5b45431 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js index 7f1f6d38c95..c5632e0d8a2 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js index 7aa17672460..8abe8522273 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js index ffd052dfe75..2398903bc89 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js index 110323d4973..058ed5f399e 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js index e1330ff822a..d541d6e0ad1 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndNameResolution.js b/tests/baselines/reference/collisionSuperAndNameResolution.js index e3df51d1f99..3e7ebcd6c48 100644 --- a/tests/baselines/reference/collisionSuperAndNameResolution.js +++ b/tests/baselines/reference/collisionSuperAndNameResolution.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndParameter.js b/tests/baselines/reference/collisionSuperAndParameter.js index 8b85ad6b9c5..49b31b9baf7 100644 --- a/tests/baselines/reference/collisionSuperAndParameter.js +++ b/tests/baselines/reference/collisionSuperAndParameter.js @@ -71,6 +71,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndParameter1.js b/tests/baselines/reference/collisionSuperAndParameter1.js index e06489e356a..6713c8e3dc7 100644 --- a/tests/baselines/reference/collisionSuperAndParameter1.js +++ b/tests/baselines/reference/collisionSuperAndParameter1.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js index 5e066b7ad09..ed4af66689a 100644 --- a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js +++ b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js @@ -39,6 +39,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js index 0c952a75e2c..63b0c9ca0b0 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/commentsInheritance.js b/tests/baselines/reference/commentsInheritance.js index 0ea3bbbe422..48c5f9875be 100644 --- a/tests/baselines/reference/commentsInheritance.js +++ b/tests/baselines/reference/commentsInheritance.js @@ -159,6 +159,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js index ca1da60a4a1..1f34a4ba2da 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js @@ -203,6 +203,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js index aa6a690d944..c5820aac9ab 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js @@ -177,6 +177,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js index 899dd0ef869..95fb1535ef3 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js @@ -177,6 +177,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js index 767cdeb8fa1..bc5d5fffcdd 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js @@ -120,6 +120,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js index 86f331fe7f8..654ec54a782 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js @@ -158,6 +158,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js index 47b05d80160..a0267f10229 100644 --- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js @@ -158,6 +158,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js index 2ae8047795a..36a8fc96d84 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js @@ -268,6 +268,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js index 9cb62f69f60..a51047a2904 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js @@ -230,6 +230,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js index b66a68fe3d7..7facdf34b27 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js @@ -116,6 +116,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js index 84743940cf3..6326646f02d 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js @@ -173,6 +173,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js index 4a6566b993f..f3a0d730ae6 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js @@ -173,6 +173,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js index 4bef13950ad..cec08c5ac47 100644 --- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js +++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js @@ -87,6 +87,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/complexClassRelationships.js b/tests/baselines/reference/complexClassRelationships.js index cf2133f765c..b95142e2c1b 100644 --- a/tests/baselines/reference/complexClassRelationships.js +++ b/tests/baselines/reference/complexClassRelationships.js @@ -56,6 +56,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js index 96293dafa59..fff7d089798 100644 --- a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js +++ b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/compoundAssignmentLHSIsValue.js b/tests/baselines/reference/compoundAssignmentLHSIsValue.js index 0cd13bc7fff..92dbd05ee78 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundAssignmentLHSIsValue.js @@ -131,6 +131,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js index b3e1312cd69..d9fa2ce9a30 100644 --- a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js @@ -94,6 +94,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.js b/tests/baselines/reference/computedPropertyNames24_ES5.js index 7dc995ad72e..e2f3a414716 100644 --- a/tests/baselines/reference/computedPropertyNames24_ES5.js +++ b/tests/baselines/reference/computedPropertyNames24_ES5.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5.js index bb728c8d6ad..fa02344de45 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES5.js +++ b/tests/baselines/reference/computedPropertyNames25_ES5.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5.js index a8efb6fa5a7..048f85fa1de 100644 --- a/tests/baselines/reference/computedPropertyNames26_ES5.js +++ b/tests/baselines/reference/computedPropertyNames26_ES5.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.js b/tests/baselines/reference/computedPropertyNames27_ES5.js index bafb780c3b1..f21ed47c6dc 100644 --- a/tests/baselines/reference/computedPropertyNames27_ES5.js +++ b/tests/baselines/reference/computedPropertyNames27_ES5.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5.js index ad5df468f13..28fa01c7293 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES5.js +++ b/tests/baselines/reference/computedPropertyNames28_ES5.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5.js index 8342b3db263..698c0483498 100644 --- a/tests/baselines/reference/computedPropertyNames30_ES5.js +++ b/tests/baselines/reference/computedPropertyNames30_ES5.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5.js index 1e0fe03a116..c3f81fd59f5 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES5.js +++ b/tests/baselines/reference/computedPropertyNames31_ES5.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.js b/tests/baselines/reference/computedPropertyNames43_ES5.js index 4069ebc6d6a..217b6ee5898 100644 --- a/tests/baselines/reference/computedPropertyNames43_ES5.js +++ b/tests/baselines/reference/computedPropertyNames43_ES5.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.js b/tests/baselines/reference/computedPropertyNames44_ES5.js index 378fa73c217..4f4556e594c 100644 --- a/tests/baselines/reference/computedPropertyNames44_ES5.js +++ b/tests/baselines/reference/computedPropertyNames44_ES5.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.js b/tests/baselines/reference/computedPropertyNames45_ES5.js index e93fe496eee..2d362a321bb 100644 --- a/tests/baselines/reference/computedPropertyNames45_ES5.js +++ b/tests/baselines/reference/computedPropertyNames45_ES5.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js index 85c97190ade..564a5fc9ccc 100644 --- a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js @@ -56,6 +56,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js index dd17f5b1967..a7f919df1dd 100644 --- a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js +++ b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constantOverloadFunction.js b/tests/baselines/reference/constantOverloadFunction.js index 54b2686d904..90d6d34c545 100644 --- a/tests/baselines/reference/constantOverloadFunction.js +++ b/tests/baselines/reference/constantOverloadFunction.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js index b60a0714e3e..fff4f8402c8 100644 --- a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js +++ b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js index 19cb064dd37..f3331c5009b 100644 --- a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js +++ b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js index 0fb1dcc3e54..51057da5d50 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js @@ -79,6 +79,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js index 26207746fb8..ea051f36b58 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js @@ -122,6 +122,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js index 5a47d0327a7..ceb28ef993e 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js @@ -69,6 +69,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js index f946ff88fc1..b6f817c795b 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js @@ -59,6 +59,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js index 427fa2f1b55..becb659f7c0 100644 --- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js +++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js @@ -62,6 +62,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorArgs.js b/tests/baselines/reference/constructorArgs.js index 8384613193e..7d23d6d79ee 100644 --- a/tests/baselines/reference/constructorArgs.js +++ b/tests/baselines/reference/constructorArgs.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js index f9a54a616a8..27b6d3c28f8 100644 --- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js +++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js index 542f9621bb8..fec56a77170 100644 --- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js +++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorHasPrototypeProperty.js b/tests/baselines/reference/constructorHasPrototypeProperty.js index 739b240847e..9951397b09e 100644 --- a/tests/baselines/reference/constructorHasPrototypeProperty.js +++ b/tests/baselines/reference/constructorHasPrototypeProperty.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorOverloads2.js b/tests/baselines/reference/constructorOverloads2.js index 8ee3a8126ce..05a842a2c23 100644 --- a/tests/baselines/reference/constructorOverloads2.js +++ b/tests/baselines/reference/constructorOverloads2.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorOverloads3.js b/tests/baselines/reference/constructorOverloads3.js index dc1bdc2fe5f..c41d9b2f4ce 100644 --- a/tests/baselines/reference/constructorOverloads3.js +++ b/tests/baselines/reference/constructorOverloads3.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorWithCapturedSuper.js b/tests/baselines/reference/constructorWithCapturedSuper.js index 75030bccdf2..4a744035945 100644 --- a/tests/baselines/reference/constructorWithCapturedSuper.js +++ b/tests/baselines/reference/constructorWithCapturedSuper.js @@ -61,6 +61,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js index 3872e27c5f3..c58d19843e2 100644 --- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js +++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js @@ -288,6 +288,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/contextualTypingArrayOfLambdas.js b/tests/baselines/reference/contextualTypingArrayOfLambdas.js index 0ded7accd42..fbe58ad0e51 100644 --- a/tests/baselines/reference/contextualTypingArrayOfLambdas.js +++ b/tests/baselines/reference/contextualTypingArrayOfLambdas.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression.js b/tests/baselines/reference/contextualTypingOfConditionalExpression.js index c00f8ddfb53..e74122b9210 100644 --- a/tests/baselines/reference/contextualTypingOfConditionalExpression.js +++ b/tests/baselines/reference/contextualTypingOfConditionalExpression.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js index 82f204bae6b..f3246f8abf3 100644 --- a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js +++ b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/controlFlowSuperPropertyAccess.js b/tests/baselines/reference/controlFlowSuperPropertyAccess.js index 5c33f22f877..30b2175316b 100644 --- a/tests/baselines/reference/controlFlowSuperPropertyAccess.js +++ b/tests/baselines/reference/controlFlowSuperPropertyAccess.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js index 5ee99967e15..d8e8abe81c9 100644 --- a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js +++ b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declFileClassExtendsNull.js b/tests/baselines/reference/declFileClassExtendsNull.js index daf54d47ade..d27b6643840 100644 --- a/tests/baselines/reference/declFileClassExtendsNull.js +++ b/tests/baselines/reference/declFileClassExtendsNull.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js index 5b55aeca977..bc6ee7e27c0 100644 --- a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js +++ b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js index 0116eccdeec..672c5f64d32 100644 --- a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js +++ b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declFileGenericType.js b/tests/baselines/reference/declFileGenericType.js index 8e84a857d46..a6b3a7d626a 100644 --- a/tests/baselines/reference/declFileGenericType.js +++ b/tests/baselines/reference/declFileGenericType.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declFileGenericType2.js b/tests/baselines/reference/declFileGenericType2.js index 9b08417109f..e533c31005d 100644 --- a/tests/baselines/reference/declFileGenericType2.js +++ b/tests/baselines/reference/declFileGenericType2.js @@ -50,6 +50,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js index 1a923471206..43c47781845 100644 --- a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js +++ b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js index 1072b7fe1e5..424e2dcfe7d 100644 --- a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js +++ b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends.js b/tests/baselines/reference/declarationEmitExpressionInExtends.js index d3e82411976..7ad5d0f9d4a 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends2.js b/tests/baselines/reference/declarationEmitExpressionInExtends2.js index 54ced8d3baf..91121fdcaa8 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends2.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends2.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends3.js b/tests/baselines/reference/declarationEmitExpressionInExtends3.js index 2c711f939f2..037ad6cf347 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends3.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends3.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends4.js b/tests/baselines/reference/declarationEmitExpressionInExtends4.js index 27c7b4350ca..0db8521a858 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends4.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends4.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends5.js b/tests/baselines/reference/declarationEmitExpressionInExtends5.js index f19d0c8862c..f89052b5112 100644 --- a/tests/baselines/reference/declarationEmitExpressionInExtends5.js +++ b/tests/baselines/reference/declarationEmitExpressionInExtends5.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js b/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js index 4d0006d52e6..7fd1e0c0848 100644 --- a/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js +++ b/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js b/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js index ae49a99d745..328209def1e 100644 --- a/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js +++ b/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitNameConflicts3.js b/tests/baselines/reference/declarationEmitNameConflicts3.js index 6098f5c93e5..e8f97f7bd15 100644 --- a/tests/baselines/reference/declarationEmitNameConflicts3.js +++ b/tests/baselines/reference/declarationEmitNameConflicts3.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitPrivateNameCausesError.js b/tests/baselines/reference/declarationEmitPrivateNameCausesError.js index 63b4eafbc82..818b35bda85 100644 --- a/tests/baselines/reference/declarationEmitPrivateNameCausesError.js +++ b/tests/baselines/reference/declarationEmitPrivateNameCausesError.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js b/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js index 0569d6d291b..a378890ec38 100644 --- a/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js +++ b/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js @@ -48,6 +48,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitProtectedMembers.js b/tests/baselines/reference/declarationEmitProtectedMembers.js index ae696091aae..84b9bbbc239 100644 --- a/tests/baselines/reference/declarationEmitProtectedMembers.js +++ b/tests/baselines/reference/declarationEmitProtectedMembers.js @@ -58,6 +58,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitThisPredicates01.js b/tests/baselines/reference/declarationEmitThisPredicates01.js index 5c605ca60ab..170ff04db29 100644 --- a/tests/baselines/reference/declarationEmitThisPredicates01.js +++ b/tests/baselines/reference/declarationEmitThisPredicates01.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js index 5aa93e461c4..ad78d445e7c 100644 --- a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js +++ b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationNoDanglingGenerics.js b/tests/baselines/reference/declarationNoDanglingGenerics.js index 99aa165f5fb..8de69c43c16 100644 --- a/tests/baselines/reference/declarationNoDanglingGenerics.js +++ b/tests/baselines/reference/declarationNoDanglingGenerics.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js b/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js index 5e422c30a6b..ae8a0c17d78 100644 --- a/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js +++ b/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/declareDottedExtend.js b/tests/baselines/reference/declareDottedExtend.js index 4adc5fb3292..35ee4e49b38 100644 --- a/tests/baselines/reference/declareDottedExtend.js +++ b/tests/baselines/reference/declareDottedExtend.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/decoratorOnClass9.js b/tests/baselines/reference/decoratorOnClass9.js index 71c56d00ee6..033d3d2aad3 100644 --- a/tests/baselines/reference/decoratorOnClass9.js +++ b/tests/baselines/reference/decoratorOnClass9.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.js b/tests/baselines/reference/decoratorOnClassConstructor2.js index 1ebdc5d1e69..4dcb1eb9f6a 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor2.js +++ b/tests/baselines/reference/decoratorOnClassConstructor2.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/decoratorOnClassConstructor3.js b/tests/baselines/reference/decoratorOnClassConstructor3.js index 5e11c3d2a0c..1247ed58709 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor3.js +++ b/tests/baselines/reference/decoratorOnClassConstructor3.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/decoratorOnClassConstructor4.js b/tests/baselines/reference/decoratorOnClassConstructor4.js index eddda104575..150b15ee0e7 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor4.js +++ b/tests/baselines/reference/decoratorOnClassConstructor4.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/decoratorOnClassMethod12.js b/tests/baselines/reference/decoratorOnClassMethod12.js index 345f4c9aeee..ad42c9e2d3e 100644 --- a/tests/baselines/reference/decoratorOnClassMethod12.js +++ b/tests/baselines/reference/decoratorOnClassMethod12.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js b/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js index d3ce8ea25c4..8b6874afe31 100644 --- a/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js +++ b/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -61,6 +64,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/defineProperty(target=es5).js b/tests/baselines/reference/defineProperty(target=es5).js index c7ef0c6d39c..f1ddf5b6786 100644 --- a/tests/baselines/reference/defineProperty(target=es5).js +++ b/tests/baselines/reference/defineProperty(target=es5).js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js index 7e8ee59f1a9..90ee8409287 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map index bba1f96570e..b4a27645c4d 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map @@ -1,2 +1,2 @@ //// [derivedClassConstructorWithExplicitReturns01.js.map] -{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO;QAAP,kBAAA,EAAA,OAAO;QAAnB,YACI,kBAAM,CAAC,CAAC,SAYX;QAfD,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE;YACrB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;SACL;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"} \ No newline at end of file +{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO;QAAP,kBAAA,EAAA,OAAO;QAAnB,YACI,kBAAM,CAAC,CAAC,SAYX;QAfD,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE;YACrB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;SACL;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"} \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt index 56a565db980..a0834cd6035 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt @@ -16,6 +16,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts >>> return extendStatics(d, b); >>> }; >>> return function (d, b) { +>>> if (typeof b !== "function" && b !== null) { +>>> throw new TypeError("Class extends value " + b + " is not a constructor or null"); +>>> } >>> extendStatics(d, b); >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -25,7 +28,7 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(0) +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(0) --- >>> function C(value) { 1->^^^^ @@ -40,9 +43,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > constructor( 3 > value: number -1->Emitted(15, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(15, 16) Source(6, 17) + SourceIndex(0) -3 >Emitted(15, 21) Source(6, 30) + SourceIndex(0) +1->Emitted(18, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(18, 16) Source(6, 17) + SourceIndex(0) +3 >Emitted(18, 21) Source(6, 30) + SourceIndex(0) --- >>> this.cProp = 10; 1->^^^^^^^^ @@ -55,11 +58,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 3 > = 4 > 10 5 > ; -1->Emitted(16, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(16, 19) Source(2, 10) + SourceIndex(0) -3 >Emitted(16, 22) Source(2, 13) + SourceIndex(0) -4 >Emitted(16, 24) Source(2, 15) + SourceIndex(0) -5 >Emitted(16, 25) Source(2, 16) + SourceIndex(0) +1->Emitted(19, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(19, 19) Source(2, 10) + SourceIndex(0) +3 >Emitted(19, 22) Source(2, 13) + SourceIndex(0) +4 >Emitted(19, 24) Source(2, 15) + SourceIndex(0) +5 >Emitted(19, 25) Source(2, 16) + SourceIndex(0) --- >>> return { 1 >^^^^^^^^ @@ -72,8 +75,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > constructor(value: number) { > 2 > return -1 >Emitted(17, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(17, 16) Source(7, 16) + SourceIndex(0) +1 >Emitted(20, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(20, 16) Source(7, 16) + SourceIndex(0) --- >>> cProp: value, 1->^^^^^^^^^^^^ @@ -86,10 +89,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > cProp 3 > : 4 > value -1->Emitted(18, 13) Source(8, 13) + SourceIndex(0) -2 >Emitted(18, 18) Source(8, 18) + SourceIndex(0) -3 >Emitted(18, 20) Source(8, 20) + SourceIndex(0) -4 >Emitted(18, 25) Source(8, 25) + SourceIndex(0) +1->Emitted(21, 13) Source(8, 13) + SourceIndex(0) +2 >Emitted(21, 18) Source(8, 18) + SourceIndex(0) +3 >Emitted(21, 20) Source(8, 20) + SourceIndex(0) +4 >Emitted(21, 25) Source(8, 25) + SourceIndex(0) --- >>> foo: function () { 1->^^^^^^^^^^^^ @@ -98,8 +101,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1->, > 2 > foo -1->Emitted(19, 13) Source(9, 13) + SourceIndex(0) -2 >Emitted(19, 16) Source(9, 16) + SourceIndex(0) +1->Emitted(22, 13) Source(9, 13) + SourceIndex(0) +2 >Emitted(22, 16) Source(9, 16) + SourceIndex(0) --- >>> return "well this looks kinda C-ish."; 1->^^^^^^^^^^^^^^^^ @@ -111,10 +114,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > return 3 > "well this looks kinda C-ish." 4 > ; -1->Emitted(20, 17) Source(10, 17) + SourceIndex(0) -2 >Emitted(20, 24) Source(10, 24) + SourceIndex(0) -3 >Emitted(20, 54) Source(10, 54) + SourceIndex(0) -4 >Emitted(20, 55) Source(10, 55) + SourceIndex(0) +1->Emitted(23, 17) Source(10, 17) + SourceIndex(0) +2 >Emitted(23, 24) Source(10, 24) + SourceIndex(0) +3 >Emitted(23, 54) Source(10, 54) + SourceIndex(0) +4 >Emitted(23, 55) Source(10, 55) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -122,8 +125,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(21, 13) Source(11, 13) + SourceIndex(0) -2 >Emitted(21, 14) Source(11, 14) + SourceIndex(0) +1 >Emitted(24, 13) Source(11, 13) + SourceIndex(0) +2 >Emitted(24, 14) Source(11, 14) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^ @@ -131,8 +134,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > } 2 > -1 >Emitted(22, 10) Source(12, 10) + SourceIndex(0) -2 >Emitted(22, 11) Source(12, 10) + SourceIndex(0) +1 >Emitted(25, 10) Source(12, 10) + SourceIndex(0) +2 >Emitted(25, 11) Source(12, 10) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -141,8 +144,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(23, 6) Source(13, 6) + SourceIndex(0) +1 >Emitted(26, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(26, 6) Source(13, 6) + SourceIndex(0) --- >>> C.prototype.foo = function () { return "this never gets used."; }; 1->^^^^ @@ -163,15 +166,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 7 > ; 8 > 9 > } -1->Emitted(24, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(24, 20) Source(4, 8) + SourceIndex(0) -3 >Emitted(24, 23) Source(4, 5) + SourceIndex(0) -4 >Emitted(24, 37) Source(4, 13) + SourceIndex(0) -5 >Emitted(24, 44) Source(4, 20) + SourceIndex(0) -6 >Emitted(24, 67) Source(4, 43) + SourceIndex(0) -7 >Emitted(24, 68) Source(4, 44) + SourceIndex(0) -8 >Emitted(24, 69) Source(4, 45) + SourceIndex(0) -9 >Emitted(24, 70) Source(4, 46) + SourceIndex(0) +1->Emitted(27, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(27, 20) Source(4, 8) + SourceIndex(0) +3 >Emitted(27, 23) Source(4, 5) + SourceIndex(0) +4 >Emitted(27, 37) Source(4, 13) + SourceIndex(0) +5 >Emitted(27, 44) Source(4, 20) + SourceIndex(0) +6 >Emitted(27, 67) Source(4, 43) + SourceIndex(0) +7 >Emitted(27, 68) Source(4, 44) + SourceIndex(0) +8 >Emitted(27, 69) Source(4, 45) + SourceIndex(0) +9 >Emitted(27, 70) Source(4, 46) + SourceIndex(0) --- >>> return C; 1 >^^^^ @@ -188,8 +191,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > } > 2 > } -1 >Emitted(25, 5) Source(14, 1) + SourceIndex(0) -2 >Emitted(25, 13) Source(14, 2) + SourceIndex(0) +1 >Emitted(28, 5) Source(14, 1) + SourceIndex(0) +2 >Emitted(28, 13) Source(14, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -214,10 +217,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > } > } > } -1 >Emitted(26, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(26, 2) Source(14, 2) + SourceIndex(0) -3 >Emitted(26, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(26, 6) Source(14, 2) + SourceIndex(0) +1 >Emitted(29, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(29, 2) Source(14, 2) + SourceIndex(0) +3 >Emitted(29, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(29, 6) Source(14, 2) + SourceIndex(0) --- >>>var D = /** @class */ (function (_super) { 1-> @@ -225,15 +228,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1-> > > -1->Emitted(27, 1) Source(16, 1) + SourceIndex(0) +1->Emitted(30, 1) Source(16, 1) + SourceIndex(0) --- >>> __extends(D, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->class D extends 2 > C -1->Emitted(28, 5) Source(16, 17) + SourceIndex(0) -2 >Emitted(28, 26) Source(16, 18) + SourceIndex(0) +1->Emitted(31, 5) Source(16, 17) + SourceIndex(0) +2 >Emitted(31, 26) Source(16, 18) + SourceIndex(0) --- >>> function D(a) { 1 >^^^^ @@ -246,9 +249,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > constructor( 3 > a = 100 -1 >Emitted(29, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(29, 16) Source(19, 17) + SourceIndex(0) -3 >Emitted(29, 17) Source(19, 24) + SourceIndex(0) +1 >Emitted(32, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(32, 16) Source(19, 17) + SourceIndex(0) +3 >Emitted(32, 17) Source(19, 24) + SourceIndex(0) --- >>> if (a === void 0) { a = 100; } 1->^^^^^^^^ @@ -260,10 +263,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > 3 > 4 > a = 100 -1->Emitted(30, 9) Source(19, 17) + SourceIndex(0) -2 >Emitted(30, 27) Source(19, 17) + SourceIndex(0) -3 >Emitted(30, 29) Source(19, 17) + SourceIndex(0) -4 >Emitted(30, 36) Source(19, 24) + SourceIndex(0) +1->Emitted(33, 9) Source(19, 17) + SourceIndex(0) +2 >Emitted(33, 27) Source(19, 17) + SourceIndex(0) +3 >Emitted(33, 29) Source(19, 17) + SourceIndex(0) +4 >Emitted(33, 36) Source(19, 24) + SourceIndex(0) --- >>> var _this = _super.call(this, a) || this; 1->^^^^^^^^ @@ -292,12 +295,12 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > else > return null; > } -1->Emitted(31, 9) Source(19, 5) + SourceIndex(0) -2 >Emitted(31, 21) Source(20, 9) + SourceIndex(0) -3 >Emitted(31, 39) Source(20, 15) + SourceIndex(0) -4 >Emitted(31, 40) Source(20, 16) + SourceIndex(0) -5 >Emitted(31, 41) Source(20, 17) + SourceIndex(0) -6 >Emitted(31, 50) Source(32, 6) + SourceIndex(0) +1->Emitted(34, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(34, 21) Source(20, 9) + SourceIndex(0) +3 >Emitted(34, 39) Source(20, 15) + SourceIndex(0) +4 >Emitted(34, 40) Source(20, 16) + SourceIndex(0) +5 >Emitted(34, 41) Source(20, 17) + SourceIndex(0) +6 >Emitted(34, 50) Source(32, 6) + SourceIndex(0) --- >>> _this.dProp = function () { return _this; }; 1->^^^^^^^^ @@ -318,15 +321,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 7 > 8 > this 9 > ; -1->Emitted(32, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(32, 20) Source(17, 10) + SourceIndex(0) -3 >Emitted(32, 23) Source(17, 13) + SourceIndex(0) -4 >Emitted(32, 37) Source(17, 19) + SourceIndex(0) -5 >Emitted(32, 44) Source(17, 19) + SourceIndex(0) -6 >Emitted(32, 49) Source(17, 23) + SourceIndex(0) -7 >Emitted(32, 51) Source(17, 19) + SourceIndex(0) -8 >Emitted(32, 52) Source(17, 23) + SourceIndex(0) -9 >Emitted(32, 53) Source(17, 24) + SourceIndex(0) +1->Emitted(35, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(35, 20) Source(17, 10) + SourceIndex(0) +3 >Emitted(35, 23) Source(17, 13) + SourceIndex(0) +4 >Emitted(35, 37) Source(17, 19) + SourceIndex(0) +5 >Emitted(35, 44) Source(17, 19) + SourceIndex(0) +6 >Emitted(35, 49) Source(17, 23) + SourceIndex(0) +7 >Emitted(35, 51) Source(17, 19) + SourceIndex(0) +8 >Emitted(35, 52) Source(17, 23) + SourceIndex(0) +9 >Emitted(35, 53) Source(17, 24) + SourceIndex(0) --- >>> if (Math.random() < 0.5) { 1 >^^^^^^^^ @@ -352,15 +355,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 7 > < 8 > 0.5 9 > ) -1 >Emitted(33, 9) Source(22, 9) + SourceIndex(0) -2 >Emitted(33, 13) Source(22, 13) + SourceIndex(0) -3 >Emitted(33, 17) Source(22, 17) + SourceIndex(0) -4 >Emitted(33, 18) Source(22, 18) + SourceIndex(0) -5 >Emitted(33, 24) Source(22, 24) + SourceIndex(0) -6 >Emitted(33, 26) Source(22, 26) + SourceIndex(0) -7 >Emitted(33, 29) Source(22, 29) + SourceIndex(0) -8 >Emitted(33, 32) Source(22, 32) + SourceIndex(0) -9 >Emitted(33, 34) Source(22, 34) + SourceIndex(0) +1 >Emitted(36, 9) Source(22, 9) + SourceIndex(0) +2 >Emitted(36, 13) Source(22, 13) + SourceIndex(0) +3 >Emitted(36, 17) Source(22, 17) + SourceIndex(0) +4 >Emitted(36, 18) Source(22, 18) + SourceIndex(0) +5 >Emitted(36, 24) Source(22, 24) + SourceIndex(0) +6 >Emitted(36, 26) Source(22, 26) + SourceIndex(0) +7 >Emitted(36, 29) Source(22, 29) + SourceIndex(0) +8 >Emitted(36, 32) Source(22, 32) + SourceIndex(0) +9 >Emitted(36, 34) Source(22, 34) + SourceIndex(0) --- >>> "You win!"; 1 >^^^^^^^^^^^^ @@ -370,9 +373,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > "You win!" 3 > -1 >Emitted(34, 13) Source(23, 13) + SourceIndex(0) -2 >Emitted(34, 23) Source(23, 23) + SourceIndex(0) -3 >Emitted(34, 24) Source(23, 23) + SourceIndex(0) +1 >Emitted(37, 13) Source(23, 13) + SourceIndex(0) +2 >Emitted(37, 23) Source(23, 23) + SourceIndex(0) +3 >Emitted(37, 24) Source(23, 23) + SourceIndex(0) --- >>> return { 1 >^^^^^^^^^^^^ @@ -381,8 +384,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > return -1 >Emitted(35, 13) Source(24, 13) + SourceIndex(0) -2 >Emitted(35, 20) Source(24, 20) + SourceIndex(0) +1 >Emitted(38, 13) Source(24, 13) + SourceIndex(0) +2 >Emitted(38, 20) Source(24, 20) + SourceIndex(0) --- >>> cProp: 1, 1->^^^^^^^^^^^^^^^^ @@ -395,10 +398,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > cProp 3 > : 4 > 1 -1->Emitted(36, 17) Source(25, 17) + SourceIndex(0) -2 >Emitted(36, 22) Source(25, 22) + SourceIndex(0) -3 >Emitted(36, 24) Source(25, 24) + SourceIndex(0) -4 >Emitted(36, 25) Source(25, 25) + SourceIndex(0) +1->Emitted(39, 17) Source(25, 17) + SourceIndex(0) +2 >Emitted(39, 22) Source(25, 22) + SourceIndex(0) +3 >Emitted(39, 24) Source(25, 24) + SourceIndex(0) +4 >Emitted(39, 25) Source(25, 25) + SourceIndex(0) --- >>> dProp: function () { return _this; }, 1->^^^^^^^^^^^^^^^^ @@ -419,14 +422,14 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 6 > this 7 > 8 > this -1->Emitted(37, 17) Source(26, 17) + SourceIndex(0) -2 >Emitted(37, 22) Source(26, 22) + SourceIndex(0) -3 >Emitted(37, 24) Source(26, 24) + SourceIndex(0) -4 >Emitted(37, 38) Source(26, 30) + SourceIndex(0) -5 >Emitted(37, 45) Source(26, 30) + SourceIndex(0) -6 >Emitted(37, 50) Source(26, 34) + SourceIndex(0) -7 >Emitted(37, 52) Source(26, 30) + SourceIndex(0) -8 >Emitted(37, 53) Source(26, 34) + SourceIndex(0) +1->Emitted(40, 17) Source(26, 17) + SourceIndex(0) +2 >Emitted(40, 22) Source(26, 22) + SourceIndex(0) +3 >Emitted(40, 24) Source(26, 24) + SourceIndex(0) +4 >Emitted(40, 38) Source(26, 30) + SourceIndex(0) +5 >Emitted(40, 45) Source(26, 30) + SourceIndex(0) +6 >Emitted(40, 50) Source(26, 34) + SourceIndex(0) +7 >Emitted(40, 52) Source(26, 30) + SourceIndex(0) +8 >Emitted(40, 53) Source(26, 34) + SourceIndex(0) --- >>> foo: function () { return "You win!!!!!"; } 1->^^^^^^^^^^^^^^^^ @@ -446,14 +449,14 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 6 > 7 > 8 > } -1->Emitted(38, 17) Source(27, 17) + SourceIndex(0) -2 >Emitted(38, 20) Source(27, 20) + SourceIndex(0) -3 >Emitted(38, 36) Source(27, 25) + SourceIndex(0) -4 >Emitted(38, 43) Source(27, 32) + SourceIndex(0) -5 >Emitted(38, 57) Source(27, 46) + SourceIndex(0) -6 >Emitted(38, 58) Source(27, 46) + SourceIndex(0) -7 >Emitted(38, 59) Source(27, 47) + SourceIndex(0) -8 >Emitted(38, 60) Source(27, 48) + SourceIndex(0) +1->Emitted(41, 17) Source(27, 17) + SourceIndex(0) +2 >Emitted(41, 20) Source(27, 20) + SourceIndex(0) +3 >Emitted(41, 36) Source(27, 25) + SourceIndex(0) +4 >Emitted(41, 43) Source(27, 32) + SourceIndex(0) +5 >Emitted(41, 57) Source(27, 46) + SourceIndex(0) +6 >Emitted(41, 58) Source(27, 46) + SourceIndex(0) +7 >Emitted(41, 59) Source(27, 47) + SourceIndex(0) +8 >Emitted(41, 60) Source(27, 48) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^ @@ -461,15 +464,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > } 2 > ; -1 >Emitted(39, 14) Source(28, 14) + SourceIndex(0) -2 >Emitted(39, 15) Source(28, 15) + SourceIndex(0) +1 >Emitted(42, 14) Source(28, 14) + SourceIndex(0) +2 >Emitted(42, 15) Source(28, 15) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^ 2 > ^^^^-> 1 > > } -1 >Emitted(40, 10) Source(29, 10) + SourceIndex(0) +1 >Emitted(43, 10) Source(29, 10) + SourceIndex(0) --- >>> else >>> return null; @@ -483,10 +486,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > return 3 > null 4 > ; -1->Emitted(42, 13) Source(31, 13) + SourceIndex(0) -2 >Emitted(42, 20) Source(31, 20) + SourceIndex(0) -3 >Emitted(42, 24) Source(31, 24) + SourceIndex(0) -4 >Emitted(42, 25) Source(31, 25) + SourceIndex(0) +1->Emitted(45, 13) Source(31, 13) + SourceIndex(0) +2 >Emitted(45, 20) Source(31, 20) + SourceIndex(0) +3 >Emitted(45, 24) Source(31, 24) + SourceIndex(0) +4 >Emitted(45, 25) Source(31, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -495,8 +498,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(32, 5) + SourceIndex(0) -2 >Emitted(43, 6) Source(32, 6) + SourceIndex(0) +1 >Emitted(46, 5) Source(32, 5) + SourceIndex(0) +2 >Emitted(46, 6) Source(32, 6) + SourceIndex(0) --- >>> return D; 1->^^^^ @@ -504,8 +507,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1-> > 2 > } -1->Emitted(44, 5) Source(33, 1) + SourceIndex(0) -2 >Emitted(44, 13) Source(33, 2) + SourceIndex(0) +1->Emitted(47, 5) Source(33, 1) + SourceIndex(0) +2 >Emitted(47, 13) Source(33, 2) + SourceIndex(0) --- >>>}(C)); 1 > @@ -538,11 +541,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > return null; > } > } -1 >Emitted(45, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(45, 2) Source(33, 2) + SourceIndex(0) -3 >Emitted(45, 2) Source(16, 1) + SourceIndex(0) -4 >Emitted(45, 3) Source(16, 17) + SourceIndex(0) -5 >Emitted(45, 4) Source(16, 18) + SourceIndex(0) -6 >Emitted(45, 7) Source(33, 2) + SourceIndex(0) +1 >Emitted(48, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(48, 2) Source(33, 2) + SourceIndex(0) +3 >Emitted(48, 2) Source(16, 1) + SourceIndex(0) +4 >Emitted(48, 3) Source(16, 17) + SourceIndex(0) +5 >Emitted(48, 4) Source(16, 18) + SourceIndex(0) +6 >Emitted(48, 7) Source(33, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=derivedClassConstructorWithExplicitReturns01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js b/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js index 32edf0885e9..0442aaf8911 100644 --- a/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js +++ b/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js index 6c7ef87451b..8394b689589 100644 --- a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js +++ b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js index 2b7977f27ff..79922c29bbb 100644 --- a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js +++ b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js index f5019942482..2dc09fab050 100644 --- a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js +++ b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js index b84daa18b66..d098bbdb490 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js +++ b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesPrivates.js b/tests/baselines/reference/derivedClassOverridesPrivates.js index d313a5b5647..bfdd788f4de 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivates.js +++ b/tests/baselines/reference/derivedClassOverridesPrivates.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js index 9c8a5ecd12c..c9db50fe9ac 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js index c956c36d1e5..8874eb394d0 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js @@ -72,6 +72,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js index d709622f356..aee578cbc60 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js @@ -79,6 +79,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js index 099c450f692..f7f18d97f4d 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesPublicMembers.js b/tests/baselines/reference/derivedClassOverridesPublicMembers.js index f0c9651258b..1595028eab3 100644 --- a/tests/baselines/reference/derivedClassOverridesPublicMembers.js +++ b/tests/baselines/reference/derivedClassOverridesPublicMembers.js @@ -71,6 +71,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js index e526f7d8d9b..b65ee3a90e6 100644 --- a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js +++ b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassParameterProperties.js b/tests/baselines/reference/derivedClassParameterProperties.js index a3213b0ebbd..46aecf42832 100644 --- a/tests/baselines/reference/derivedClassParameterProperties.js +++ b/tests/baselines/reference/derivedClassParameterProperties.js @@ -104,6 +104,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js index b21d847aa57..38a49bdb3fe 100644 --- a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js +++ b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js index 93599cfbeea..34c814e023a 100644 --- a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js +++ b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassTransitivity.js b/tests/baselines/reference/derivedClassTransitivity.js index 3a5641b5feb..2b706a3a395 100644 --- a/tests/baselines/reference/derivedClassTransitivity.js +++ b/tests/baselines/reference/derivedClassTransitivity.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassTransitivity2.js b/tests/baselines/reference/derivedClassTransitivity2.js index fcd9a6eb6dc..f2da0b4b077 100644 --- a/tests/baselines/reference/derivedClassTransitivity2.js +++ b/tests/baselines/reference/derivedClassTransitivity2.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassTransitivity3.js b/tests/baselines/reference/derivedClassTransitivity3.js index b0b8481b224..9e7eee5b13d 100644 --- a/tests/baselines/reference/derivedClassTransitivity3.js +++ b/tests/baselines/reference/derivedClassTransitivity3.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassTransitivity4.js b/tests/baselines/reference/derivedClassTransitivity4.js index b5785a3cb4f..504db3a6197 100644 --- a/tests/baselines/reference/derivedClassTransitivity4.js +++ b/tests/baselines/reference/derivedClassTransitivity4.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithAny.js b/tests/baselines/reference/derivedClassWithAny.js index 57d540bed82..08bbf88c1cd 100644 --- a/tests/baselines/reference/derivedClassWithAny.js +++ b/tests/baselines/reference/derivedClassWithAny.js @@ -68,6 +68,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js index 550927ab3ac..28fa8c1ac35 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js index b2fc8c9ccb0..d17bed39ec0 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js index 35ef4038dd4..255623d51c4 100644 --- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js index 35b9386cd94..fd0a171d499 100644 --- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js +++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js index 0a33ed849d0..c014ac9eb73 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js index b74a76f85a2..26c593bd39b 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js index efc9e5655ec..e037862cbb4 100644 --- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js +++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js @@ -56,6 +56,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedClasses.js b/tests/baselines/reference/derivedClasses.js index 74de644d40c..dd683cb066b 100644 --- a/tests/baselines/reference/derivedClasses.js +++ b/tests/baselines/reference/derivedClasses.js @@ -39,6 +39,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedGenericClassWithAny.js b/tests/baselines/reference/derivedGenericClassWithAny.js index ef245a7ee1e..c8d57a9f13a 100644 --- a/tests/baselines/reference/derivedGenericClassWithAny.js +++ b/tests/baselines/reference/derivedGenericClassWithAny.js @@ -51,6 +51,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js index 3073a8182d0..ad17cf35af8 100644 --- a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js +++ b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js index 9fee874620f..8fc7af93c9c 100644 --- a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js +++ b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js b/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js index a1536dafca4..b3967c88377 100644 --- a/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js +++ b/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js @@ -92,6 +92,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/destructuringParameterDeclaration5.js b/tests/baselines/reference/destructuringParameterDeclaration5.js index 6ceabf38507..6fa2fb6666e 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration5.js +++ b/tests/baselines/reference/destructuringParameterDeclaration5.js @@ -60,6 +60,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js b/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js index fa76dab7464..cf7aa47ef55 100644 --- a/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js +++ b/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1.js b/tests/baselines/reference/emitBundleWithPrologueDirectives1.js index 1e11f3c45bb..d44fe6c6c6f 100644 --- a/tests/baselines/reference/emitBundleWithPrologueDirectives1.js +++ b/tests/baselines/reference/emitBundleWithPrologueDirectives1.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitBundleWithShebang1.js b/tests/baselines/reference/emitBundleWithShebang1.js index 0e19e997c6c..444833aa7ab 100644 --- a/tests/baselines/reference/emitBundleWithShebang1.js +++ b/tests/baselines/reference/emitBundleWithShebang1.js @@ -13,6 +13,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitBundleWithShebang2.js b/tests/baselines/reference/emitBundleWithShebang2.js index ac0a54bd4d2..c2808ec4217 100644 --- a/tests/baselines/reference/emitBundleWithShebang2.js +++ b/tests/baselines/reference/emitBundleWithShebang2.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js index 99590f80d01..d423664c32c 100644 --- a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js index 9aac22c9c07..f092a6bc426 100644 --- a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js +++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js b/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js index 7d84518a75d..0b4df59fb1f 100644 --- a/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js +++ b/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js index efb14f6a077..61c823d57fc 100644 --- a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js +++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js index 7c74ad06888..12e5b71a113 100644 --- a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js +++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js @@ -39,6 +39,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js index 46979a25b15..3d3d5431c05 100644 --- a/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js +++ b/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js index 09985c47478..47581e1937d 100644 --- a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js +++ b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js index f94699c64a4..f31339e38af 100644 --- a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js +++ b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitThisInSuperMethodCall.js b/tests/baselines/reference/emitThisInSuperMethodCall.js index 399cd122285..e91b339e6d3 100644 --- a/tests/baselines/reference/emitThisInSuperMethodCall.js +++ b/tests/baselines/reference/emitThisInSuperMethodCall.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js index fa9c9f3a515..05ac3119e17 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js @@ -579,6 +579,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/emptyModuleName.js b/tests/baselines/reference/emptyModuleName.js index eaefba8304f..c9823bfaa55 100644 --- a/tests/baselines/reference/emptyModuleName.js +++ b/tests/baselines/reference/emptyModuleName.js @@ -13,6 +13,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js b/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js index 36abfb4d741..9edd01767fb 100644 --- a/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js +++ b/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/errorSuperCalls.js b/tests/baselines/reference/errorSuperCalls.js index 5239c92a10f..8610f95e0a8 100644 --- a/tests/baselines/reference/errorSuperCalls.js +++ b/tests/baselines/reference/errorSuperCalls.js @@ -83,6 +83,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/errorSuperPropertyAccess.js b/tests/baselines/reference/errorSuperPropertyAccess.js index e63854304d7..a33ff30d328 100644 --- a/tests/baselines/reference/errorSuperPropertyAccess.js +++ b/tests/baselines/reference/errorSuperPropertyAccess.js @@ -137,6 +137,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/errorsInGenericTypeReference.js b/tests/baselines/reference/errorsInGenericTypeReference.js index d64719af602..002bb48ded6 100644 --- a/tests/baselines/reference/errorsInGenericTypeReference.js +++ b/tests/baselines/reference/errorsInGenericTypeReference.js @@ -80,6 +80,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/es6ClassSuperCodegenBug.js b/tests/baselines/reference/es6ClassSuperCodegenBug.js index 634223c8005..f5a6bfc1d4d 100644 --- a/tests/baselines/reference/es6ClassSuperCodegenBug.js +++ b/tests/baselines/reference/es6ClassSuperCodegenBug.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/es6ClassTest.js b/tests/baselines/reference/es6ClassTest.js index c9384e6b48c..2114d5b6f66 100644 --- a/tests/baselines/reference/es6ClassTest.js +++ b/tests/baselines/reference/es6ClassTest.js @@ -93,6 +93,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/es6ClassTest2.js b/tests/baselines/reference/es6ClassTest2.js index 86edc5adcdb..82bdeec82ae 100644 --- a/tests/baselines/reference/es6ClassTest2.js +++ b/tests/baselines/reference/es6ClassTest2.js @@ -167,6 +167,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/es6ClassTest7.js b/tests/baselines/reference/es6ClassTest7.js index 0884a7ed382..fa9d38908a0 100644 --- a/tests/baselines/reference/es6ClassTest7.js +++ b/tests/baselines/reference/es6ClassTest7.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/exportAssignmentOfGenericType1.js b/tests/baselines/reference/exportAssignmentOfGenericType1.js index c9b807c8dfd..c93f9f6bcba 100644 --- a/tests/baselines/reference/exportAssignmentOfGenericType1.js +++ b/tests/baselines/reference/exportAssignmentOfGenericType1.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/exportClassExtendingIntersection.js b/tests/baselines/reference/exportClassExtendingIntersection.js index c363e0a7a02..a610a625d3d 100644 --- a/tests/baselines/reference/exportClassExtendingIntersection.js +++ b/tests/baselines/reference/exportClassExtendingIntersection.js @@ -55,6 +55,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -82,6 +85,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.js b/tests/baselines/reference/exportDeclarationInInternalModule.js index a0bb5687fd8..b35a297f9ae 100644 --- a/tests/baselines/reference/exportDeclarationInInternalModule.js +++ b/tests/baselines/reference/exportDeclarationInInternalModule.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/exportDefaultAbstractClass.js b/tests/baselines/reference/exportDefaultAbstractClass.js index cf11705bdb5..de04b0eee54 100644 --- a/tests/baselines/reference/exportDefaultAbstractClass.js +++ b/tests/baselines/reference/exportDefaultAbstractClass.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -52,6 +55,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extBaseClass1.js b/tests/baselines/reference/extBaseClass1.js index 1891a78c422..2a131e2ac04 100644 --- a/tests/baselines/reference/extBaseClass1.js +++ b/tests/baselines/reference/extBaseClass1.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extBaseClass2.js b/tests/baselines/reference/extBaseClass2.js index 703f8070a44..87ce7bc8778 100644 --- a/tests/baselines/reference/extBaseClass2.js +++ b/tests/baselines/reference/extBaseClass2.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType.js b/tests/baselines/reference/extendAndImplementTheSameBaseType.js index 24a9d09e190..67c63726580 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js index b18e331a902..c0bba1d8980 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js index 149b33c1ff2..14f79f4a0f7 100644 --- a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js +++ b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendClassExpressionFromModule.js b/tests/baselines/reference/extendClassExpressionFromModule.js index 8878af7efb6..99d8156784b 100644 --- a/tests/baselines/reference/extendClassExpressionFromModule.js +++ b/tests/baselines/reference/extendClassExpressionFromModule.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendConstructSignatureInInterface.js b/tests/baselines/reference/extendConstructSignatureInInterface.js index f94010bef97..2881f233649 100644 --- a/tests/baselines/reference/extendConstructSignatureInInterface.js +++ b/tests/baselines/reference/extendConstructSignatureInInterface.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendFromAny.js b/tests/baselines/reference/extendFromAny.js index d7d4a4b8ba2..96559b8bf23 100644 --- a/tests/baselines/reference/extendFromAny.js +++ b/tests/baselines/reference/extendFromAny.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendNonClassSymbol1.js b/tests/baselines/reference/extendNonClassSymbol1.js index cb5cf45baa2..80118ec8d08 100644 --- a/tests/baselines/reference/extendNonClassSymbol1.js +++ b/tests/baselines/reference/extendNonClassSymbol1.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendNonClassSymbol2.js b/tests/baselines/reference/extendNonClassSymbol2.js index 6f6cebbdf28..de1f20636a9 100644 --- a/tests/baselines/reference/extendNonClassSymbol2.js +++ b/tests/baselines/reference/extendNonClassSymbol2.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendPrivateConstructorClass.js b/tests/baselines/reference/extendPrivateConstructorClass.js index 96c06ca6e68..86126a9c3e2 100644 --- a/tests/baselines/reference/extendPrivateConstructorClass.js +++ b/tests/baselines/reference/extendPrivateConstructorClass.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js index fd154a744bb..3126b860342 100644 --- a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js +++ b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -78,6 +81,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendsClause.js b/tests/baselines/reference/extendsClause.js index c75d2dc8c6e..5a3ff7e44f2 100644 --- a/tests/baselines/reference/extendsClause.js +++ b/tests/baselines/reference/extendsClause.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendsClauseAlreadySeen.js b/tests/baselines/reference/extendsClauseAlreadySeen.js index d1ffec90d29..3a0fe12fe6a 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendsClauseAlreadySeen2.js b/tests/baselines/reference/extendsClauseAlreadySeen2.js index 2a3bac4008d..da112e48983 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen2.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen2.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/extendsUntypedModule.js b/tests/baselines/reference/extendsUntypedModule.js index c239ca4af0f..5284a2e9a74 100644 --- a/tests/baselines/reference/extendsUntypedModule.js +++ b/tests/baselines/reference/extendsUntypedModule.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/fluentClasses.js b/tests/baselines/reference/fluentClasses.js index 9f68730010d..859ad1a3975 100644 --- a/tests/baselines/reference/fluentClasses.js +++ b/tests/baselines/reference/fluentClasses.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/for-inStatements.js b/tests/baselines/reference/for-inStatements.js index 37349f4d6e6..093eaad8b40 100644 --- a/tests/baselines/reference/for-inStatements.js +++ b/tests/baselines/reference/for-inStatements.js @@ -89,6 +89,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/for-inStatementsInvalid.js b/tests/baselines/reference/for-inStatementsInvalid.js index 195f166317c..bdde889ee8c 100644 --- a/tests/baselines/reference/for-inStatementsInvalid.js +++ b/tests/baselines/reference/for-inStatementsInvalid.js @@ -72,6 +72,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/forStatementsMultipleInvalidDecl.js b/tests/baselines/reference/forStatementsMultipleInvalidDecl.js index 0dcda5b1bbb..71b35c8cced 100644 --- a/tests/baselines/reference/forStatementsMultipleInvalidDecl.js +++ b/tests/baselines/reference/forStatementsMultipleInvalidDecl.js @@ -62,6 +62,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/functionImplementationErrors.js b/tests/baselines/reference/functionImplementationErrors.js index 10595e3152c..3f516cbd55b 100644 --- a/tests/baselines/reference/functionImplementationErrors.js +++ b/tests/baselines/reference/functionImplementationErrors.js @@ -82,6 +82,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/functionImplementations.js b/tests/baselines/reference/functionImplementations.js index d78f694377d..1b116bc2fa6 100644 --- a/tests/baselines/reference/functionImplementations.js +++ b/tests/baselines/reference/functionImplementations.js @@ -165,6 +165,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs.js b/tests/baselines/reference/functionSubtypingOfVarArgs.js index 6a039fa4821..decf4f4eaa9 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs2.js b/tests/baselines/reference/functionSubtypingOfVarArgs2.js index 16b2b9537e7..920cae18c83 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs2.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs2.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/generatedContextualTyping.js b/tests/baselines/reference/generatedContextualTyping.js index 961510504f9..acb1b0f320f 100644 --- a/tests/baselines/reference/generatedContextualTyping.js +++ b/tests/baselines/reference/generatedContextualTyping.js @@ -363,6 +363,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty.js b/tests/baselines/reference/genericBaseClassLiteralProperty.js index 5756b5aedff..fce1e33177e 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty2.js b/tests/baselines/reference/genericBaseClassLiteralProperty2.js index 48dc4da7aa3..a66374608a5 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty2.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty2.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js index daa564b9915..23f2f4b0410 100644 --- a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js +++ b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js @@ -117,6 +117,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js index 06b0267b269..d5a36344ea6 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js index cf8c30e6430..d0e74ec1bff 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js index c9d4de80643..3b0256a25c8 100644 --- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js +++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js @@ -47,6 +47,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js index 4056291f961..fab42865555 100644 --- a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js +++ b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericClassExpressionInFunction.js b/tests/baselines/reference/genericClassExpressionInFunction.js index bf93d5d336b..54861fd3fbf 100644 --- a/tests/baselines/reference/genericClassExpressionInFunction.js +++ b/tests/baselines/reference/genericClassExpressionInFunction.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js index 2f36fc1290c..90a0c0098b9 100644 --- a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js +++ b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js index d99e89f06c0..247e88490a0 100644 --- a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js +++ b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js @@ -84,6 +84,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericClassStaticMethod.js b/tests/baselines/reference/genericClassStaticMethod.js index 216d915d6e5..65c7603d5f8 100644 --- a/tests/baselines/reference/genericClassStaticMethod.js +++ b/tests/baselines/reference/genericClassStaticMethod.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericClasses3.js b/tests/baselines/reference/genericClasses3.js index ff4e5e1a095..e70b7d84721 100644 --- a/tests/baselines/reference/genericClasses3.js +++ b/tests/baselines/reference/genericClasses3.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js index b5d7064c993..8412efa8091 100644 --- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js +++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js index dae891378a2..96af28b411e 100644 --- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js +++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js index 7803c463eb8..59fb2d8ccc0 100644 --- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js +++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js index 08674c5a251..42c00f9f8bb 100644 --- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js +++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericInheritedDefaultConstructors.js b/tests/baselines/reference/genericInheritedDefaultConstructors.js index 9ebf6c517ea..f643bd1524f 100644 --- a/tests/baselines/reference/genericInheritedDefaultConstructors.js +++ b/tests/baselines/reference/genericInheritedDefaultConstructors.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericPrototypeProperty2.js b/tests/baselines/reference/genericPrototypeProperty2.js index 4d9c9fced86..3b61fe8299d 100644 --- a/tests/baselines/reference/genericPrototypeProperty2.js +++ b/tests/baselines/reference/genericPrototypeProperty2.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericPrototypeProperty3.js b/tests/baselines/reference/genericPrototypeProperty3.js index 433b57906c3..998459333fc 100644 --- a/tests/baselines/reference/genericPrototypeProperty3.js +++ b/tests/baselines/reference/genericPrototypeProperty3.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js index e2567e52764..bba2d444601 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js index 3f95abc3c35..b5a2e0a6588 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js @@ -39,6 +39,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericTypeAssertions2.js b/tests/baselines/reference/genericTypeAssertions2.js index 786ce3440d2..f29478f932a 100644 --- a/tests/baselines/reference/genericTypeAssertions2.js +++ b/tests/baselines/reference/genericTypeAssertions2.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericTypeAssertions4.js b/tests/baselines/reference/genericTypeAssertions4.js index bcf6c1e7b8e..9e1f0dcea28 100644 --- a/tests/baselines/reference/genericTypeAssertions4.js +++ b/tests/baselines/reference/genericTypeAssertions4.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericTypeAssertions6.js b/tests/baselines/reference/genericTypeAssertions6.js index 70136b61e2a..c9b25616295 100644 --- a/tests/baselines/reference/genericTypeAssertions6.js +++ b/tests/baselines/reference/genericTypeAssertions6.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericTypeConstraints.js b/tests/baselines/reference/genericTypeConstraints.js index 8cf0092ce71..926506cb276 100644 --- a/tests/baselines/reference/genericTypeConstraints.js +++ b/tests/baselines/reference/genericTypeConstraints.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js index ad5c6d483e3..8b7d96f7406 100644 --- a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js +++ b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js @@ -48,6 +48,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js index c0eb72cf288..05ce07def37 100644 --- a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js +++ b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js @@ -48,6 +48,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js index 9b6ea15c12b..09a8b085be6 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/heterogeneousArrayLiterals.js b/tests/baselines/reference/heterogeneousArrayLiterals.js index b3d710a63b9..a9a265b1668 100644 --- a/tests/baselines/reference/heterogeneousArrayLiterals.js +++ b/tests/baselines/reference/heterogeneousArrayLiterals.js @@ -141,6 +141,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/ifDoWhileStatements.js b/tests/baselines/reference/ifDoWhileStatements.js index d81331b5a99..2e024b6ae5f 100644 --- a/tests/baselines/reference/ifDoWhileStatements.js +++ b/tests/baselines/reference/ifDoWhileStatements.js @@ -171,6 +171,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/illegalSuperCallsInConstructor.js b/tests/baselines/reference/illegalSuperCallsInConstructor.js index 2c914494b80..8fb94fe80e8 100644 --- a/tests/baselines/reference/illegalSuperCallsInConstructor.js +++ b/tests/baselines/reference/illegalSuperCallsInConstructor.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/implementClausePrecedingExtends.js b/tests/baselines/reference/implementClausePrecedingExtends.js index f915ba4514a..b3e92f279c5 100644 --- a/tests/baselines/reference/implementClausePrecedingExtends.js +++ b/tests/baselines/reference/implementClausePrecedingExtends.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js index 65cd2a5c28d..b51171c9276 100644 --- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js +++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js @@ -94,6 +94,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js index 315a26b124a..c2da946bc0a 100644 --- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js +++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js @@ -50,6 +50,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/importAsBaseClass.js b/tests/baselines/reference/importAsBaseClass.js index 78f468f54f8..3986c4477c5 100644 --- a/tests/baselines/reference/importAsBaseClass.js +++ b/tests/baselines/reference/importAsBaseClass.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/importHelpers.js b/tests/baselines/reference/importHelpers.js index a32077ae476..4f2cabab68f 100644 --- a/tests/baselines/reference/importHelpers.js +++ b/tests/baselines/reference/importHelpers.js @@ -95,6 +95,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/importHelpersNoHelpers.js b/tests/baselines/reference/importHelpersNoHelpers.js index 2fdea1ff579..eda722c3b39 100644 --- a/tests/baselines/reference/importHelpersNoHelpers.js +++ b/tests/baselines/reference/importHelpersNoHelpers.js @@ -89,6 +89,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/importHelpersNoModule.js b/tests/baselines/reference/importHelpersNoModule.js index 80a25f8758b..29fe586b316 100644 --- a/tests/baselines/reference/importHelpersNoModule.js +++ b/tests/baselines/reference/importHelpersNoModule.js @@ -69,6 +69,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/importNotElidedWhenNotFound.js b/tests/baselines/reference/importNotElidedWhenNotFound.js index 9af5664d338..c6e650d3245 100644 --- a/tests/baselines/reference/importNotElidedWhenNotFound.js +++ b/tests/baselines/reference/importNotElidedWhenNotFound.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/importShadowsGlobalName.js b/tests/baselines/reference/importShadowsGlobalName.js index c1ae9b816fc..39fdf2fb183 100644 --- a/tests/baselines/reference/importShadowsGlobalName.js +++ b/tests/baselines/reference/importShadowsGlobalName.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/importUsedInExtendsList1.js b/tests/baselines/reference/importUsedInExtendsList1.js index 215e2e1df70..b3ed00c7b1f 100644 --- a/tests/baselines/reference/importUsedInExtendsList1.js +++ b/tests/baselines/reference/importUsedInExtendsList1.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js b/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js index 2ff1261fd79..24dde4f12e7 100644 --- a/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js +++ b/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/indexedAccessRelation.js b/tests/baselines/reference/indexedAccessRelation.js index 643200eaf6e..5224aa9da28 100644 --- a/tests/baselines/reference/indexedAccessRelation.js +++ b/tests/baselines/reference/indexedAccessRelation.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/indexedAccessTypeConstraints.js b/tests/baselines/reference/indexedAccessTypeConstraints.js index 47007268c2b..cfa47c66a60 100644 --- a/tests/baselines/reference/indexedAccessTypeConstraints.js +++ b/tests/baselines/reference/indexedAccessTypeConstraints.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/indexerConstraints2.js b/tests/baselines/reference/indexerConstraints2.js index 634be50d22b..a3553eb1f1d 100644 --- a/tests/baselines/reference/indexerConstraints2.js +++ b/tests/baselines/reference/indexerConstraints2.js @@ -90,6 +90,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/indirectSelfReference.js b/tests/baselines/reference/indirectSelfReference.js index 9cf86981793..0e559acbfe2 100644 --- a/tests/baselines/reference/indirectSelfReference.js +++ b/tests/baselines/reference/indirectSelfReference.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/indirectSelfReferenceGeneric.js b/tests/baselines/reference/indirectSelfReferenceGeneric.js index a70fdaddac5..4e1d7a3247c 100644 --- a/tests/baselines/reference/indirectSelfReferenceGeneric.js +++ b/tests/baselines/reference/indirectSelfReferenceGeneric.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js index 406ae7e5fc4..79b052f3ab9 100644 --- a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js +++ b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritFromGenericTypeParameter.js b/tests/baselines/reference/inheritFromGenericTypeParameter.js index 9821870ab35..9d3e2fab9ef 100644 --- a/tests/baselines/reference/inheritFromGenericTypeParameter.js +++ b/tests/baselines/reference/inheritFromGenericTypeParameter.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js index f0db5d77f18..4167db52554 100644 --- a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js +++ b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritance.js b/tests/baselines/reference/inheritance.js index 6ef3652ce02..12069905f8b 100644 --- a/tests/baselines/reference/inheritance.js +++ b/tests/baselines/reference/inheritance.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritance1.js b/tests/baselines/reference/inheritance1.js index c6c01b716dd..cb8593451bf 100644 --- a/tests/baselines/reference/inheritance1.js +++ b/tests/baselines/reference/inheritance1.js @@ -70,6 +70,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js index 394c139e9aa..a3b4c4f4bee 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js index 63b2bfe7baf..a6e3aeeda6b 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js index e6d9647a29d..aceab2377b5 100644 --- a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js index b8255468e15..570e6811867 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js index 537be89bb5e..0b5df5bcea0 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js index 246cd5548fe..21cef954352 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js index 2a05146e053..731011b3374 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js index 8236df5357f..25f523fc639 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js index f6d1413cb36..42aad59f3b3 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js index 99c69af4853..f762a338b5d 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js index 3b29c457ef3..dfda6dbc0f9 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js index b9bb7dc695f..5b15a34c41c 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js index 2b346e8a0fa..ef745a281aa 100644 --- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js +++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js index 8635b909d65..b2a5694f0f9 100644 --- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js +++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js index 909680e76e1..f35d95365a7 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js index 82813d3724e..015f571e4a6 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js index 6ce9dd493b2..ed4f33fcdb5 100644 --- a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js index 95c48fac138..7e57d9fd510 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js index 07523c67356..cf7102ddbc6 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js index cb83e666784..6ac475f5f06 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js index bf32cc8ecb7..21303e8e5a0 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js index aed7d3109cd..8016a044a05 100644 --- a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js +++ b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js index 7af6c7abc69..6f287a65ea3 100644 --- a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js +++ b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticMembersCompatible.js b/tests/baselines/reference/inheritanceStaticMembersCompatible.js index 18a5fba9fbc..d21d81f3efb 100644 --- a/tests/baselines/reference/inheritanceStaticMembersCompatible.js +++ b/tests/baselines/reference/inheritanceStaticMembersCompatible.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js index 3b1d0da9111..ca14c995ae1 100644 --- a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js +++ b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js index bb39efe42b4..54ba35af2e4 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js index 7a7368dcaeb..68d2b9334e0 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js index 347e1c3ddb1..f4c16b35e70 100644 --- a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js +++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams.js b/tests/baselines/reference/inheritedConstructorWithRestParams.js index 85d1f41d926..928e1845a2c 100644 --- a/tests/baselines/reference/inheritedConstructorWithRestParams.js +++ b/tests/baselines/reference/inheritedConstructorWithRestParams.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams2.js b/tests/baselines/reference/inheritedConstructorWithRestParams2.js index 92eacb7d32b..1560f85c825 100644 --- a/tests/baselines/reference/inheritedConstructorWithRestParams2.js +++ b/tests/baselines/reference/inheritedConstructorWithRestParams2.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/inheritedModuleMembersForClodule.js b/tests/baselines/reference/inheritedModuleMembersForClodule.js index 7e352b29e7b..0e06d1c67f1 100644 --- a/tests/baselines/reference/inheritedModuleMembersForClodule.js +++ b/tests/baselines/reference/inheritedModuleMembersForClodule.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/instanceOfAssignability.js b/tests/baselines/reference/instanceOfAssignability.js index 9a93ea71e66..a5a33e22457 100644 --- a/tests/baselines/reference/instanceOfAssignability.js +++ b/tests/baselines/reference/instanceOfAssignability.js @@ -98,6 +98,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js index a63976a830e..bfa315e0059 100644 --- a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js +++ b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js @@ -51,6 +51,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/instanceSubtypeCheck2.js b/tests/baselines/reference/instanceSubtypeCheck2.js index 2924ae3be05..b19479a46b3 100644 --- a/tests/baselines/reference/instanceSubtypeCheck2.js +++ b/tests/baselines/reference/instanceSubtypeCheck2.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js index 125e5d8a310..66875077615 100644 --- a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js +++ b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js @@ -80,6 +80,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/instantiatedReturnTypeContravariance.js b/tests/baselines/reference/instantiatedReturnTypeContravariance.js index c6cbd93e8bc..71664cfe99e 100644 --- a/tests/baselines/reference/instantiatedReturnTypeContravariance.js +++ b/tests/baselines/reference/instantiatedReturnTypeContravariance.js @@ -39,6 +39,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceClassMerging.js b/tests/baselines/reference/interfaceClassMerging.js index 67e99f40a37..37fdaecaf88 100644 --- a/tests/baselines/reference/interfaceClassMerging.js +++ b/tests/baselines/reference/interfaceClassMerging.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceClassMerging2.js b/tests/baselines/reference/interfaceClassMerging2.js index 6a636cfebb8..c8f2791736c 100644 --- a/tests/baselines/reference/interfaceClassMerging2.js +++ b/tests/baselines/reference/interfaceClassMerging2.js @@ -45,6 +45,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceExtendsClass1.js b/tests/baselines/reference/interfaceExtendsClass1.js index e63dce8f199..284f98f966a 100644 --- a/tests/baselines/reference/interfaceExtendsClass1.js +++ b/tests/baselines/reference/interfaceExtendsClass1.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js index 6da140d08c3..01b312cdee9 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js index c135119dd04..924ba1d609d 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceExtendsObjectIntersection.js b/tests/baselines/reference/interfaceExtendsObjectIntersection.js index 6138af53977..92f5f6a24a0 100644 --- a/tests/baselines/reference/interfaceExtendsObjectIntersection.js +++ b/tests/baselines/reference/interfaceExtendsObjectIntersection.js @@ -63,6 +63,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js b/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js index ece951d7d97..8b0ed42431d 100644 --- a/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js +++ b/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js @@ -57,6 +57,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/interfaceImplementation8.js b/tests/baselines/reference/interfaceImplementation8.js index f4fba428a1e..39685c25879 100644 --- a/tests/baselines/reference/interfaceImplementation8.js +++ b/tests/baselines/reference/interfaceImplementation8.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js b/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js index 29eb714d366..1309e467e92 100644 --- a/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js +++ b/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js @@ -88,6 +88,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/invalidMultipleVariableDeclarations.js b/tests/baselines/reference/invalidMultipleVariableDeclarations.js index e9cbbf2a2d2..23b4f19d74c 100644 --- a/tests/baselines/reference/invalidMultipleVariableDeclarations.js +++ b/tests/baselines/reference/invalidMultipleVariableDeclarations.js @@ -62,6 +62,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/invalidReturnStatements.js b/tests/baselines/reference/invalidReturnStatements.js index 99e75dff032..236612cc444 100644 --- a/tests/baselines/reference/invalidReturnStatements.js +++ b/tests/baselines/reference/invalidReturnStatements.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/isolatedModulesImportExportElision.js b/tests/baselines/reference/isolatedModulesImportExportElision.js index ba817b92b82..dcd0494edba 100644 --- a/tests/baselines/reference/isolatedModulesImportExportElision.js +++ b/tests/baselines/reference/isolatedModulesImportExportElision.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js index a65f487a81a..8ed5331e2e2 100644 --- a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js +++ b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsDeclarationsClasses.js b/tests/baselines/reference/jsDeclarationsClasses.js index d639c862cb9..dfb3551fe0c 100644 --- a/tests/baselines/reference/jsDeclarationsClasses.js +++ b/tests/baselines/reference/jsDeclarationsClasses.js @@ -204,6 +204,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsDeclarationsClassesErr.js b/tests/baselines/reference/jsDeclarationsClassesErr.js index 4345c92adbd..9fa59e40433 100644 --- a/tests/baselines/reference/jsDeclarationsClassesErr.js +++ b/tests/baselines/reference/jsDeclarationsClassesErr.js @@ -82,6 +82,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsDeclarationsDefault.js b/tests/baselines/reference/jsDeclarationsDefault.js index 2c7df6d14b9..a29d40099cc 100644 --- a/tests/baselines/reference/jsDeclarationsDefault.js +++ b/tests/baselines/reference/jsDeclarationsDefault.js @@ -77,6 +77,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js b/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js index 52933132cb4..14769f07fc3 100644 --- a/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js +++ b/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsdocTypeTagCast.js b/tests/baselines/reference/jsdocTypeTagCast.js index 53bf465b41a..94269ff3774 100644 --- a/tests/baselines/reference/jsdocTypeTagCast.js +++ b/tests/baselines/reference/jsdocTypeTagCast.js @@ -87,6 +87,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsxCallbackWithDestructuring.js b/tests/baselines/reference/jsxCallbackWithDestructuring.js index 2569315133a..11fd8c72359 100644 --- a/tests/baselines/reference/jsxCallbackWithDestructuring.js +++ b/tests/baselines/reference/jsxCallbackWithDestructuring.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js b/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js index e212514d699..e602b8e949e 100644 --- a/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js +++ b/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsxHasLiteralType.js b/tests/baselines/reference/jsxHasLiteralType.js index a32d8ec409b..d921994e725 100644 --- a/tests/baselines/reference/jsxHasLiteralType.js +++ b/tests/baselines/reference/jsxHasLiteralType.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsxInExtendsClause.js b/tests/baselines/reference/jsxInExtendsClause.js index 4ccb1b2d33f..a2ef9bf3796 100644 --- a/tests/baselines/reference/jsxInExtendsClause.js +++ b/tests/baselines/reference/jsxInExtendsClause.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsxViaImport.2.js b/tests/baselines/reference/jsxViaImport.2.js index 8f68e25cf93..233d8b8d1fc 100644 --- a/tests/baselines/reference/jsxViaImport.2.js +++ b/tests/baselines/reference/jsxViaImport.2.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/jsxViaImport.js b/tests/baselines/reference/jsxViaImport.js index 28ef5ac96da..56204c64e9b 100644 --- a/tests/baselines/reference/jsxViaImport.js +++ b/tests/baselines/reference/jsxViaImport.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/keyofAndIndexedAccess.js b/tests/baselines/reference/keyofAndIndexedAccess.js index e56ad3d5434..166f21a9979 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.js +++ b/tests/baselines/reference/keyofAndIndexedAccess.js @@ -667,6 +667,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/lambdaArgCrash.js b/tests/baselines/reference/lambdaArgCrash.js index 50f166548c1..e6ce8d50c11 100644 --- a/tests/baselines/reference/lambdaArgCrash.js +++ b/tests/baselines/reference/lambdaArgCrash.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/lift.js b/tests/baselines/reference/lift.js index d2e9d4351d3..5db64b3e5e3 100644 --- a/tests/baselines/reference/lift.js +++ b/tests/baselines/reference/lift.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/localTypes1.js b/tests/baselines/reference/localTypes1.js index 8f59847f258..18eaf3f1b37 100644 --- a/tests/baselines/reference/localTypes1.js +++ b/tests/baselines/reference/localTypes1.js @@ -149,6 +149,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/m7Bugs.js b/tests/baselines/reference/m7Bugs.js index 442d320e5a7..c832bf0bb45 100644 --- a/tests/baselines/reference/m7Bugs.js +++ b/tests/baselines/reference/m7Bugs.js @@ -35,6 +35,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mappedTypePartialConstraints.js b/tests/baselines/reference/mappedTypePartialConstraints.js index ba39eb341e9..f1070604bbd 100644 --- a/tests/baselines/reference/mappedTypePartialConstraints.js +++ b/tests/baselines/reference/mappedTypePartialConstraints.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mergedDeclarations5.js b/tests/baselines/reference/mergedDeclarations5.js index c54082e7490..71e0ab2df52 100644 --- a/tests/baselines/reference/mergedDeclarations5.js +++ b/tests/baselines/reference/mergedDeclarations5.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mergedDeclarations6.js b/tests/baselines/reference/mergedDeclarations6.js index 6dfc6015a96..2e097a6868a 100644 --- a/tests/baselines/reference/mergedDeclarations6.js +++ b/tests/baselines/reference/mergedDeclarations6.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mergedInheritedClassInterface.js b/tests/baselines/reference/mergedInheritedClassInterface.js index 374ba758996..1e5964c78e9 100644 --- a/tests/baselines/reference/mergedInheritedClassInterface.js +++ b/tests/baselines/reference/mergedInheritedClassInterface.js @@ -55,6 +55,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js b/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js index 4f6814b7524..1f9f1aac057 100644 --- a/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js +++ b/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js index 8a4084f8ddc..0e44c6441f8 100644 --- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js +++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js index 0e16f4a5c3d..149e0ca3437 100644 --- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js +++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js @@ -47,6 +47,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/missingPropertiesOfClassExpression.js b/tests/baselines/reference/missingPropertiesOfClassExpression.js index 09bd027beac..6977750e44e 100644 --- a/tests/baselines/reference/missingPropertiesOfClassExpression.js +++ b/tests/baselines/reference/missingPropertiesOfClassExpression.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mixinAccessModifiers.js b/tests/baselines/reference/mixinAccessModifiers.js index 2d158f6841e..40bf6cb94c1 100644 --- a/tests/baselines/reference/mixinAccessModifiers.js +++ b/tests/baselines/reference/mixinAccessModifiers.js @@ -141,6 +141,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mixinClassesAnnotated.js b/tests/baselines/reference/mixinClassesAnnotated.js index 4c5269508f4..b3c16804410 100644 --- a/tests/baselines/reference/mixinClassesAnnotated.js +++ b/tests/baselines/reference/mixinClassesAnnotated.js @@ -75,6 +75,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mixinClassesAnonymous.js b/tests/baselines/reference/mixinClassesAnonymous.js index f2328d4c6d1..426ee329a73 100644 --- a/tests/baselines/reference/mixinClassesAnonymous.js +++ b/tests/baselines/reference/mixinClassesAnonymous.js @@ -74,6 +74,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mixinClassesMembers.js b/tests/baselines/reference/mixinClassesMembers.js index 173ee687a35..59e94b72b08 100644 --- a/tests/baselines/reference/mixinClassesMembers.js +++ b/tests/baselines/reference/mixinClassesMembers.js @@ -107,6 +107,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mixinIntersectionIsValidbaseType.js b/tests/baselines/reference/mixinIntersectionIsValidbaseType.js index 3c489812625..e1caf9bf307 100644 --- a/tests/baselines/reference/mixinIntersectionIsValidbaseType.js +++ b/tests/baselines/reference/mixinIntersectionIsValidbaseType.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mixinPrivateAndProtected.js b/tests/baselines/reference/mixinPrivateAndProtected.js index 601cce00e37..2b1b2804d2e 100644 --- a/tests/baselines/reference/mixinPrivateAndProtected.js +++ b/tests/baselines/reference/mixinPrivateAndProtected.js @@ -99,6 +99,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mixingApparentTypeOverrides.js b/tests/baselines/reference/mixingApparentTypeOverrides.js index 74f9afc8389..2be97b8e1be 100644 --- a/tests/baselines/reference/mixingApparentTypeOverrides.js +++ b/tests/baselines/reference/mixingApparentTypeOverrides.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/moduleAsBaseType.js b/tests/baselines/reference/moduleAsBaseType.js index 260735687ca..800feed7f02 100644 --- a/tests/baselines/reference/moduleAsBaseType.js +++ b/tests/baselines/reference/moduleAsBaseType.js @@ -13,6 +13,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js index b0ad743cffa..948febd9a17 100644 --- a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js +++ b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/moduleNoneOutFile.js b/tests/baselines/reference/moduleNoneOutFile.js index 723e266e6d3..0dd2426f2d6 100644 --- a/tests/baselines/reference/moduleNoneOutFile.js +++ b/tests/baselines/reference/moduleNoneOutFile.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/moduleWithStatementsOfEveryKind.js b/tests/baselines/reference/moduleWithStatementsOfEveryKind.js index af336676867..d9a300e4814 100644 --- a/tests/baselines/reference/moduleWithStatementsOfEveryKind.js +++ b/tests/baselines/reference/moduleWithStatementsOfEveryKind.js @@ -67,6 +67,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/multipleInheritance.js b/tests/baselines/reference/multipleInheritance.js index b80794c1e71..50a22cd1d0d 100644 --- a/tests/baselines/reference/multipleInheritance.js +++ b/tests/baselines/reference/multipleInheritance.js @@ -47,6 +47,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js index 54fea7b4d53..2fc06167b66 100644 --- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js +++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/mutuallyRecursiveInference.js b/tests/baselines/reference/mutuallyRecursiveInference.js index f43ea313001..073f0346887 100644 --- a/tests/baselines/reference/mutuallyRecursiveInference.js +++ b/tests/baselines/reference/mutuallyRecursiveInference.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/narrowingOfDottedNames.js b/tests/baselines/reference/narrowingOfDottedNames.js index 4b4d9ada399..77a0e12869b 100644 --- a/tests/baselines/reference/narrowingOfDottedNames.js +++ b/tests/baselines/reference/narrowingOfDottedNames.js @@ -102,6 +102,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/neverReturningFunctions1.js b/tests/baselines/reference/neverReturningFunctions1.js index 512c8205ce4..c7f34b2afe0 100644 --- a/tests/baselines/reference/neverReturningFunctions1.js +++ b/tests/baselines/reference/neverReturningFunctions1.js @@ -259,6 +259,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/newTarget.es5.js b/tests/baselines/reference/newTarget.es5.js index 92be98d08fb..98e99c275e3 100644 --- a/tests/baselines/reference/newTarget.es5.js +++ b/tests/baselines/reference/newTarget.es5.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/noCrashOnMixin.js b/tests/baselines/reference/noCrashOnMixin.js index 2a72e5ba185..b09a5fff4ea 100644 --- a/tests/baselines/reference/noCrashOnMixin.js +++ b/tests/baselines/reference/noCrashOnMixin.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js index d5c7bdb0915..31fe2ba0746 100644 --- a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js +++ b/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js index c4db0caa2ce..04f290c4dc3 100644 --- a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js +++ b/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js index 93a8b21daae..f58f22d8cab 100644 --- a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js +++ b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js @@ -14,6 +14,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js index 37b827cc8c4..bddf70e93c2 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js @@ -55,6 +55,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/numericIndexerConstraint3.js b/tests/baselines/reference/numericIndexerConstraint3.js index f6e1a201de6..cf6a801e0ca 100644 --- a/tests/baselines/reference/numericIndexerConstraint3.js +++ b/tests/baselines/reference/numericIndexerConstraint3.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/numericIndexerConstraint4.js b/tests/baselines/reference/numericIndexerConstraint4.js index e2cb7c58dff..1327d749ed2 100644 --- a/tests/baselines/reference/numericIndexerConstraint4.js +++ b/tests/baselines/reference/numericIndexerConstraint4.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/numericIndexerTyping2.js b/tests/baselines/reference/numericIndexerTyping2.js index 28af1636aec..d53219bee57 100644 --- a/tests/baselines/reference/numericIndexerTyping2.js +++ b/tests/baselines/reference/numericIndexerTyping2.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js index ed67113d387..ae688652efd 100644 --- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js +++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js @@ -64,6 +64,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js index 9cdb3cf42fd..ec9743c369b 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js @@ -63,6 +63,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js index f6d5a970664..ada58bded67 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js @@ -132,6 +132,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js index bbc9351a922..6462cc88cd4 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js @@ -135,6 +135,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js index ffe0bcc558f..75e272e63a5 100644 --- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js +++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js @@ -132,6 +132,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates.js b/tests/baselines/reference/objectTypesIdentityWithPrivates.js index 3774b171204..9bf759ee3bf 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates.js +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates.js @@ -130,6 +130,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates2.js b/tests/baselines/reference/objectTypesIdentityWithPrivates2.js index e18a0096cb4..3ea79327af2 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates2.js +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates2.js @@ -48,6 +48,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates3.js b/tests/baselines/reference/objectTypesIdentityWithPrivates3.js index 2fe25fdfaec..f36622caf79 100644 --- a/tests/baselines/reference/objectTypesIdentityWithPrivates3.js +++ b/tests/baselines/reference/objectTypesIdentityWithPrivates3.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js index 070686b15cc..d900e81e504 100644 --- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js +++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js @@ -132,6 +132,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js index bc882c7ecd8..268eed44ce2 100644 --- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js +++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js @@ -135,6 +135,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/optionalConstructorArgInSuper.js b/tests/baselines/reference/optionalConstructorArgInSuper.js index 29535a3b317..c88f02effb7 100644 --- a/tests/baselines/reference/optionalConstructorArgInSuper.js +++ b/tests/baselines/reference/optionalConstructorArgInSuper.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/optionalMethods.js b/tests/baselines/reference/optionalMethods.js index 0a409e935eb..2e8e12f1b6e 100644 --- a/tests/baselines/reference/optionalMethods.js +++ b/tests/baselines/reference/optionalMethods.js @@ -65,6 +65,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/optionalParamArgsTest.js b/tests/baselines/reference/optionalParamArgsTest.js index a89d3d39273..4778adaf18f 100644 --- a/tests/baselines/reference/optionalParamArgsTest.js +++ b/tests/baselines/reference/optionalParamArgsTest.js @@ -133,6 +133,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/optionalParamInOverride.js b/tests/baselines/reference/optionalParamInOverride.js index e4d417bbc65..df56d1fc907 100644 --- a/tests/baselines/reference/optionalParamInOverride.js +++ b/tests/baselines/reference/optionalParamInOverride.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/optionalParameterProperty.js b/tests/baselines/reference/optionalParameterProperty.js index 80c3ce96f66..ad83510bc04 100644 --- a/tests/baselines/reference/optionalParameterProperty.js +++ b/tests/baselines/reference/optionalParameterProperty.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/outModuleConcatAmd.js b/tests/baselines/reference/outModuleConcatAmd.js index f3e7fa6a5a2..0eebf4ec01a 100644 --- a/tests/baselines/reference/outModuleConcatAmd.js +++ b/tests/baselines/reference/outModuleConcatAmd.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/outModuleConcatAmd.js.map b/tests/baselines/reference/outModuleConcatAmd.js.map index eee5f37e3a3..1cd86072193 100644 --- a/tests/baselines/reference/outModuleConcatAmd.js.map +++ b/tests/baselines/reference/outModuleConcatAmd.js.map @@ -1,2 +1,2 @@ //// [all.js.map] -{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAAA;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,cAAC;;;;;;ICCd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"} \ No newline at end of file +{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;IAAA;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,cAAC;;;;;;ICCd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt b/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt index 98fe55766af..6861c54ac13 100644 --- a/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt +++ b/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt @@ -16,6 +16,9 @@ sourceFile:tests/cases/compiler/ref/a.ts >>> return extendStatics(d, b); >>> }; >>> return function (d, b) { +>>> if (typeof b !== "function" && b !== null) { +>>> throw new TypeError("Class extends value " + b + " is not a constructor or null"); +>>> } >>> extendStatics(d, b); >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -29,13 +32,13 @@ sourceFile:tests/cases/compiler/ref/a.ts 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(18, 5) Source(1, 1) + SourceIndex(0) +1 >Emitted(21, 5) Source(1, 1) + SourceIndex(0) --- >>> function A() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(19, 9) Source(1, 1) + SourceIndex(0) +1->Emitted(22, 9) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^ @@ -43,16 +46,16 @@ sourceFile:tests/cases/compiler/ref/a.ts 3 > ^^^^^^^^^-> 1->export class A { 2 > } -1->Emitted(20, 9) Source(1, 18) + SourceIndex(0) -2 >Emitted(20, 10) Source(1, 19) + SourceIndex(0) +1->Emitted(23, 9) Source(1, 18) + SourceIndex(0) +2 >Emitted(23, 10) Source(1, 19) + SourceIndex(0) --- >>> return A; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(21, 9) Source(1, 18) + SourceIndex(0) -2 >Emitted(21, 17) Source(1, 19) + SourceIndex(0) +1->Emitted(24, 9) Source(1, 18) + SourceIndex(0) +2 >Emitted(24, 17) Source(1, 19) + SourceIndex(0) --- >>> }()); 1 >^^^^ @@ -64,18 +67,18 @@ sourceFile:tests/cases/compiler/ref/a.ts 2 > } 3 > 4 > export class A { } -1 >Emitted(22, 5) Source(1, 18) + SourceIndex(0) -2 >Emitted(22, 6) Source(1, 19) + SourceIndex(0) -3 >Emitted(22, 6) Source(1, 1) + SourceIndex(0) -4 >Emitted(22, 10) Source(1, 19) + SourceIndex(0) +1 >Emitted(25, 5) Source(1, 18) + SourceIndex(0) +2 >Emitted(25, 6) Source(1, 19) + SourceIndex(0) +3 >Emitted(25, 6) Source(1, 1) + SourceIndex(0) +4 >Emitted(25, 10) Source(1, 19) + SourceIndex(0) --- >>> exports.A = A; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > A -1->Emitted(23, 5) Source(1, 14) + SourceIndex(0) -2 >Emitted(23, 19) Source(1, 15) + SourceIndex(0) +1->Emitted(26, 5) Source(1, 14) + SourceIndex(0) +2 >Emitted(26, 19) Source(1, 15) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:all.js @@ -91,21 +94,21 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >import {A} from "./ref/a"; > -1 >Emitted(29, 5) Source(2, 1) + SourceIndex(1) +1 >Emitted(32, 5) Source(2, 1) + SourceIndex(1) --- >>> __extends(B, _super); 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(30, 9) Source(2, 24) + SourceIndex(1) -2 >Emitted(30, 30) Source(2, 25) + SourceIndex(1) +1->Emitted(33, 9) Source(2, 24) + SourceIndex(1) +2 >Emitted(33, 30) Source(2, 25) + SourceIndex(1) --- >>> function B() { 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(31, 9) Source(2, 1) + SourceIndex(1) +1 >Emitted(34, 9) Source(2, 1) + SourceIndex(1) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -114,16 +117,16 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1->export class B extends A { 2 > } -1->Emitted(33, 9) Source(2, 28) + SourceIndex(1) -2 >Emitted(33, 10) Source(2, 29) + SourceIndex(1) +1->Emitted(36, 9) Source(2, 28) + SourceIndex(1) +2 >Emitted(36, 10) Source(2, 29) + SourceIndex(1) --- >>> return B; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(34, 9) Source(2, 28) + SourceIndex(1) -2 >Emitted(34, 17) Source(2, 29) + SourceIndex(1) +1->Emitted(37, 9) Source(2, 28) + SourceIndex(1) +2 >Emitted(37, 17) Source(2, 29) + SourceIndex(1) --- >>> }(a_1.A)); 1 >^^^^ @@ -139,20 +142,20 @@ sourceFile:tests/cases/compiler/b.ts 4 > export class B extends 5 > A 6 > { } -1 >Emitted(35, 5) Source(2, 28) + SourceIndex(1) -2 >Emitted(35, 6) Source(2, 29) + SourceIndex(1) -3 >Emitted(35, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(35, 7) Source(2, 24) + SourceIndex(1) -5 >Emitted(35, 12) Source(2, 25) + SourceIndex(1) -6 >Emitted(35, 15) Source(2, 29) + SourceIndex(1) +1 >Emitted(38, 5) Source(2, 28) + SourceIndex(1) +2 >Emitted(38, 6) Source(2, 29) + SourceIndex(1) +3 >Emitted(38, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(38, 7) Source(2, 24) + SourceIndex(1) +5 >Emitted(38, 12) Source(2, 25) + SourceIndex(1) +6 >Emitted(38, 15) Source(2, 29) + SourceIndex(1) --- >>> exports.B = B; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > B -1->Emitted(36, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(36, 19) Source(2, 15) + SourceIndex(1) +1->Emitted(39, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(39, 19) Source(2, 15) + SourceIndex(1) --- >>>}); >>>//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatSystem.js b/tests/baselines/reference/outModuleConcatSystem.js index b566b887736..daf40adfdb5 100644 --- a/tests/baselines/reference/outModuleConcatSystem.js +++ b/tests/baselines/reference/outModuleConcatSystem.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/outModuleConcatSystem.js.map b/tests/baselines/reference/outModuleConcatSystem.js.map index 0e08511fab4..eeed28a88a3 100644 --- a/tests/baselines/reference/outModuleConcatSystem.js.map +++ b/tests/baselines/reference/outModuleConcatSystem.js.map @@ -1,2 +1,2 @@ //// [all.js.map] -{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAAA;gBAAA;gBAAiB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAlB,IAAkB;;QAClB,CAAC;;;;;;;;;;;;;;YCAD;gBAAuB,qBAAC;gBAAxB;;gBAA2B,CAAC;gBAAD,QAAC;YAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;;QAAA,CAAC"} \ No newline at end of file +{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAAA;gBAAA;gBAAiB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAlB,IAAkB;;QAClB,CAAC;;;;;;;;;;;;;;YCAD;gBAAuB,qBAAC;gBAAxB;;gBAA2B,CAAC;gBAAD,QAAC;YAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;;QAAA,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt b/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt index 08aa323aa83..d77bf0e86a0 100644 --- a/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt +++ b/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt @@ -16,6 +16,9 @@ sourceFile:tests/cases/compiler/ref/a.ts >>> return extendStatics(d, b); >>> }; >>> return function (d, b) { +>>> if (typeof b !== "function" && b !== null) { +>>> throw new TypeError("Class extends value " + b + " is not a constructor or null"); +>>> } >>> extendStatics(d, b); >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -32,13 +35,13 @@ sourceFile:tests/cases/compiler/ref/a.ts 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(21, 13) Source(1, 1) + SourceIndex(0) +1 >Emitted(24, 13) Source(1, 1) + SourceIndex(0) --- >>> function A() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(22, 17) Source(1, 1) + SourceIndex(0) +1->Emitted(25, 17) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -46,16 +49,16 @@ sourceFile:tests/cases/compiler/ref/a.ts 3 > ^^^^^^^^^-> 1->export class A { 2 > } -1->Emitted(23, 17) Source(1, 18) + SourceIndex(0) -2 >Emitted(23, 18) Source(1, 19) + SourceIndex(0) +1->Emitted(26, 17) Source(1, 18) + SourceIndex(0) +2 >Emitted(26, 18) Source(1, 19) + SourceIndex(0) --- >>> return A; 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(24, 17) Source(1, 18) + SourceIndex(0) -2 >Emitted(24, 25) Source(1, 19) + SourceIndex(0) +1->Emitted(27, 17) Source(1, 18) + SourceIndex(0) +2 >Emitted(27, 25) Source(1, 19) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -67,10 +70,10 @@ sourceFile:tests/cases/compiler/ref/a.ts 2 > } 3 > 4 > export class A { } -1 >Emitted(25, 13) Source(1, 18) + SourceIndex(0) -2 >Emitted(25, 14) Source(1, 19) + SourceIndex(0) -3 >Emitted(25, 14) Source(1, 1) + SourceIndex(0) -4 >Emitted(25, 18) Source(1, 19) + SourceIndex(0) +1 >Emitted(28, 13) Source(1, 18) + SourceIndex(0) +2 >Emitted(28, 14) Source(1, 19) + SourceIndex(0) +3 >Emitted(28, 14) Source(1, 1) + SourceIndex(0) +4 >Emitted(28, 18) Source(1, 19) + SourceIndex(0) --- >>> exports_1("A", A); >>> } @@ -79,8 +82,8 @@ sourceFile:tests/cases/compiler/ref/a.ts 1-> > 2 > -1->Emitted(27, 9) Source(2, 1) + SourceIndex(0) -2 >Emitted(27, 10) Source(2, 2) + SourceIndex(0) +1->Emitted(30, 9) Source(2, 1) + SourceIndex(0) +2 >Emitted(30, 10) Source(2, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:all.js @@ -104,21 +107,21 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >import {A} from "./ref/a"; > -1 >Emitted(41, 13) Source(2, 1) + SourceIndex(1) +1 >Emitted(44, 13) Source(2, 1) + SourceIndex(1) --- >>> __extends(B, _super); 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(42, 17) Source(2, 24) + SourceIndex(1) -2 >Emitted(42, 38) Source(2, 25) + SourceIndex(1) +1->Emitted(45, 17) Source(2, 24) + SourceIndex(1) +2 >Emitted(45, 38) Source(2, 25) + SourceIndex(1) --- >>> function B() { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(43, 17) Source(2, 1) + SourceIndex(1) +1 >Emitted(46, 17) Source(2, 1) + SourceIndex(1) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -127,16 +130,16 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1->export class B extends A { 2 > } -1->Emitted(45, 17) Source(2, 28) + SourceIndex(1) -2 >Emitted(45, 18) Source(2, 29) + SourceIndex(1) +1->Emitted(48, 17) Source(2, 28) + SourceIndex(1) +2 >Emitted(48, 18) Source(2, 29) + SourceIndex(1) --- >>> return B; 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(46, 17) Source(2, 28) + SourceIndex(1) -2 >Emitted(46, 25) Source(2, 29) + SourceIndex(1) +1->Emitted(49, 17) Source(2, 28) + SourceIndex(1) +2 >Emitted(49, 25) Source(2, 29) + SourceIndex(1) --- >>> }(a_1.A)); 1 >^^^^^^^^^^^^ @@ -152,12 +155,12 @@ sourceFile:tests/cases/compiler/b.ts 4 > export class B extends 5 > A 6 > { } -1 >Emitted(47, 13) Source(2, 28) + SourceIndex(1) -2 >Emitted(47, 14) Source(2, 29) + SourceIndex(1) -3 >Emitted(47, 14) Source(2, 1) + SourceIndex(1) -4 >Emitted(47, 15) Source(2, 24) + SourceIndex(1) -5 >Emitted(47, 20) Source(2, 25) + SourceIndex(1) -6 >Emitted(47, 23) Source(2, 29) + SourceIndex(1) +1 >Emitted(50, 13) Source(2, 28) + SourceIndex(1) +2 >Emitted(50, 14) Source(2, 29) + SourceIndex(1) +3 >Emitted(50, 14) Source(2, 1) + SourceIndex(1) +4 >Emitted(50, 15) Source(2, 24) + SourceIndex(1) +5 >Emitted(50, 20) Source(2, 25) + SourceIndex(1) +6 >Emitted(50, 23) Source(2, 29) + SourceIndex(1) --- >>> exports_2("B", B); >>> } @@ -165,8 +168,8 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^ 1-> 2 > -1->Emitted(49, 9) Source(2, 29) + SourceIndex(1) -2 >Emitted(49, 10) Source(2, 30) + SourceIndex(1) +1->Emitted(52, 9) Source(2, 29) + SourceIndex(1) +2 >Emitted(52, 10) Source(2, 30) + SourceIndex(1) --- >>> }; >>>}); diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js b/tests/baselines/reference/outModuleTripleSlashRefs.js index 9e9beae947a..0da2aab44c2 100644 --- a/tests/baselines/reference/outModuleTripleSlashRefs.js +++ b/tests/baselines/reference/outModuleTripleSlashRefs.js @@ -38,6 +38,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js.map b/tests/baselines/reference/outModuleTripleSlashRefs.js.map index 5ebe6183470..b81e3221f79 100644 --- a/tests/baselines/reference/outModuleTripleSlashRefs.js.map +++ b/tests/baselines/reference/outModuleTripleSlashRefs.js.map @@ -1,2 +1,2 @@ //// [all.js.map] -{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/b.ts","tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,iCAAiC;AACjC;IAAA;IAEA,CAAC;IAAD,UAAC;AAAD,CAAC,AAFD,IAEC;;;;;ICHD,+BAA+B;IAC/B;QAAA;QAEA,CAAC;QAAD,QAAC;IAAD,CAAC,AAFD,IAEC;IAFY,cAAC;;;;;;ICAd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"} \ No newline at end of file +{"version":3,"file":"all.js","sourceRoot":"","sources":["tests/cases/compiler/ref/b.ts","tests/cases/compiler/ref/a.ts","tests/cases/compiler/b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC;IAAA;IAEA,CAAC;IAAD,UAAC;AAAD,CAAC,AAFD,IAEC;;;;;ICHD,+BAA+B;IAC/B;QAAA;QAEA,CAAC;QAAD,QAAC;IAAD,CAAC,AAFD,IAEC;IAFY,cAAC;;;;;;ICAd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt b/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt index e148cb692a4..f89bac38001 100644 --- a/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt +++ b/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt @@ -16,6 +16,9 @@ sourceFile:tests/cases/compiler/ref/b.ts >>> return extendStatics(d, b); >>> }; >>> return function (d, b) { +>>> if (typeof b !== "function" && b !== null) { +>>> throw new TypeError("Class extends value " + b + " is not a constructor or null"); +>>> } >>> extendStatics(d, b); >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -27,21 +30,21 @@ sourceFile:tests/cases/compiler/ref/b.ts 3 > ^^^^^^-> 1 > 2 >/// -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(14, 34) Source(1, 34) + SourceIndex(0) +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(17, 34) Source(1, 34) + SourceIndex(0) --- >>>var Foo = /** @class */ (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(15, 1) Source(2, 1) + SourceIndex(0) +1->Emitted(18, 1) Source(2, 1) + SourceIndex(0) --- >>> function Foo() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(16, 5) Source(2, 1) + SourceIndex(0) +1->Emitted(19, 5) Source(2, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -51,16 +54,16 @@ sourceFile:tests/cases/compiler/ref/b.ts > member: Bar; > 2 > } -1->Emitted(17, 5) Source(4, 1) + SourceIndex(0) -2 >Emitted(17, 6) Source(4, 2) + SourceIndex(0) +1->Emitted(20, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(20, 6) Source(4, 2) + SourceIndex(0) --- >>> return Foo; 1->^^^^ 2 > ^^^^^^^^^^ 1-> 2 > } -1->Emitted(18, 5) Source(4, 1) + SourceIndex(0) -2 >Emitted(18, 15) Source(4, 2) + SourceIndex(0) +1->Emitted(21, 5) Source(4, 1) + SourceIndex(0) +2 >Emitted(21, 15) Source(4, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -74,10 +77,10 @@ sourceFile:tests/cases/compiler/ref/b.ts 4 > class Foo { > member: Bar; > } -1 >Emitted(19, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(19, 2) Source(4, 2) + SourceIndex(0) -3 >Emitted(19, 2) Source(2, 1) + SourceIndex(0) -4 >Emitted(19, 6) Source(4, 2) + SourceIndex(0) +1 >Emitted(22, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(22, 2) Source(4, 2) + SourceIndex(0) +3 >Emitted(22, 2) Source(2, 1) + SourceIndex(0) +4 >Emitted(22, 6) Source(4, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:all.js @@ -93,21 +96,21 @@ sourceFile:tests/cases/compiler/ref/a.ts 3 > ^^^^^^-> 1-> 2 > /// -1->Emitted(24, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(24, 36) Source(1, 32) + SourceIndex(1) +1->Emitted(27, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(27, 36) Source(1, 32) + SourceIndex(1) --- >>> var A = /** @class */ (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(25, 5) Source(2, 1) + SourceIndex(1) +1->Emitted(28, 5) Source(2, 1) + SourceIndex(1) --- >>> function A() { 1->^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(26, 9) Source(2, 1) + SourceIndex(1) +1->Emitted(29, 9) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^^^^^ @@ -117,16 +120,16 @@ sourceFile:tests/cases/compiler/ref/a.ts > member: typeof GlobalFoo; > 2 > } -1->Emitted(27, 9) Source(4, 1) + SourceIndex(1) -2 >Emitted(27, 10) Source(4, 2) + SourceIndex(1) +1->Emitted(30, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(30, 10) Source(4, 2) + SourceIndex(1) --- >>> return A; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(28, 9) Source(4, 1) + SourceIndex(1) -2 >Emitted(28, 17) Source(4, 2) + SourceIndex(1) +1->Emitted(31, 9) Source(4, 1) + SourceIndex(1) +2 >Emitted(31, 17) Source(4, 2) + SourceIndex(1) --- >>> }()); 1 >^^^^ @@ -140,18 +143,18 @@ sourceFile:tests/cases/compiler/ref/a.ts 4 > export class A { > member: typeof GlobalFoo; > } -1 >Emitted(29, 5) Source(4, 1) + SourceIndex(1) -2 >Emitted(29, 6) Source(4, 2) + SourceIndex(1) -3 >Emitted(29, 6) Source(2, 1) + SourceIndex(1) -4 >Emitted(29, 10) Source(4, 2) + SourceIndex(1) +1 >Emitted(32, 5) Source(4, 1) + SourceIndex(1) +2 >Emitted(32, 6) Source(4, 2) + SourceIndex(1) +3 >Emitted(32, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(32, 10) Source(4, 2) + SourceIndex(1) --- >>> exports.A = A; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > A -1->Emitted(30, 5) Source(2, 14) + SourceIndex(1) -2 >Emitted(30, 19) Source(2, 15) + SourceIndex(1) +1->Emitted(33, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(33, 19) Source(2, 15) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:all.js @@ -167,21 +170,21 @@ sourceFile:tests/cases/compiler/b.ts 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >import {A} from "./ref/a"; > -1 >Emitted(36, 5) Source(2, 1) + SourceIndex(2) +1 >Emitted(39, 5) Source(2, 1) + SourceIndex(2) --- >>> __extends(B, _super); 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->export class B extends 2 > A -1->Emitted(37, 9) Source(2, 24) + SourceIndex(2) -2 >Emitted(37, 30) Source(2, 25) + SourceIndex(2) +1->Emitted(40, 9) Source(2, 24) + SourceIndex(2) +2 >Emitted(40, 30) Source(2, 25) + SourceIndex(2) --- >>> function B() { 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(38, 9) Source(2, 1) + SourceIndex(2) +1 >Emitted(41, 9) Source(2, 1) + SourceIndex(2) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -190,16 +193,16 @@ sourceFile:tests/cases/compiler/b.ts 3 > ^^^^^^^^^-> 1->export class B extends A { 2 > } -1->Emitted(40, 9) Source(2, 28) + SourceIndex(2) -2 >Emitted(40, 10) Source(2, 29) + SourceIndex(2) +1->Emitted(43, 9) Source(2, 28) + SourceIndex(2) +2 >Emitted(43, 10) Source(2, 29) + SourceIndex(2) --- >>> return B; 1->^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > } -1->Emitted(41, 9) Source(2, 28) + SourceIndex(2) -2 >Emitted(41, 17) Source(2, 29) + SourceIndex(2) +1->Emitted(44, 9) Source(2, 28) + SourceIndex(2) +2 >Emitted(44, 17) Source(2, 29) + SourceIndex(2) --- >>> }(a_1.A)); 1 >^^^^ @@ -215,20 +218,20 @@ sourceFile:tests/cases/compiler/b.ts 4 > export class B extends 5 > A 6 > { } -1 >Emitted(42, 5) Source(2, 28) + SourceIndex(2) -2 >Emitted(42, 6) Source(2, 29) + SourceIndex(2) -3 >Emitted(42, 6) Source(2, 1) + SourceIndex(2) -4 >Emitted(42, 7) Source(2, 24) + SourceIndex(2) -5 >Emitted(42, 12) Source(2, 25) + SourceIndex(2) -6 >Emitted(42, 15) Source(2, 29) + SourceIndex(2) +1 >Emitted(45, 5) Source(2, 28) + SourceIndex(2) +2 >Emitted(45, 6) Source(2, 29) + SourceIndex(2) +3 >Emitted(45, 6) Source(2, 1) + SourceIndex(2) +4 >Emitted(45, 7) Source(2, 24) + SourceIndex(2) +5 >Emitted(45, 12) Source(2, 25) + SourceIndex(2) +6 >Emitted(45, 15) Source(2, 29) + SourceIndex(2) --- >>> exports.B = B; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > B -1->Emitted(43, 5) Source(2, 14) + SourceIndex(2) -2 >Emitted(43, 19) Source(2, 15) + SourceIndex(2) +1->Emitted(46, 5) Source(2, 14) + SourceIndex(2) +2 >Emitted(46, 19) Source(2, 15) + SourceIndex(2) --- >>>}); >>>//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/tests/baselines/reference/overload1.js b/tests/baselines/reference/overload1.js index 9a14efd2ae6..4405bf7c8df 100644 --- a/tests/baselines/reference/overload1.js +++ b/tests/baselines/reference/overload1.js @@ -48,6 +48,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks1.js b/tests/baselines/reference/overloadOnConstConstraintChecks1.js index 94bb534a26d..7cb2efd947c 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks1.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks1.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks2.js b/tests/baselines/reference/overloadOnConstConstraintChecks2.js index d38132dae57..e12ff81fd12 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks2.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks2.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks3.js b/tests/baselines/reference/overloadOnConstConstraintChecks3.js index 73bcfbb2397..a7f413ff3e5 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks3.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks3.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks4.js b/tests/baselines/reference/overloadOnConstConstraintChecks4.js index b0b8e76eacd..eeeb0717ff8 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks4.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks4.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js index 00768a84e42..ee2d71cf0a9 100644 --- a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js +++ b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadResolution.js b/tests/baselines/reference/overloadResolution.js index 509483c61be..b8f69215ce9 100644 --- a/tests/baselines/reference/overloadResolution.js +++ b/tests/baselines/reference/overloadResolution.js @@ -103,6 +103,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadResolutionClassConstructors.js b/tests/baselines/reference/overloadResolutionClassConstructors.js index 7c852c21914..b2193425996 100644 --- a/tests/baselines/reference/overloadResolutionClassConstructors.js +++ b/tests/baselines/reference/overloadResolutionClassConstructors.js @@ -110,6 +110,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadResolutionConstructors.js b/tests/baselines/reference/overloadResolutionConstructors.js index 31a0309ae23..f5ad8ac1839 100644 --- a/tests/baselines/reference/overloadResolutionConstructors.js +++ b/tests/baselines/reference/overloadResolutionConstructors.js @@ -111,6 +111,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js index 8c742c8fda2..baaeb86eb6d 100644 --- a/tests/baselines/reference/overloadingOnConstants1.js +++ b/tests/baselines/reference/overloadingOnConstants1.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overloadingOnConstants2.js b/tests/baselines/reference/overloadingOnConstants2.js index 978f9524a1c..5d21dd547ed 100644 --- a/tests/baselines/reference/overloadingOnConstants2.js +++ b/tests/baselines/reference/overloadingOnConstants2.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overrideBaseIntersectionMethod.js b/tests/baselines/reference/overrideBaseIntersectionMethod.js index b58c1f78674..697131ab8ed 100644 --- a/tests/baselines/reference/overrideBaseIntersectionMethod.js +++ b/tests/baselines/reference/overrideBaseIntersectionMethod.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/overridingPrivateStaticMembers.js b/tests/baselines/reference/overridingPrivateStaticMembers.js index 9ced500351f..114aa968d45 100644 --- a/tests/baselines/reference/overridingPrivateStaticMembers.js +++ b/tests/baselines/reference/overridingPrivateStaticMembers.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parseErrorInHeritageClause1.js b/tests/baselines/reference/parseErrorInHeritageClause1.js index d0d1331e44a..951de322d75 100644 --- a/tests/baselines/reference/parseErrorInHeritageClause1.js +++ b/tests/baselines/reference/parseErrorInHeritageClause1.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parser509630.js b/tests/baselines/reference/parser509630.js index c0d6d667543..061489933ac 100644 --- a/tests/baselines/reference/parser509630.js +++ b/tests/baselines/reference/parser509630.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserAstSpans1.js b/tests/baselines/reference/parserAstSpans1.js index 0cf04e89a30..b2f0649ae9c 100644 --- a/tests/baselines/reference/parserAstSpans1.js +++ b/tests/baselines/reference/parserAstSpans1.js @@ -228,6 +228,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserClassDeclaration1.js b/tests/baselines/reference/parserClassDeclaration1.js index 65c9d46babb..adb0aa59cc4 100644 --- a/tests/baselines/reference/parserClassDeclaration1.js +++ b/tests/baselines/reference/parserClassDeclaration1.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserClassDeclaration3.js b/tests/baselines/reference/parserClassDeclaration3.js index 07e15c82f26..8f32ccd4b1a 100644 --- a/tests/baselines/reference/parserClassDeclaration3.js +++ b/tests/baselines/reference/parserClassDeclaration3.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserClassDeclaration4.js b/tests/baselines/reference/parserClassDeclaration4.js index ce636f307a9..ad3de685e4e 100644 --- a/tests/baselines/reference/parserClassDeclaration4.js +++ b/tests/baselines/reference/parserClassDeclaration4.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserClassDeclaration5.js b/tests/baselines/reference/parserClassDeclaration5.js index 0d276534cf6..060a81492f4 100644 --- a/tests/baselines/reference/parserClassDeclaration5.js +++ b/tests/baselines/reference/parserClassDeclaration5.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserClassDeclaration6.js b/tests/baselines/reference/parserClassDeclaration6.js index 89f5518c86d..b74c78df764 100644 --- a/tests/baselines/reference/parserClassDeclaration6.js +++ b/tests/baselines/reference/parserClassDeclaration6.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js index cb35279660c..f47cd7cae02 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js index 227af5ebf4d..93e5e579360 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js index 77ba94cd3eb..4069a34360c 100644 --- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js +++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserGenericsInTypeContexts1.js b/tests/baselines/reference/parserGenericsInTypeContexts1.js index f221d429b3f..16ca6a0704f 100644 --- a/tests/baselines/reference/parserGenericsInTypeContexts1.js +++ b/tests/baselines/reference/parserGenericsInTypeContexts1.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserGenericsInTypeContexts2.js b/tests/baselines/reference/parserGenericsInTypeContexts2.js index 39b2d2c5e70..cb967d32950 100644 --- a/tests/baselines/reference/parserGenericsInTypeContexts2.js +++ b/tests/baselines/reference/parserGenericsInTypeContexts2.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserRealSource10.js b/tests/baselines/reference/parserRealSource10.js index 968cecc30ed..b55289f9efc 100644 --- a/tests/baselines/reference/parserRealSource10.js +++ b/tests/baselines/reference/parserRealSource10.js @@ -466,6 +466,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserRealSource11.js b/tests/baselines/reference/parserRealSource11.js index cd48bcc4fd6..384b89cd525 100644 --- a/tests/baselines/reference/parserRealSource11.js +++ b/tests/baselines/reference/parserRealSource11.js @@ -2375,6 +2375,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/parserharness.js b/tests/baselines/reference/parserharness.js index 53ae2f28510..b96a879fa03 100644 --- a/tests/baselines/reference/parserharness.js +++ b/tests/baselines/reference/parserharness.js @@ -2104,6 +2104,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js index 8412890ee19..005af817d22 100644 --- a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js +++ b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js index 89f698cff0e..e54c78e7cec 100644 --- a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js +++ b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/primitiveMembers.js b/tests/baselines/reference/primitiveMembers.js index 37a92e41617..e4e889ca71d 100644 --- a/tests/baselines/reference/primitiveMembers.js +++ b/tests/baselines/reference/primitiveMembers.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privacyClass.js b/tests/baselines/reference/privacyClass.js index c09f3890ca3..e90891e3f1a 100644 --- a/tests/baselines/reference/privacyClass.js +++ b/tests/baselines/reference/privacyClass.js @@ -137,6 +137,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js index 0090e03260a..0db9898a07b 100644 --- a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js +++ b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js @@ -106,6 +106,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -302,6 +305,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privacyGloClass.js b/tests/baselines/reference/privacyGloClass.js index 3665d45e9f3..c20a6d17a30 100644 --- a/tests/baselines/reference/privacyGloClass.js +++ b/tests/baselines/reference/privacyGloClass.js @@ -69,6 +69,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privateAccessInSubclass1.js b/tests/baselines/reference/privateAccessInSubclass1.js index 6d6edb5c6a6..f43d4d3039f 100644 --- a/tests/baselines/reference/privateAccessInSubclass1.js +++ b/tests/baselines/reference/privateAccessInSubclass1.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privateInstanceMemberAccessibility.js b/tests/baselines/reference/privateInstanceMemberAccessibility.js index ffcefc92836..85b6eb408b5 100644 --- a/tests/baselines/reference/privateInstanceMemberAccessibility.js +++ b/tests/baselines/reference/privateInstanceMemberAccessibility.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js index eb45924bda7..7695f95f952 100644 --- a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js +++ b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privateStaticMemberAccessibility.js b/tests/baselines/reference/privateStaticMemberAccessibility.js index 389f614e72c..1b058e6e4ed 100644 --- a/tests/baselines/reference/privateStaticMemberAccessibility.js +++ b/tests/baselines/reference/privateStaticMemberAccessibility.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js b/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js index 2d9007b9501..d1192072623 100644 --- a/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js +++ b/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js index 345b99e5672..67edbb32c76 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js @@ -6,6 +6,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js index 345b99e5672..67edbb32c76 100644 --- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js +++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js @@ -6,6 +6,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/project/prologueEmit/amd/out.js b/tests/baselines/reference/project/prologueEmit/amd/out.js index f758fc4a85f..1a64f288ebb 100644 --- a/tests/baselines/reference/project/prologueEmit/amd/out.js +++ b/tests/baselines/reference/project/prologueEmit/amd/out.js @@ -6,6 +6,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/project/prologueEmit/node/out.js b/tests/baselines/reference/project/prologueEmit/node/out.js index f758fc4a85f..1a64f288ebb 100644 --- a/tests/baselines/reference/project/prologueEmit/node/out.js +++ b/tests/baselines/reference/project/prologueEmit/node/out.js @@ -6,6 +6,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js index 351bc0f0af6..0a0b0ec9d43 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js @@ -7,6 +7,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js index 351bc0f0af6..0a0b0ec9d43 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js @@ -7,6 +7,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/propertiesAndIndexers.js b/tests/baselines/reference/propertiesAndIndexers.js index ba5ec00d539..2caa4f9aff4 100644 --- a/tests/baselines/reference/propertiesAndIndexers.js +++ b/tests/baselines/reference/propertiesAndIndexers.js @@ -60,6 +60,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/propertyAccess.js b/tests/baselines/reference/propertyAccess.js index 8681c3fb404..5fe7cc85599 100644 --- a/tests/baselines/reference/propertyAccess.js +++ b/tests/baselines/reference/propertyAccess.js @@ -159,6 +159,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js index cf5315528db..cc40b669491 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js @@ -91,6 +91,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js index bde85a52f38..ee4a4553559 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js @@ -66,6 +66,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js index ea74da04fd7..dab1983f8a7 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js @@ -53,6 +53,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/propertyOverridesAccessors4.js b/tests/baselines/reference/propertyOverridesAccessors4.js index 1c284e6aa49..d6f89d3d44a 100644 --- a/tests/baselines/reference/propertyOverridesAccessors4.js +++ b/tests/baselines/reference/propertyOverridesAccessors4.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/propertyOverridingPrototype.js b/tests/baselines/reference/propertyOverridingPrototype.js index 67d70fb3c35..f701af5227d 100644 --- a/tests/baselines/reference/propertyOverridingPrototype.js +++ b/tests/baselines/reference/propertyOverridingPrototype.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js index 9cc42fa96f1..0718ddf1a2e 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js index cd4a43d05e5..58adf2a7e32 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js @@ -123,6 +123,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js index 18e6100afe1..657cbbc62f2 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js index 0d3d47efff3..c784adc5070 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js @@ -103,6 +103,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js index e8b32190035..d60de9a2278 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedInstanceMemberAccessibility.js b/tests/baselines/reference/protectedInstanceMemberAccessibility.js index a7372dfc15c..4f2a7b479da 100644 --- a/tests/baselines/reference/protectedInstanceMemberAccessibility.js +++ b/tests/baselines/reference/protectedInstanceMemberAccessibility.js @@ -53,6 +53,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedMembers.js b/tests/baselines/reference/protectedMembers.js index b90e487fd21..b5ef7a42d14 100644 --- a/tests/baselines/reference/protectedMembers.js +++ b/tests/baselines/reference/protectedMembers.js @@ -124,6 +124,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js index 2a7bb5ecaa1..092e0d760bc 100644 --- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js +++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js index 86d5df89867..4d5dff9bfbe 100644 --- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js b/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js index 8d91be85bbd..08941e71f91 100644 --- a/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js +++ b/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js b/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js index a87e225a148..085a4df0905 100644 --- a/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js +++ b/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js @@ -79,6 +79,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/reactHOCSpreadprops.js b/tests/baselines/reference/reactHOCSpreadprops.js index 45ecbe35f68..aa2b6137d93 100644 --- a/tests/baselines/reference/reactHOCSpreadprops.js +++ b/tests/baselines/reference/reactHOCSpreadprops.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js index 57f6680e098..8989621f076 100644 --- a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js +++ b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js b/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js index 3c2cb0e7626..d823384e47e 100644 --- a/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js +++ b/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js @@ -157,6 +157,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js index 9807f417017..13f10b8d70f 100644 --- a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js +++ b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/readonlyConstructorAssignment.js b/tests/baselines/reference/readonlyConstructorAssignment.js index 0b42900e5b2..9d83fe78e86 100644 --- a/tests/baselines/reference/readonlyConstructorAssignment.js +++ b/tests/baselines/reference/readonlyConstructorAssignment.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursiveBaseCheck3.js b/tests/baselines/reference/recursiveBaseCheck3.js index ee8cd3f8914..fef99a0e1c1 100644 --- a/tests/baselines/reference/recursiveBaseCheck3.js +++ b/tests/baselines/reference/recursiveBaseCheck3.js @@ -13,6 +13,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursiveBaseCheck4.js b/tests/baselines/reference/recursiveBaseCheck4.js index aace4c73cb9..2c483b0a0ee 100644 --- a/tests/baselines/reference/recursiveBaseCheck4.js +++ b/tests/baselines/reference/recursiveBaseCheck4.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursiveBaseCheck6.js b/tests/baselines/reference/recursiveBaseCheck6.js index b372d21c57e..df5d3b06b73 100644 --- a/tests/baselines/reference/recursiveBaseCheck6.js +++ b/tests/baselines/reference/recursiveBaseCheck6.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation1.js b/tests/baselines/reference/recursiveBaseConstructorCreation1.js index fb5d8b95226..68b7bf6319e 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation1.js +++ b/tests/baselines/reference/recursiveBaseConstructorCreation1.js @@ -15,6 +15,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js index 31a63524f92..0b869b23b20 100644 --- a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js +++ b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js b/tests/baselines/reference/recursiveClassReferenceTest.js index 078959861b9..c4c68166bf8 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.js +++ b/tests/baselines/reference/recursiveClassReferenceTest.js @@ -113,6 +113,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js.map b/tests/baselines/reference/recursiveClassReferenceTest.js.map index 687e1773c26..b87b394c3d6 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.js.map +++ b/tests/baselines/reference/recursiveClassReferenceTest.js.map @@ -1,2 +1,2 @@ //// [recursiveClassReferenceTest.js.map] -{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;;;;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAAC,IAAA,OAAO,CAUpB;IAVa,WAAA,OAAO;QAAC,IAAA,KAAK,CAU1B;QAVqB,WAAA,OAAK;YAAC,IAAA,IAAI,CAU/B;YAV2B,WAAA,IAAI;gBAC/B;oBAAA;oBAQA,CAAC;oBANO,+BAAK,GAAZ,cAAiB,OAAO,IAAI,CAAC,CAAC,CAAC;oBAExB,6BAAG,GAAV,UAAW,KAA6B;wBAEvC,OAAO,IAAI,CAAC;oBACb,CAAC;oBACF,sBAAC;gBAAD,CAAC,AARD,IAQC;gBARY,oBAAe,kBAQ3B,CAAA;YACF,CAAC,EAV2B,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAU/B;QAAD,CAAC,EAVqB,KAAK,GAAL,aAAK,KAAL,aAAK,QAU1B;IAAD,CAAC,EAVa,OAAO,GAAP,cAAO,KAAP,cAAO,QAUpB;AAAD,CAAC,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,WAAO,MAAM;IAAC,IAAA,KAAK,CAoBlB;IApBa,WAAA,KAAK;QAAC,IAAA,OAAO,CAoB1B;QApBmB,WAAA,OAAO;YAC1B;gBAKC,oBAAoB,SAAkC;oBAAlC,cAAS,GAAT,SAAS,CAAyB;oBAD9C,YAAO,GAAO,IAAI,CAAC;oBAEvB,aAAa;oBACb,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;gBAC3C,CAAC;gBANM,wBAAG,GAAV,UAAW,MAAyC,IAAI,IAAI,IAAI,EAAE;oBAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;iBAAC,CAAA,CAAC;gBAQlF,+BAAU,GAAjB;oBACC,OAAO,OAAO,CAAC;gBAChB,CAAC;gBAEM,4BAAO,GAAd;gBAEA,CAAC;gBAEF,iBAAC;YAAD,CAAC,AAlBD,IAkBC;YAlBY,kBAAU,aAkBtB,CAAA;QACF,CAAC,EApBmB,OAAO,GAAP,aAAO,KAAP,aAAO,QAoB1B;IAAD,CAAC,EApBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAoBlB;AAAD,CAAC,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD;IAAA;IAAuF,CAAC;IAA3C,sCAAe,GAAtB,cAAmC,OAAO,IAAI,CAAC,CAAA,CAAC;IAAC,mBAAC;AAAD,CAAC,AAAxF,IAAwF;AASxF,WAAO,MAAM;IAAC,IAAA,KAAK,CAwBlB;IAxBa,WAAA,KAAK;QAAC,IAAA,SAAS,CAwB5B;QAxBmB,WAAA,SAAS;YAAC,IAAA,SAAS,CAwBtC;YAxB6B,WAAA,SAAS;gBAEtC;oBACO,eAAoB,IAAW;wBAAX,SAAI,GAAJ,IAAI,CAAO;oBAAI,CAAC;oBACnC,qBAAK,GAAZ;wBACC,OAAO,IAAI,CAAC;oBACb,CAAC;oBAEM,sBAAM,GAAb,UAAc,KAAY;wBACzB,OAAO,IAAI,KAAK,KAAK,CAAC;oBACvB,CAAC;oBAEM,uBAAO,GAAd,cAA0B,OAAO,IAAI,CAAC,CAAC,CAAC;oBACzC,YAAC;gBAAD,CAAC,AAXD,IAWC;gBAXY,eAAK,QAWjB,CAAA;gBAED;oBAA0B,wBAAY;oBAAtC;;oBAQA,CAAC;oBANA,aAAa;oBACN,8BAAe,GAAtB;wBACC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;oBACxB,CAAC;oBAGF,WAAC;gBAAD,CAAC,AARD,CAA0B,YAAY,GAQrC;gBARY,cAAI,OAQhB,CAAA;YACF,CAAC,EAxB6B,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAwBtC;QAAD,CAAC,EAxBmB,SAAS,GAAT,eAAS,KAAT,eAAS,QAwB5B;IAAD,CAAC,EAxBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAwBlB;AAAD,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ"} \ No newline at end of file +{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;;;;;;;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAAC,IAAA,OAAO,CAUpB;IAVa,WAAA,OAAO;QAAC,IAAA,KAAK,CAU1B;QAVqB,WAAA,OAAK;YAAC,IAAA,IAAI,CAU/B;YAV2B,WAAA,IAAI;gBAC/B;oBAAA;oBAQA,CAAC;oBANO,+BAAK,GAAZ,cAAiB,OAAO,IAAI,CAAC,CAAC,CAAC;oBAExB,6BAAG,GAAV,UAAW,KAA6B;wBAEvC,OAAO,IAAI,CAAC;oBACb,CAAC;oBACF,sBAAC;gBAAD,CAAC,AARD,IAQC;gBARY,oBAAe,kBAQ3B,CAAA;YACF,CAAC,EAV2B,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAU/B;QAAD,CAAC,EAVqB,KAAK,GAAL,aAAK,KAAL,aAAK,QAU1B;IAAD,CAAC,EAVa,OAAO,GAAP,cAAO,KAAP,cAAO,QAUpB;AAAD,CAAC,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,WAAO,MAAM;IAAC,IAAA,KAAK,CAoBlB;IApBa,WAAA,KAAK;QAAC,IAAA,OAAO,CAoB1B;QApBmB,WAAA,OAAO;YAC1B;gBAKC,oBAAoB,SAAkC;oBAAlC,cAAS,GAAT,SAAS,CAAyB;oBAD9C,YAAO,GAAO,IAAI,CAAC;oBAEvB,aAAa;oBACb,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;gBAC3C,CAAC;gBANM,wBAAG,GAAV,UAAW,MAAyC,IAAI,IAAI,IAAI,EAAE;oBAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;iBAAC,CAAA,CAAC;gBAQlF,+BAAU,GAAjB;oBACC,OAAO,OAAO,CAAC;gBAChB,CAAC;gBAEM,4BAAO,GAAd;gBAEA,CAAC;gBAEF,iBAAC;YAAD,CAAC,AAlBD,IAkBC;YAlBY,kBAAU,aAkBtB,CAAA;QACF,CAAC,EApBmB,OAAO,GAAP,aAAO,KAAP,aAAO,QAoB1B;IAAD,CAAC,EApBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAoBlB;AAAD,CAAC,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD;IAAA;IAAuF,CAAC;IAA3C,sCAAe,GAAtB,cAAmC,OAAO,IAAI,CAAC,CAAA,CAAC;IAAC,mBAAC;AAAD,CAAC,AAAxF,IAAwF;AASxF,WAAO,MAAM;IAAC,IAAA,KAAK,CAwBlB;IAxBa,WAAA,KAAK;QAAC,IAAA,SAAS,CAwB5B;QAxBmB,WAAA,SAAS;YAAC,IAAA,SAAS,CAwBtC;YAxB6B,WAAA,SAAS;gBAEtC;oBACO,eAAoB,IAAW;wBAAX,SAAI,GAAJ,IAAI,CAAO;oBAAI,CAAC;oBACnC,qBAAK,GAAZ;wBACC,OAAO,IAAI,CAAC;oBACb,CAAC;oBAEM,sBAAM,GAAb,UAAc,KAAY;wBACzB,OAAO,IAAI,KAAK,KAAK,CAAC;oBACvB,CAAC;oBAEM,uBAAO,GAAd,cAA0B,OAAO,IAAI,CAAC,CAAC,CAAC;oBACzC,YAAC;gBAAD,CAAC,AAXD,IAWC;gBAXY,eAAK,QAWjB,CAAA;gBAED;oBAA0B,wBAAY;oBAAtC;;oBAQA,CAAC;oBANA,aAAa;oBACN,8BAAe,GAAtB;wBACC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;oBACxB,CAAC;oBAGF,WAAC;gBAAD,CAAC,AARD,CAA0B,YAAY,GAQrC;gBARY,cAAI,OAQhB,CAAA;YACF,CAAC,EAxB6B,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAwBtC;QAAD,CAAC,EAxBmB,SAAS,GAAT,eAAS,KAAT,eAAS,QAwB5B;IAAD,CAAC,EAxBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAwBlB;AAAD,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ"} \ No newline at end of file diff --git a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt index bef310b69d6..2540891baa0 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt +++ b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt @@ -34,6 +34,9 @@ sourceFile:recursiveClassReferenceTest.ts >>> return extendStatics(d, b); >>> }; >>> return function (d, b) { +>>> if (typeof b !== "function" && b !== null) { +>>> throw new TypeError("Class extends value " + b + " is not a constructor or null"); +>>> } >>> extendStatics(d, b); >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -89,10 +92,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(16, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(16, 5) Source(32, 8) + SourceIndex(0) -3 >Emitted(16, 11) Source(32, 14) + SourceIndex(0) -4 >Emitted(16, 12) Source(42, 2) + SourceIndex(0) +1 >Emitted(19, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(19, 5) Source(32, 8) + SourceIndex(0) +3 >Emitted(19, 11) Source(32, 14) + SourceIndex(0) +4 >Emitted(19, 12) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -101,9 +104,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 >module 3 > Sample -1->Emitted(17, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(17, 12) Source(32, 8) + SourceIndex(0) -3 >Emitted(17, 18) Source(32, 14) + SourceIndex(0) +1->Emitted(20, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(20, 12) Source(32, 8) + SourceIndex(0) +3 >Emitted(20, 18) Source(32, 14) + SourceIndex(0) --- >>> var Actions; 1 >^^^^ @@ -125,10 +128,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(18, 5) Source(32, 15) + SourceIndex(0) -2 >Emitted(18, 9) Source(32, 15) + SourceIndex(0) -3 >Emitted(18, 16) Source(32, 22) + SourceIndex(0) -4 >Emitted(18, 17) Source(42, 2) + SourceIndex(0) +1 >Emitted(21, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(21, 9) Source(32, 15) + SourceIndex(0) +3 >Emitted(21, 16) Source(32, 22) + SourceIndex(0) +4 >Emitted(21, 17) Source(42, 2) + SourceIndex(0) --- >>> (function (Actions) { 1->^^^^ @@ -137,9 +140,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Actions -1->Emitted(19, 5) Source(32, 15) + SourceIndex(0) -2 >Emitted(19, 16) Source(32, 15) + SourceIndex(0) -3 >Emitted(19, 23) Source(32, 22) + SourceIndex(0) +1->Emitted(22, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(22, 16) Source(32, 15) + SourceIndex(0) +3 >Emitted(22, 23) Source(32, 22) + SourceIndex(0) --- >>> var Thing; 1 >^^^^^^^^ @@ -161,10 +164,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(20, 9) Source(32, 23) + SourceIndex(0) -2 >Emitted(20, 13) Source(32, 23) + SourceIndex(0) -3 >Emitted(20, 18) Source(32, 28) + SourceIndex(0) -4 >Emitted(20, 19) Source(42, 2) + SourceIndex(0) +1 >Emitted(23, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(23, 13) Source(32, 23) + SourceIndex(0) +3 >Emitted(23, 18) Source(32, 28) + SourceIndex(0) +4 >Emitted(23, 19) Source(42, 2) + SourceIndex(0) --- >>> (function (Thing_1) { 1->^^^^^^^^ @@ -173,9 +176,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(21, 9) Source(32, 23) + SourceIndex(0) -2 >Emitted(21, 20) Source(32, 23) + SourceIndex(0) -3 >Emitted(21, 27) Source(32, 28) + SourceIndex(0) +1->Emitted(24, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(24, 20) Source(32, 23) + SourceIndex(0) +3 >Emitted(24, 27) Source(32, 28) + SourceIndex(0) --- >>> var Find; 1 >^^^^^^^^^^^^ @@ -197,10 +200,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(22, 13) Source(32, 29) + SourceIndex(0) -2 >Emitted(22, 17) Source(32, 29) + SourceIndex(0) -3 >Emitted(22, 21) Source(32, 33) + SourceIndex(0) -4 >Emitted(22, 22) Source(42, 2) + SourceIndex(0) +1 >Emitted(25, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(25, 17) Source(32, 29) + SourceIndex(0) +3 >Emitted(25, 21) Source(32, 33) + SourceIndex(0) +4 >Emitted(25, 22) Source(42, 2) + SourceIndex(0) --- >>> (function (Find) { 1->^^^^^^^^^^^^ @@ -210,22 +213,22 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Find -1->Emitted(23, 13) Source(32, 29) + SourceIndex(0) -2 >Emitted(23, 24) Source(32, 29) + SourceIndex(0) -3 >Emitted(23, 28) Source(32, 33) + SourceIndex(0) +1->Emitted(26, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(26, 24) Source(32, 29) + SourceIndex(0) +3 >Emitted(26, 28) Source(32, 33) + SourceIndex(0) --- >>> var StartFindAction = /** @class */ (function () { 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(24, 17) Source(33, 2) + SourceIndex(0) +1->Emitted(27, 17) Source(33, 2) + SourceIndex(0) --- >>> function StartFindAction() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(25, 21) Source(33, 2) + SourceIndex(0) +1->Emitted(28, 21) Source(33, 2) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -241,8 +244,8 @@ sourceFile:recursiveClassReferenceTest.ts > } > 2 > } -1->Emitted(26, 21) Source(41, 2) + SourceIndex(0) -2 >Emitted(26, 22) Source(41, 3) + SourceIndex(0) +1->Emitted(29, 21) Source(41, 2) + SourceIndex(0) +2 >Emitted(29, 22) Source(41, 3) + SourceIndex(0) --- >>> StartFindAction.prototype.getId = function () { return "yo"; }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -263,15 +266,15 @@ sourceFile:recursiveClassReferenceTest.ts 7 > ; 8 > 9 > } -1->Emitted(27, 21) Source(35, 10) + SourceIndex(0) -2 >Emitted(27, 52) Source(35, 15) + SourceIndex(0) -3 >Emitted(27, 55) Source(35, 3) + SourceIndex(0) -4 >Emitted(27, 69) Source(35, 20) + SourceIndex(0) -5 >Emitted(27, 76) Source(35, 27) + SourceIndex(0) -6 >Emitted(27, 80) Source(35, 31) + SourceIndex(0) -7 >Emitted(27, 81) Source(35, 32) + SourceIndex(0) -8 >Emitted(27, 82) Source(35, 33) + SourceIndex(0) -9 >Emitted(27, 83) Source(35, 34) + SourceIndex(0) +1->Emitted(30, 21) Source(35, 10) + SourceIndex(0) +2 >Emitted(30, 52) Source(35, 15) + SourceIndex(0) +3 >Emitted(30, 55) Source(35, 3) + SourceIndex(0) +4 >Emitted(30, 69) Source(35, 20) + SourceIndex(0) +5 >Emitted(30, 76) Source(35, 27) + SourceIndex(0) +6 >Emitted(30, 80) Source(35, 31) + SourceIndex(0) +7 >Emitted(30, 81) Source(35, 32) + SourceIndex(0) +8 >Emitted(30, 82) Source(35, 33) + SourceIndex(0) +9 >Emitted(30, 83) Source(35, 34) + SourceIndex(0) --- >>> StartFindAction.prototype.run = function (Thing) { 1 >^^^^^^^^^^^^^^^^^^^^ @@ -286,11 +289,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > public run( 5 > Thing:Sample.Thing.ICodeThing -1 >Emitted(28, 21) Source(37, 10) + SourceIndex(0) -2 >Emitted(28, 50) Source(37, 13) + SourceIndex(0) -3 >Emitted(28, 53) Source(37, 3) + SourceIndex(0) -4 >Emitted(28, 63) Source(37, 14) + SourceIndex(0) -5 >Emitted(28, 68) Source(37, 43) + SourceIndex(0) +1 >Emitted(31, 21) Source(37, 10) + SourceIndex(0) +2 >Emitted(31, 50) Source(37, 13) + SourceIndex(0) +3 >Emitted(31, 53) Source(37, 3) + SourceIndex(0) +4 >Emitted(31, 63) Source(37, 14) + SourceIndex(0) +5 >Emitted(31, 68) Source(37, 43) + SourceIndex(0) --- >>> return true; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -303,10 +306,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > return 3 > true 4 > ; -1 >Emitted(29, 25) Source(39, 4) + SourceIndex(0) -2 >Emitted(29, 32) Source(39, 11) + SourceIndex(0) -3 >Emitted(29, 36) Source(39, 15) + SourceIndex(0) -4 >Emitted(29, 37) Source(39, 16) + SourceIndex(0) +1 >Emitted(32, 25) Source(39, 4) + SourceIndex(0) +2 >Emitted(32, 32) Source(39, 11) + SourceIndex(0) +3 >Emitted(32, 36) Source(39, 15) + SourceIndex(0) +4 >Emitted(32, 37) Source(39, 16) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -315,8 +318,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(30, 21) Source(40, 3) + SourceIndex(0) -2 >Emitted(30, 22) Source(40, 4) + SourceIndex(0) +1 >Emitted(33, 21) Source(40, 3) + SourceIndex(0) +2 >Emitted(33, 22) Source(40, 4) + SourceIndex(0) --- >>> return StartFindAction; 1->^^^^^^^^^^^^^^^^^^^^ @@ -324,8 +327,8 @@ sourceFile:recursiveClassReferenceTest.ts 1-> > 2 > } -1->Emitted(31, 21) Source(41, 2) + SourceIndex(0) -2 >Emitted(31, 43) Source(41, 3) + SourceIndex(0) +1->Emitted(34, 21) Source(41, 2) + SourceIndex(0) +2 >Emitted(34, 43) Source(41, 3) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -345,10 +348,10 @@ sourceFile:recursiveClassReferenceTest.ts > return true; > } > } -1 >Emitted(32, 17) Source(41, 2) + SourceIndex(0) -2 >Emitted(32, 18) Source(41, 3) + SourceIndex(0) -3 >Emitted(32, 18) Source(33, 2) + SourceIndex(0) -4 >Emitted(32, 22) Source(41, 3) + SourceIndex(0) +1 >Emitted(35, 17) Source(41, 2) + SourceIndex(0) +2 >Emitted(35, 18) Source(41, 3) + SourceIndex(0) +3 >Emitted(35, 18) Source(33, 2) + SourceIndex(0) +4 >Emitted(35, 22) Source(41, 3) + SourceIndex(0) --- >>> Find.StartFindAction = StartFindAction; 1->^^^^^^^^^^^^^^^^ @@ -368,10 +371,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } 4 > -1->Emitted(33, 17) Source(33, 15) + SourceIndex(0) -2 >Emitted(33, 37) Source(33, 30) + SourceIndex(0) -3 >Emitted(33, 55) Source(41, 3) + SourceIndex(0) -4 >Emitted(33, 56) Source(41, 3) + SourceIndex(0) +1->Emitted(36, 17) Source(33, 15) + SourceIndex(0) +2 >Emitted(36, 37) Source(33, 30) + SourceIndex(0) +3 >Emitted(36, 55) Source(41, 3) + SourceIndex(0) +4 >Emitted(36, 56) Source(41, 3) + SourceIndex(0) --- >>> })(Find = Thing_1.Find || (Thing_1.Find = {})); 1->^^^^^^^^^^^^ @@ -403,15 +406,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(34, 13) Source(42, 1) + SourceIndex(0) -2 >Emitted(34, 14) Source(42, 2) + SourceIndex(0) -3 >Emitted(34, 16) Source(32, 29) + SourceIndex(0) -4 >Emitted(34, 20) Source(32, 33) + SourceIndex(0) -5 >Emitted(34, 23) Source(32, 29) + SourceIndex(0) -6 >Emitted(34, 35) Source(32, 33) + SourceIndex(0) -7 >Emitted(34, 40) Source(32, 29) + SourceIndex(0) -8 >Emitted(34, 52) Source(32, 33) + SourceIndex(0) -9 >Emitted(34, 60) Source(42, 2) + SourceIndex(0) +1->Emitted(37, 13) Source(42, 1) + SourceIndex(0) +2 >Emitted(37, 14) Source(42, 2) + SourceIndex(0) +3 >Emitted(37, 16) Source(32, 29) + SourceIndex(0) +4 >Emitted(37, 20) Source(32, 33) + SourceIndex(0) +5 >Emitted(37, 23) Source(32, 29) + SourceIndex(0) +6 >Emitted(37, 35) Source(32, 33) + SourceIndex(0) +7 >Emitted(37, 40) Source(32, 29) + SourceIndex(0) +8 >Emitted(37, 52) Source(32, 33) + SourceIndex(0) +9 >Emitted(37, 60) Source(42, 2) + SourceIndex(0) --- >>> })(Thing = Actions.Thing || (Actions.Thing = {})); 1 >^^^^^^^^ @@ -443,15 +446,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(35, 9) Source(42, 1) + SourceIndex(0) -2 >Emitted(35, 10) Source(42, 2) + SourceIndex(0) -3 >Emitted(35, 12) Source(32, 23) + SourceIndex(0) -4 >Emitted(35, 17) Source(32, 28) + SourceIndex(0) -5 >Emitted(35, 20) Source(32, 23) + SourceIndex(0) -6 >Emitted(35, 33) Source(32, 28) + SourceIndex(0) -7 >Emitted(35, 38) Source(32, 23) + SourceIndex(0) -8 >Emitted(35, 51) Source(32, 28) + SourceIndex(0) -9 >Emitted(35, 59) Source(42, 2) + SourceIndex(0) +1 >Emitted(38, 9) Source(42, 1) + SourceIndex(0) +2 >Emitted(38, 10) Source(42, 2) + SourceIndex(0) +3 >Emitted(38, 12) Source(32, 23) + SourceIndex(0) +4 >Emitted(38, 17) Source(32, 28) + SourceIndex(0) +5 >Emitted(38, 20) Source(32, 23) + SourceIndex(0) +6 >Emitted(38, 33) Source(32, 28) + SourceIndex(0) +7 >Emitted(38, 38) Source(32, 23) + SourceIndex(0) +8 >Emitted(38, 51) Source(32, 28) + SourceIndex(0) +9 >Emitted(38, 59) Source(42, 2) + SourceIndex(0) --- >>> })(Actions = Sample.Actions || (Sample.Actions = {})); 1->^^^^ @@ -482,15 +485,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(36, 5) Source(42, 1) + SourceIndex(0) -2 >Emitted(36, 6) Source(42, 2) + SourceIndex(0) -3 >Emitted(36, 8) Source(32, 15) + SourceIndex(0) -4 >Emitted(36, 15) Source(32, 22) + SourceIndex(0) -5 >Emitted(36, 18) Source(32, 15) + SourceIndex(0) -6 >Emitted(36, 32) Source(32, 22) + SourceIndex(0) -7 >Emitted(36, 37) Source(32, 15) + SourceIndex(0) -8 >Emitted(36, 51) Source(32, 22) + SourceIndex(0) -9 >Emitted(36, 59) Source(42, 2) + SourceIndex(0) +1->Emitted(39, 5) Source(42, 1) + SourceIndex(0) +2 >Emitted(39, 6) Source(42, 2) + SourceIndex(0) +3 >Emitted(39, 8) Source(32, 15) + SourceIndex(0) +4 >Emitted(39, 15) Source(32, 22) + SourceIndex(0) +5 >Emitted(39, 18) Source(32, 15) + SourceIndex(0) +6 >Emitted(39, 32) Source(32, 22) + SourceIndex(0) +7 >Emitted(39, 37) Source(32, 15) + SourceIndex(0) +8 >Emitted(39, 51) Source(32, 22) + SourceIndex(0) +9 >Emitted(39, 59) Source(42, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -517,13 +520,13 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(37, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(37, 2) Source(42, 2) + SourceIndex(0) -3 >Emitted(37, 4) Source(32, 8) + SourceIndex(0) -4 >Emitted(37, 10) Source(32, 14) + SourceIndex(0) -5 >Emitted(37, 15) Source(32, 8) + SourceIndex(0) -6 >Emitted(37, 21) Source(32, 14) + SourceIndex(0) -7 >Emitted(37, 29) Source(42, 2) + SourceIndex(0) +1 >Emitted(40, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(40, 2) Source(42, 2) + SourceIndex(0) +3 >Emitted(40, 4) Source(32, 8) + SourceIndex(0) +4 >Emitted(40, 10) Source(32, 14) + SourceIndex(0) +5 >Emitted(40, 15) Source(32, 8) + SourceIndex(0) +6 >Emitted(40, 21) Source(32, 14) + SourceIndex(0) +7 >Emitted(40, 29) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1 > @@ -534,9 +537,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 >module 3 > Sample -1 >Emitted(38, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(38, 12) Source(44, 8) + SourceIndex(0) -3 >Emitted(38, 18) Source(44, 14) + SourceIndex(0) +1 >Emitted(41, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(41, 12) Source(44, 8) + SourceIndex(0) +3 >Emitted(41, 18) Source(44, 14) + SourceIndex(0) --- >>> var Thing; 1 >^^^^ @@ -568,10 +571,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(39, 5) Source(44, 15) + SourceIndex(0) -2 >Emitted(39, 9) Source(44, 15) + SourceIndex(0) -3 >Emitted(39, 14) Source(44, 20) + SourceIndex(0) -4 >Emitted(39, 15) Source(64, 2) + SourceIndex(0) +1 >Emitted(42, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(42, 9) Source(44, 15) + SourceIndex(0) +3 >Emitted(42, 14) Source(44, 20) + SourceIndex(0) +4 >Emitted(42, 15) Source(64, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -581,9 +584,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(40, 5) Source(44, 15) + SourceIndex(0) -2 >Emitted(40, 16) Source(44, 15) + SourceIndex(0) -3 >Emitted(40, 21) Source(44, 20) + SourceIndex(0) +1->Emitted(43, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(43, 16) Source(44, 15) + SourceIndex(0) +3 >Emitted(43, 21) Source(44, 20) + SourceIndex(0) --- >>> var Widgets; 1->^^^^^^^^ @@ -615,10 +618,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(41, 9) Source(44, 21) + SourceIndex(0) -2 >Emitted(41, 13) Source(44, 21) + SourceIndex(0) -3 >Emitted(41, 20) Source(44, 28) + SourceIndex(0) -4 >Emitted(41, 21) Source(64, 2) + SourceIndex(0) +1->Emitted(44, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(44, 13) Source(44, 21) + SourceIndex(0) +3 >Emitted(44, 20) Source(44, 28) + SourceIndex(0) +4 >Emitted(44, 21) Source(64, 2) + SourceIndex(0) --- >>> (function (Widgets) { 1->^^^^^^^^ @@ -628,16 +631,16 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Widgets -1->Emitted(42, 9) Source(44, 21) + SourceIndex(0) -2 >Emitted(42, 20) Source(44, 21) + SourceIndex(0) -3 >Emitted(42, 27) Source(44, 28) + SourceIndex(0) +1->Emitted(45, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(45, 20) Source(44, 21) + SourceIndex(0) +3 >Emitted(45, 27) Source(44, 28) + SourceIndex(0) --- >>> var FindWidget = /** @class */ (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(43, 13) Source(45, 2) + SourceIndex(0) +1->Emitted(46, 13) Source(45, 2) + SourceIndex(0) --- >>> function FindWidget(codeThing) { 1->^^^^^^^^^^^^^^^^ @@ -652,9 +655,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > constructor(private 3 > codeThing: Sample.Thing.ICodeThing -1->Emitted(44, 17) Source(50, 3) + SourceIndex(0) -2 >Emitted(44, 37) Source(50, 23) + SourceIndex(0) -3 >Emitted(44, 46) Source(50, 57) + SourceIndex(0) +1->Emitted(47, 17) Source(50, 3) + SourceIndex(0) +2 >Emitted(47, 37) Source(50, 23) + SourceIndex(0) +3 >Emitted(47, 46) Source(50, 57) + SourceIndex(0) --- >>> this.codeThing = codeThing; 1->^^^^^^^^^^^^^^^^^^^^ @@ -667,11 +670,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > codeThing 5 > : Sample.Thing.ICodeThing -1->Emitted(45, 21) Source(50, 23) + SourceIndex(0) -2 >Emitted(45, 35) Source(50, 32) + SourceIndex(0) -3 >Emitted(45, 38) Source(50, 23) + SourceIndex(0) -4 >Emitted(45, 47) Source(50, 32) + SourceIndex(0) -5 >Emitted(45, 48) Source(50, 57) + SourceIndex(0) +1->Emitted(48, 21) Source(50, 23) + SourceIndex(0) +2 >Emitted(48, 35) Source(50, 32) + SourceIndex(0) +3 >Emitted(48, 38) Source(50, 23) + SourceIndex(0) +4 >Emitted(48, 47) Source(50, 32) + SourceIndex(0) +5 >Emitted(48, 48) Source(50, 57) + SourceIndex(0) --- >>> this.domNode = null; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -684,11 +687,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > :any = 4 > null 5 > ; -1 >Emitted(46, 21) Source(49, 11) + SourceIndex(0) -2 >Emitted(46, 33) Source(49, 18) + SourceIndex(0) -3 >Emitted(46, 36) Source(49, 25) + SourceIndex(0) -4 >Emitted(46, 40) Source(49, 29) + SourceIndex(0) -5 >Emitted(46, 41) Source(49, 30) + SourceIndex(0) +1 >Emitted(49, 21) Source(49, 11) + SourceIndex(0) +2 >Emitted(49, 33) Source(49, 18) + SourceIndex(0) +3 >Emitted(49, 36) Source(49, 25) + SourceIndex(0) +4 >Emitted(49, 40) Source(49, 29) + SourceIndex(0) +5 >Emitted(49, 41) Source(49, 30) + SourceIndex(0) --- >>> // scenario 1 1 >^^^^^^^^^^^^^^^^^^^^ @@ -698,8 +701,8 @@ sourceFile:recursiveClassReferenceTest.ts > constructor(private codeThing: Sample.Thing.ICodeThing) { > 2 > // scenario 1 -1 >Emitted(47, 21) Source(51, 7) + SourceIndex(0) -2 >Emitted(47, 34) Source(51, 20) + SourceIndex(0) +1 >Emitted(50, 21) Source(51, 7) + SourceIndex(0) +2 >Emitted(50, 34) Source(51, 20) + SourceIndex(0) --- >>> codeThing.addWidget("addWidget", this); 1->^^^^^^^^^^^^^^^^^^^^ @@ -723,16 +726,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > this 9 > ) 10> ; -1->Emitted(48, 21) Source(52, 7) + SourceIndex(0) -2 >Emitted(48, 30) Source(52, 16) + SourceIndex(0) -3 >Emitted(48, 31) Source(52, 17) + SourceIndex(0) -4 >Emitted(48, 40) Source(52, 26) + SourceIndex(0) -5 >Emitted(48, 41) Source(52, 27) + SourceIndex(0) -6 >Emitted(48, 52) Source(52, 38) + SourceIndex(0) -7 >Emitted(48, 54) Source(52, 40) + SourceIndex(0) -8 >Emitted(48, 58) Source(52, 44) + SourceIndex(0) -9 >Emitted(48, 59) Source(52, 45) + SourceIndex(0) -10>Emitted(48, 60) Source(52, 46) + SourceIndex(0) +1->Emitted(51, 21) Source(52, 7) + SourceIndex(0) +2 >Emitted(51, 30) Source(52, 16) + SourceIndex(0) +3 >Emitted(51, 31) Source(52, 17) + SourceIndex(0) +4 >Emitted(51, 40) Source(52, 26) + SourceIndex(0) +5 >Emitted(51, 41) Source(52, 27) + SourceIndex(0) +6 >Emitted(51, 52) Source(52, 38) + SourceIndex(0) +7 >Emitted(51, 54) Source(52, 40) + SourceIndex(0) +8 >Emitted(51, 58) Source(52, 44) + SourceIndex(0) +9 >Emitted(51, 59) Source(52, 45) + SourceIndex(0) +10>Emitted(51, 60) Source(52, 46) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -741,8 +744,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(49, 17) Source(53, 3) + SourceIndex(0) -2 >Emitted(49, 18) Source(53, 4) + SourceIndex(0) +1 >Emitted(52, 17) Source(53, 3) + SourceIndex(0) +2 >Emitted(52, 18) Source(53, 4) + SourceIndex(0) --- >>> FindWidget.prototype.gar = function (runner) { if (true) { 1->^^^^^^^^^^^^^^^^ @@ -763,15 +766,15 @@ sourceFile:recursiveClassReferenceTest.ts 7 > if ( 8 > true 9 > ) -1->Emitted(50, 17) Source(47, 10) + SourceIndex(0) -2 >Emitted(50, 41) Source(47, 13) + SourceIndex(0) -3 >Emitted(50, 44) Source(47, 3) + SourceIndex(0) -4 >Emitted(50, 54) Source(47, 14) + SourceIndex(0) -5 >Emitted(50, 60) Source(47, 55) + SourceIndex(0) -6 >Emitted(50, 64) Source(47, 59) + SourceIndex(0) -7 >Emitted(50, 68) Source(47, 63) + SourceIndex(0) -8 >Emitted(50, 72) Source(47, 67) + SourceIndex(0) -9 >Emitted(50, 74) Source(47, 69) + SourceIndex(0) +1->Emitted(53, 17) Source(47, 10) + SourceIndex(0) +2 >Emitted(53, 41) Source(47, 13) + SourceIndex(0) +3 >Emitted(53, 44) Source(47, 3) + SourceIndex(0) +4 >Emitted(53, 54) Source(47, 14) + SourceIndex(0) +5 >Emitted(53, 60) Source(47, 55) + SourceIndex(0) +6 >Emitted(53, 64) Source(47, 59) + SourceIndex(0) +7 >Emitted(53, 68) Source(47, 63) + SourceIndex(0) +8 >Emitted(53, 72) Source(47, 67) + SourceIndex(0) +9 >Emitted(53, 74) Source(47, 69) + SourceIndex(0) --- >>> return runner(this); 1 >^^^^^^^^^^^^^^^^^^^^ @@ -788,13 +791,13 @@ sourceFile:recursiveClassReferenceTest.ts 5 > this 6 > ) 7 > ; -1 >Emitted(51, 21) Source(47, 70) + SourceIndex(0) -2 >Emitted(51, 28) Source(47, 77) + SourceIndex(0) -3 >Emitted(51, 34) Source(47, 83) + SourceIndex(0) -4 >Emitted(51, 35) Source(47, 84) + SourceIndex(0) -5 >Emitted(51, 39) Source(47, 88) + SourceIndex(0) -6 >Emitted(51, 40) Source(47, 89) + SourceIndex(0) -7 >Emitted(51, 41) Source(47, 90) + SourceIndex(0) +1 >Emitted(54, 21) Source(47, 70) + SourceIndex(0) +2 >Emitted(54, 28) Source(47, 77) + SourceIndex(0) +3 >Emitted(54, 34) Source(47, 83) + SourceIndex(0) +4 >Emitted(54, 35) Source(47, 84) + SourceIndex(0) +5 >Emitted(54, 39) Source(47, 88) + SourceIndex(0) +6 >Emitted(54, 40) Source(47, 89) + SourceIndex(0) +7 >Emitted(54, 41) Source(47, 90) + SourceIndex(0) --- >>> } }; 1 >^^^^^^^^^^^^^^^^^ @@ -804,9 +807,9 @@ sourceFile:recursiveClassReferenceTest.ts 1 >} 2 > 3 > } -1 >Emitted(52, 18) Source(47, 91) + SourceIndex(0) -2 >Emitted(52, 19) Source(47, 91) + SourceIndex(0) -3 >Emitted(52, 20) Source(47, 92) + SourceIndex(0) +1 >Emitted(55, 18) Source(47, 91) + SourceIndex(0) +2 >Emitted(55, 19) Source(47, 91) + SourceIndex(0) +3 >Emitted(55, 20) Source(47, 92) + SourceIndex(0) --- >>> FindWidget.prototype.getDomNode = function () { 1->^^^^^^^^^^^^^^^^ @@ -823,9 +826,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getDomNode 3 > -1->Emitted(53, 17) Source(55, 10) + SourceIndex(0) -2 >Emitted(53, 48) Source(55, 20) + SourceIndex(0) -3 >Emitted(53, 51) Source(55, 3) + SourceIndex(0) +1->Emitted(56, 17) Source(55, 10) + SourceIndex(0) +2 >Emitted(56, 48) Source(55, 20) + SourceIndex(0) +3 >Emitted(56, 51) Source(55, 3) + SourceIndex(0) --- >>> return domNode; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -837,10 +840,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > return 3 > domNode 4 > ; -1 >Emitted(54, 21) Source(56, 4) + SourceIndex(0) -2 >Emitted(54, 28) Source(56, 11) + SourceIndex(0) -3 >Emitted(54, 35) Source(56, 18) + SourceIndex(0) -4 >Emitted(54, 36) Source(56, 19) + SourceIndex(0) +1 >Emitted(57, 21) Source(56, 4) + SourceIndex(0) +2 >Emitted(57, 28) Source(56, 11) + SourceIndex(0) +3 >Emitted(57, 35) Source(56, 18) + SourceIndex(0) +4 >Emitted(57, 36) Source(56, 19) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^ @@ -849,8 +852,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(55, 17) Source(57, 3) + SourceIndex(0) -2 >Emitted(55, 18) Source(57, 4) + SourceIndex(0) +1 >Emitted(58, 17) Source(57, 3) + SourceIndex(0) +2 >Emitted(58, 18) Source(57, 4) + SourceIndex(0) --- >>> FindWidget.prototype.destroy = function () { 1->^^^^^^^^^^^^^^^^ @@ -861,9 +864,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > destroy 3 > -1->Emitted(56, 17) Source(59, 10) + SourceIndex(0) -2 >Emitted(56, 45) Source(59, 17) + SourceIndex(0) -3 >Emitted(56, 48) Source(59, 3) + SourceIndex(0) +1->Emitted(59, 17) Source(59, 10) + SourceIndex(0) +2 >Emitted(59, 45) Source(59, 17) + SourceIndex(0) +3 >Emitted(59, 48) Source(59, 3) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^ @@ -873,8 +876,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1 >Emitted(57, 17) Source(61, 3) + SourceIndex(0) -2 >Emitted(57, 18) Source(61, 4) + SourceIndex(0) +1 >Emitted(60, 17) Source(61, 3) + SourceIndex(0) +2 >Emitted(60, 18) Source(61, 4) + SourceIndex(0) --- >>> return FindWidget; 1->^^^^^^^^^^^^^^^^ @@ -883,8 +886,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(58, 17) Source(63, 2) + SourceIndex(0) -2 >Emitted(58, 34) Source(63, 3) + SourceIndex(0) +1->Emitted(61, 17) Source(63, 2) + SourceIndex(0) +2 >Emitted(61, 34) Source(63, 3) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -914,10 +917,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > > } -1 >Emitted(59, 13) Source(63, 2) + SourceIndex(0) -2 >Emitted(59, 14) Source(63, 3) + SourceIndex(0) -3 >Emitted(59, 14) Source(45, 2) + SourceIndex(0) -4 >Emitted(59, 18) Source(63, 3) + SourceIndex(0) +1 >Emitted(62, 13) Source(63, 2) + SourceIndex(0) +2 >Emitted(62, 14) Source(63, 3) + SourceIndex(0) +3 >Emitted(62, 14) Source(45, 2) + SourceIndex(0) +4 >Emitted(62, 18) Source(63, 3) + SourceIndex(0) --- >>> Widgets.FindWidget = FindWidget; 1->^^^^^^^^^^^^ @@ -947,10 +950,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } 4 > -1->Emitted(60, 13) Source(45, 15) + SourceIndex(0) -2 >Emitted(60, 31) Source(45, 25) + SourceIndex(0) -3 >Emitted(60, 44) Source(63, 3) + SourceIndex(0) -4 >Emitted(60, 45) Source(63, 3) + SourceIndex(0) +1->Emitted(63, 13) Source(45, 15) + SourceIndex(0) +2 >Emitted(63, 31) Source(45, 25) + SourceIndex(0) +3 >Emitted(63, 44) Source(63, 3) + SourceIndex(0) +4 >Emitted(63, 45) Source(63, 3) + SourceIndex(0) --- >>> })(Widgets = Thing.Widgets || (Thing.Widgets = {})); 1->^^^^^^^^ @@ -992,15 +995,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(61, 9) Source(64, 1) + SourceIndex(0) -2 >Emitted(61, 10) Source(64, 2) + SourceIndex(0) -3 >Emitted(61, 12) Source(44, 21) + SourceIndex(0) -4 >Emitted(61, 19) Source(44, 28) + SourceIndex(0) -5 >Emitted(61, 22) Source(44, 21) + SourceIndex(0) -6 >Emitted(61, 35) Source(44, 28) + SourceIndex(0) -7 >Emitted(61, 40) Source(44, 21) + SourceIndex(0) -8 >Emitted(61, 53) Source(44, 28) + SourceIndex(0) -9 >Emitted(61, 61) Source(64, 2) + SourceIndex(0) +1->Emitted(64, 9) Source(64, 1) + SourceIndex(0) +2 >Emitted(64, 10) Source(64, 2) + SourceIndex(0) +3 >Emitted(64, 12) Source(44, 21) + SourceIndex(0) +4 >Emitted(64, 19) Source(44, 28) + SourceIndex(0) +5 >Emitted(64, 22) Source(44, 21) + SourceIndex(0) +6 >Emitted(64, 35) Source(44, 28) + SourceIndex(0) +7 >Emitted(64, 40) Source(44, 21) + SourceIndex(0) +8 >Emitted(64, 53) Source(44, 28) + SourceIndex(0) +9 >Emitted(64, 61) Source(64, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -1041,15 +1044,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(62, 5) Source(64, 1) + SourceIndex(0) -2 >Emitted(62, 6) Source(64, 2) + SourceIndex(0) -3 >Emitted(62, 8) Source(44, 15) + SourceIndex(0) -4 >Emitted(62, 13) Source(44, 20) + SourceIndex(0) -5 >Emitted(62, 16) Source(44, 15) + SourceIndex(0) -6 >Emitted(62, 28) Source(44, 20) + SourceIndex(0) -7 >Emitted(62, 33) Source(44, 15) + SourceIndex(0) -8 >Emitted(62, 45) Source(44, 20) + SourceIndex(0) -9 >Emitted(62, 53) Source(64, 2) + SourceIndex(0) +1 >Emitted(65, 5) Source(64, 1) + SourceIndex(0) +2 >Emitted(65, 6) Source(64, 2) + SourceIndex(0) +3 >Emitted(65, 8) Source(44, 15) + SourceIndex(0) +4 >Emitted(65, 13) Source(44, 20) + SourceIndex(0) +5 >Emitted(65, 16) Source(44, 15) + SourceIndex(0) +6 >Emitted(65, 28) Source(44, 20) + SourceIndex(0) +7 >Emitted(65, 33) Source(44, 15) + SourceIndex(0) +8 >Emitted(65, 45) Source(44, 20) + SourceIndex(0) +9 >Emitted(65, 53) Source(64, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -1087,13 +1090,13 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(63, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(63, 2) Source(64, 2) + SourceIndex(0) -3 >Emitted(63, 4) Source(44, 8) + SourceIndex(0) -4 >Emitted(63, 10) Source(44, 14) + SourceIndex(0) -5 >Emitted(63, 15) Source(44, 8) + SourceIndex(0) -6 >Emitted(63, 21) Source(44, 14) + SourceIndex(0) -7 >Emitted(63, 29) Source(64, 2) + SourceIndex(0) +1 >Emitted(66, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(66, 2) Source(64, 2) + SourceIndex(0) +3 >Emitted(66, 4) Source(44, 8) + SourceIndex(0) +4 >Emitted(66, 10) Source(44, 14) + SourceIndex(0) +5 >Emitted(66, 15) Source(44, 8) + SourceIndex(0) +6 >Emitted(66, 21) Source(44, 14) + SourceIndex(0) +7 >Emitted(66, 29) Source(64, 2) + SourceIndex(0) --- >>>var AbstractMode = /** @class */ (function () { 1-> @@ -1102,13 +1105,13 @@ sourceFile:recursiveClassReferenceTest.ts > >interface IMode { getInitialState(): IState;} > -1->Emitted(64, 1) Source(67, 1) + SourceIndex(0) +1->Emitted(67, 1) Source(67, 1) + SourceIndex(0) --- >>> function AbstractMode() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(65, 5) Source(67, 1) + SourceIndex(0) +1->Emitted(68, 5) Source(67, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1116,8 +1119,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->class AbstractMode implements IMode { public getInitialState(): IState { return null;} 2 > } -1->Emitted(66, 5) Source(67, 88) + SourceIndex(0) -2 >Emitted(66, 6) Source(67, 89) + SourceIndex(0) +1->Emitted(69, 5) Source(67, 88) + SourceIndex(0) +2 >Emitted(69, 6) Source(67, 89) + SourceIndex(0) --- >>> AbstractMode.prototype.getInitialState = function () { return null; }; 1->^^^^ @@ -1138,23 +1141,23 @@ sourceFile:recursiveClassReferenceTest.ts 7 > ; 8 > 9 > } -1->Emitted(67, 5) Source(67, 46) + SourceIndex(0) -2 >Emitted(67, 43) Source(67, 61) + SourceIndex(0) -3 >Emitted(67, 46) Source(67, 39) + SourceIndex(0) -4 >Emitted(67, 60) Source(67, 74) + SourceIndex(0) -5 >Emitted(67, 67) Source(67, 81) + SourceIndex(0) -6 >Emitted(67, 71) Source(67, 85) + SourceIndex(0) -7 >Emitted(67, 72) Source(67, 86) + SourceIndex(0) -8 >Emitted(67, 73) Source(67, 86) + SourceIndex(0) -9 >Emitted(67, 74) Source(67, 87) + SourceIndex(0) +1->Emitted(70, 5) Source(67, 46) + SourceIndex(0) +2 >Emitted(70, 43) Source(67, 61) + SourceIndex(0) +3 >Emitted(70, 46) Source(67, 39) + SourceIndex(0) +4 >Emitted(70, 60) Source(67, 74) + SourceIndex(0) +5 >Emitted(70, 67) Source(67, 81) + SourceIndex(0) +6 >Emitted(70, 71) Source(67, 85) + SourceIndex(0) +7 >Emitted(70, 72) Source(67, 86) + SourceIndex(0) +8 >Emitted(70, 73) Source(67, 86) + SourceIndex(0) +9 >Emitted(70, 74) Source(67, 87) + SourceIndex(0) --- >>> return AbstractMode; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(68, 5) Source(67, 88) + SourceIndex(0) -2 >Emitted(68, 24) Source(67, 89) + SourceIndex(0) +1 >Emitted(71, 5) Source(67, 88) + SourceIndex(0) +2 >Emitted(71, 24) Source(67, 89) + SourceIndex(0) --- >>>}()); 1 > @@ -1166,10 +1169,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 >} 3 > 4 > class AbstractMode implements IMode { public getInitialState(): IState { return null;} } -1 >Emitted(69, 1) Source(67, 88) + SourceIndex(0) -2 >Emitted(69, 2) Source(67, 89) + SourceIndex(0) -3 >Emitted(69, 2) Source(67, 1) + SourceIndex(0) -4 >Emitted(69, 6) Source(67, 89) + SourceIndex(0) +1 >Emitted(72, 1) Source(67, 88) + SourceIndex(0) +2 >Emitted(72, 2) Source(67, 89) + SourceIndex(0) +3 >Emitted(72, 2) Source(67, 1) + SourceIndex(0) +4 >Emitted(72, 6) Source(67, 89) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -1187,9 +1190,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 >module 3 > Sample -1->Emitted(70, 1) Source(76, 1) + SourceIndex(0) -2 >Emitted(70, 12) Source(76, 8) + SourceIndex(0) -3 >Emitted(70, 18) Source(76, 14) + SourceIndex(0) +1->Emitted(73, 1) Source(76, 1) + SourceIndex(0) +2 >Emitted(73, 12) Source(76, 8) + SourceIndex(0) +3 >Emitted(73, 18) Source(76, 14) + SourceIndex(0) --- >>> var Thing; 1 >^^^^ @@ -1225,10 +1228,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(71, 5) Source(76, 15) + SourceIndex(0) -2 >Emitted(71, 9) Source(76, 15) + SourceIndex(0) -3 >Emitted(71, 14) Source(76, 20) + SourceIndex(0) -4 >Emitted(71, 15) Source(100, 2) + SourceIndex(0) +1 >Emitted(74, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(74, 9) Source(76, 15) + SourceIndex(0) +3 >Emitted(74, 14) Source(76, 20) + SourceIndex(0) +4 >Emitted(74, 15) Source(100, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -1238,9 +1241,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(72, 5) Source(76, 15) + SourceIndex(0) -2 >Emitted(72, 16) Source(76, 15) + SourceIndex(0) -3 >Emitted(72, 21) Source(76, 20) + SourceIndex(0) +1->Emitted(75, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(75, 16) Source(76, 15) + SourceIndex(0) +3 >Emitted(75, 21) Source(76, 20) + SourceIndex(0) --- >>> var Languages; 1->^^^^^^^^ @@ -1276,10 +1279,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(73, 9) Source(76, 21) + SourceIndex(0) -2 >Emitted(73, 13) Source(76, 21) + SourceIndex(0) -3 >Emitted(73, 22) Source(76, 30) + SourceIndex(0) -4 >Emitted(73, 23) Source(100, 2) + SourceIndex(0) +1->Emitted(76, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(76, 13) Source(76, 21) + SourceIndex(0) +3 >Emitted(76, 22) Source(76, 30) + SourceIndex(0) +4 >Emitted(76, 23) Source(100, 2) + SourceIndex(0) --- >>> (function (Languages) { 1->^^^^^^^^ @@ -1288,9 +1291,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Languages -1->Emitted(74, 9) Source(76, 21) + SourceIndex(0) -2 >Emitted(74, 20) Source(76, 21) + SourceIndex(0) -3 >Emitted(74, 29) Source(76, 30) + SourceIndex(0) +1->Emitted(77, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(77, 20) Source(76, 21) + SourceIndex(0) +3 >Emitted(77, 29) Source(76, 30) + SourceIndex(0) --- >>> var PlainText; 1 >^^^^^^^^^^^^ @@ -1326,10 +1329,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(75, 13) Source(76, 31) + SourceIndex(0) -2 >Emitted(75, 17) Source(76, 31) + SourceIndex(0) -3 >Emitted(75, 26) Source(76, 40) + SourceIndex(0) -4 >Emitted(75, 27) Source(100, 2) + SourceIndex(0) +1 >Emitted(78, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(78, 17) Source(76, 31) + SourceIndex(0) +3 >Emitted(78, 26) Source(76, 40) + SourceIndex(0) +4 >Emitted(78, 27) Source(100, 2) + SourceIndex(0) --- >>> (function (PlainText) { 1->^^^^^^^^^^^^ @@ -1339,9 +1342,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > PlainText -1->Emitted(76, 13) Source(76, 31) + SourceIndex(0) -2 >Emitted(76, 24) Source(76, 31) + SourceIndex(0) -3 >Emitted(76, 33) Source(76, 40) + SourceIndex(0) +1->Emitted(79, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(79, 24) Source(76, 31) + SourceIndex(0) +3 >Emitted(79, 33) Source(76, 40) + SourceIndex(0) --- >>> var State = /** @class */ (function () { 1->^^^^^^^^^^^^^^^^ @@ -1349,7 +1352,7 @@ sourceFile:recursiveClassReferenceTest.ts 1-> { > > -1->Emitted(77, 17) Source(78, 2) + SourceIndex(0) +1->Emitted(80, 17) Source(78, 2) + SourceIndex(0) --- >>> function State(mode) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1360,9 +1363,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > constructor(private 3 > mode: IMode -1->Emitted(78, 21) Source(79, 9) + SourceIndex(0) -2 >Emitted(78, 36) Source(79, 29) + SourceIndex(0) -3 >Emitted(78, 40) Source(79, 40) + SourceIndex(0) +1->Emitted(81, 21) Source(79, 9) + SourceIndex(0) +2 >Emitted(81, 36) Source(79, 29) + SourceIndex(0) +3 >Emitted(81, 40) Source(79, 40) + SourceIndex(0) --- >>> this.mode = mode; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1375,11 +1378,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > mode 5 > : IMode -1->Emitted(79, 25) Source(79, 29) + SourceIndex(0) -2 >Emitted(79, 34) Source(79, 33) + SourceIndex(0) -3 >Emitted(79, 37) Source(79, 29) + SourceIndex(0) -4 >Emitted(79, 41) Source(79, 33) + SourceIndex(0) -5 >Emitted(79, 42) Source(79, 40) + SourceIndex(0) +1->Emitted(82, 25) Source(79, 29) + SourceIndex(0) +2 >Emitted(82, 34) Source(79, 33) + SourceIndex(0) +3 >Emitted(82, 37) Source(79, 29) + SourceIndex(0) +4 >Emitted(82, 41) Source(79, 33) + SourceIndex(0) +5 >Emitted(82, 42) Source(79, 40) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1387,8 +1390,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 > } -1 >Emitted(80, 21) Source(79, 44) + SourceIndex(0) -2 >Emitted(80, 22) Source(79, 45) + SourceIndex(0) +1 >Emitted(83, 21) Source(79, 44) + SourceIndex(0) +2 >Emitted(83, 22) Source(79, 45) + SourceIndex(0) --- >>> State.prototype.clone = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1398,9 +1401,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > clone 3 > -1->Emitted(81, 21) Source(80, 10) + SourceIndex(0) -2 >Emitted(81, 42) Source(80, 15) + SourceIndex(0) -3 >Emitted(81, 45) Source(80, 3) + SourceIndex(0) +1->Emitted(84, 21) Source(80, 10) + SourceIndex(0) +2 >Emitted(84, 42) Source(80, 15) + SourceIndex(0) +3 >Emitted(84, 45) Source(80, 3) + SourceIndex(0) --- >>> return this; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1412,10 +1415,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > return 3 > this 4 > ; -1 >Emitted(82, 25) Source(81, 4) + SourceIndex(0) -2 >Emitted(82, 32) Source(81, 11) + SourceIndex(0) -3 >Emitted(82, 36) Source(81, 15) + SourceIndex(0) -4 >Emitted(82, 37) Source(81, 16) + SourceIndex(0) +1 >Emitted(85, 25) Source(81, 4) + SourceIndex(0) +2 >Emitted(85, 32) Source(81, 11) + SourceIndex(0) +3 >Emitted(85, 36) Source(81, 15) + SourceIndex(0) +4 >Emitted(85, 37) Source(81, 16) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1424,8 +1427,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(83, 21) Source(82, 3) + SourceIndex(0) -2 >Emitted(83, 22) Source(82, 4) + SourceIndex(0) +1 >Emitted(86, 21) Source(82, 3) + SourceIndex(0) +2 >Emitted(86, 22) Source(82, 4) + SourceIndex(0) --- >>> State.prototype.equals = function (other) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1440,11 +1443,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > public equals( 5 > other:IState -1->Emitted(84, 21) Source(84, 10) + SourceIndex(0) -2 >Emitted(84, 43) Source(84, 16) + SourceIndex(0) -3 >Emitted(84, 46) Source(84, 3) + SourceIndex(0) -4 >Emitted(84, 56) Source(84, 17) + SourceIndex(0) -5 >Emitted(84, 61) Source(84, 29) + SourceIndex(0) +1->Emitted(87, 21) Source(84, 10) + SourceIndex(0) +2 >Emitted(87, 43) Source(84, 16) + SourceIndex(0) +3 >Emitted(87, 46) Source(84, 3) + SourceIndex(0) +4 >Emitted(87, 56) Source(84, 17) + SourceIndex(0) +5 >Emitted(87, 61) Source(84, 29) + SourceIndex(0) --- >>> return this === other; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1460,12 +1463,12 @@ sourceFile:recursiveClassReferenceTest.ts 4 > === 5 > other 6 > ; -1 >Emitted(85, 25) Source(85, 4) + SourceIndex(0) -2 >Emitted(85, 32) Source(85, 11) + SourceIndex(0) -3 >Emitted(85, 36) Source(85, 15) + SourceIndex(0) -4 >Emitted(85, 41) Source(85, 20) + SourceIndex(0) -5 >Emitted(85, 46) Source(85, 25) + SourceIndex(0) -6 >Emitted(85, 47) Source(85, 26) + SourceIndex(0) +1 >Emitted(88, 25) Source(85, 4) + SourceIndex(0) +2 >Emitted(88, 32) Source(85, 11) + SourceIndex(0) +3 >Emitted(88, 36) Source(85, 15) + SourceIndex(0) +4 >Emitted(88, 41) Source(85, 20) + SourceIndex(0) +5 >Emitted(88, 46) Source(85, 25) + SourceIndex(0) +6 >Emitted(88, 47) Source(85, 26) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1474,8 +1477,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(86, 21) Source(86, 3) + SourceIndex(0) -2 >Emitted(86, 22) Source(86, 4) + SourceIndex(0) +1 >Emitted(89, 21) Source(86, 3) + SourceIndex(0) +2 >Emitted(89, 22) Source(86, 4) + SourceIndex(0) --- >>> State.prototype.getMode = function () { return mode; }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1498,15 +1501,15 @@ sourceFile:recursiveClassReferenceTest.ts 7 > ; 8 > 9 > } -1->Emitted(87, 21) Source(88, 10) + SourceIndex(0) -2 >Emitted(87, 44) Source(88, 17) + SourceIndex(0) -3 >Emitted(87, 47) Source(88, 3) + SourceIndex(0) -4 >Emitted(87, 61) Source(88, 29) + SourceIndex(0) -5 >Emitted(87, 68) Source(88, 36) + SourceIndex(0) -6 >Emitted(87, 72) Source(88, 40) + SourceIndex(0) -7 >Emitted(87, 73) Source(88, 41) + SourceIndex(0) -8 >Emitted(87, 74) Source(88, 42) + SourceIndex(0) -9 >Emitted(87, 75) Source(88, 43) + SourceIndex(0) +1->Emitted(90, 21) Source(88, 10) + SourceIndex(0) +2 >Emitted(90, 44) Source(88, 17) + SourceIndex(0) +3 >Emitted(90, 47) Source(88, 3) + SourceIndex(0) +4 >Emitted(90, 61) Source(88, 29) + SourceIndex(0) +5 >Emitted(90, 68) Source(88, 36) + SourceIndex(0) +6 >Emitted(90, 72) Source(88, 40) + SourceIndex(0) +7 >Emitted(90, 73) Source(88, 41) + SourceIndex(0) +8 >Emitted(90, 74) Source(88, 42) + SourceIndex(0) +9 >Emitted(90, 75) Source(88, 43) + SourceIndex(0) --- >>> return State; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1514,8 +1517,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(88, 21) Source(89, 2) + SourceIndex(0) -2 >Emitted(88, 33) Source(89, 3) + SourceIndex(0) +1 >Emitted(91, 21) Source(89, 2) + SourceIndex(0) +2 >Emitted(91, 33) Source(89, 3) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -1538,10 +1541,10 @@ sourceFile:recursiveClassReferenceTest.ts > > public getMode(): IMode { return mode; } > } -1 >Emitted(89, 17) Source(89, 2) + SourceIndex(0) -2 >Emitted(89, 18) Source(89, 3) + SourceIndex(0) -3 >Emitted(89, 18) Source(78, 2) + SourceIndex(0) -4 >Emitted(89, 22) Source(89, 3) + SourceIndex(0) +1 >Emitted(92, 17) Source(89, 2) + SourceIndex(0) +2 >Emitted(92, 18) Source(89, 3) + SourceIndex(0) +3 >Emitted(92, 18) Source(78, 2) + SourceIndex(0) +4 >Emitted(92, 22) Source(89, 3) + SourceIndex(0) --- >>> PlainText.State = State; 1->^^^^^^^^^^^^^^^^ @@ -1564,10 +1567,10 @@ sourceFile:recursiveClassReferenceTest.ts > public getMode(): IMode { return mode; } > } 4 > -1->Emitted(90, 17) Source(78, 15) + SourceIndex(0) -2 >Emitted(90, 32) Source(78, 20) + SourceIndex(0) -3 >Emitted(90, 40) Source(89, 3) + SourceIndex(0) -4 >Emitted(90, 41) Source(89, 3) + SourceIndex(0) +1->Emitted(93, 17) Source(78, 15) + SourceIndex(0) +2 >Emitted(93, 32) Source(78, 20) + SourceIndex(0) +3 >Emitted(93, 40) Source(89, 3) + SourceIndex(0) +4 >Emitted(93, 41) Source(89, 3) + SourceIndex(0) --- >>> var Mode = /** @class */ (function (_super) { 1->^^^^^^^^^^^^^^^^ @@ -1575,21 +1578,21 @@ sourceFile:recursiveClassReferenceTest.ts 1-> > > -1->Emitted(91, 17) Source(91, 2) + SourceIndex(0) +1->Emitted(94, 17) Source(91, 2) + SourceIndex(0) --- >>> __extends(Mode, _super); 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1->export class Mode extends 2 > AbstractMode -1->Emitted(92, 21) Source(91, 28) + SourceIndex(0) -2 >Emitted(92, 45) Source(91, 40) + SourceIndex(0) +1->Emitted(95, 21) Source(91, 28) + SourceIndex(0) +2 >Emitted(95, 45) Source(91, 40) + SourceIndex(0) --- >>> function Mode() { 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(93, 21) Source(91, 2) + SourceIndex(0) +1 >Emitted(96, 21) Source(91, 2) + SourceIndex(0) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -1606,8 +1609,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(95, 21) Source(99, 2) + SourceIndex(0) -2 >Emitted(95, 22) Source(99, 3) + SourceIndex(0) +1->Emitted(98, 21) Source(99, 2) + SourceIndex(0) +2 >Emitted(98, 22) Source(99, 3) + SourceIndex(0) --- >>> // scenario 2 1->^^^^^^^^^^^^^^^^^^^^ @@ -1615,8 +1618,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > // scenario 2 -1->Emitted(96, 21) Source(93, 3) + SourceIndex(0) -2 >Emitted(96, 34) Source(93, 16) + SourceIndex(0) +1->Emitted(99, 21) Source(93, 3) + SourceIndex(0) +2 >Emitted(99, 34) Source(93, 16) + SourceIndex(0) --- >>> Mode.prototype.getInitialState = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1626,9 +1629,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getInitialState 3 > -1->Emitted(97, 21) Source(94, 10) + SourceIndex(0) -2 >Emitted(97, 51) Source(94, 25) + SourceIndex(0) -3 >Emitted(97, 54) Source(94, 3) + SourceIndex(0) +1->Emitted(100, 21) Source(94, 10) + SourceIndex(0) +2 >Emitted(100, 51) Source(94, 25) + SourceIndex(0) +3 >Emitted(100, 54) Source(94, 3) + SourceIndex(0) --- >>> return new State(self); 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1648,14 +1651,14 @@ sourceFile:recursiveClassReferenceTest.ts 6 > self 7 > ) 8 > ; -1 >Emitted(98, 25) Source(95, 4) + SourceIndex(0) -2 >Emitted(98, 32) Source(95, 11) + SourceIndex(0) -3 >Emitted(98, 36) Source(95, 15) + SourceIndex(0) -4 >Emitted(98, 41) Source(95, 20) + SourceIndex(0) -5 >Emitted(98, 42) Source(95, 21) + SourceIndex(0) -6 >Emitted(98, 46) Source(95, 25) + SourceIndex(0) -7 >Emitted(98, 47) Source(95, 26) + SourceIndex(0) -8 >Emitted(98, 48) Source(95, 27) + SourceIndex(0) +1 >Emitted(101, 25) Source(95, 4) + SourceIndex(0) +2 >Emitted(101, 32) Source(95, 11) + SourceIndex(0) +3 >Emitted(101, 36) Source(95, 15) + SourceIndex(0) +4 >Emitted(101, 41) Source(95, 20) + SourceIndex(0) +5 >Emitted(101, 42) Source(95, 21) + SourceIndex(0) +6 >Emitted(101, 46) Source(95, 25) + SourceIndex(0) +7 >Emitted(101, 47) Source(95, 26) + SourceIndex(0) +8 >Emitted(101, 48) Source(95, 27) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1664,8 +1667,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(99, 21) Source(96, 3) + SourceIndex(0) -2 >Emitted(99, 22) Source(96, 4) + SourceIndex(0) +1 >Emitted(102, 21) Source(96, 3) + SourceIndex(0) +2 >Emitted(102, 22) Source(96, 4) + SourceIndex(0) --- >>> return Mode; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1676,8 +1679,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(100, 21) Source(99, 2) + SourceIndex(0) -2 >Emitted(100, 32) Source(99, 3) + SourceIndex(0) +1->Emitted(103, 21) Source(99, 2) + SourceIndex(0) +2 >Emitted(103, 32) Source(99, 3) + SourceIndex(0) --- >>> }(AbstractMode)); 1->^^^^^^^^^^^^^^^^ @@ -1701,12 +1704,12 @@ sourceFile:recursiveClassReferenceTest.ts > > > } -1->Emitted(101, 17) Source(99, 2) + SourceIndex(0) -2 >Emitted(101, 18) Source(99, 3) + SourceIndex(0) -3 >Emitted(101, 18) Source(91, 2) + SourceIndex(0) -4 >Emitted(101, 19) Source(91, 28) + SourceIndex(0) -5 >Emitted(101, 31) Source(91, 40) + SourceIndex(0) -6 >Emitted(101, 34) Source(99, 3) + SourceIndex(0) +1->Emitted(104, 17) Source(99, 2) + SourceIndex(0) +2 >Emitted(104, 18) Source(99, 3) + SourceIndex(0) +3 >Emitted(104, 18) Source(91, 2) + SourceIndex(0) +4 >Emitted(104, 19) Source(91, 28) + SourceIndex(0) +5 >Emitted(104, 31) Source(91, 40) + SourceIndex(0) +6 >Emitted(104, 34) Source(99, 3) + SourceIndex(0) --- >>> PlainText.Mode = Mode; 1->^^^^^^^^^^^^^^^^ @@ -1726,10 +1729,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } 4 > -1->Emitted(102, 17) Source(91, 15) + SourceIndex(0) -2 >Emitted(102, 31) Source(91, 19) + SourceIndex(0) -3 >Emitted(102, 38) Source(99, 3) + SourceIndex(0) -4 >Emitted(102, 39) Source(99, 3) + SourceIndex(0) +1->Emitted(105, 17) Source(91, 15) + SourceIndex(0) +2 >Emitted(105, 31) Source(91, 19) + SourceIndex(0) +3 >Emitted(105, 38) Source(99, 3) + SourceIndex(0) +4 >Emitted(105, 39) Source(99, 3) + SourceIndex(0) --- >>> })(PlainText = Languages.PlainText || (Languages.PlainText = {})); 1->^^^^^^^^^^^^ @@ -1775,15 +1778,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(103, 13) Source(100, 1) + SourceIndex(0) -2 >Emitted(103, 14) Source(100, 2) + SourceIndex(0) -3 >Emitted(103, 16) Source(76, 31) + SourceIndex(0) -4 >Emitted(103, 25) Source(76, 40) + SourceIndex(0) -5 >Emitted(103, 28) Source(76, 31) + SourceIndex(0) -6 >Emitted(103, 47) Source(76, 40) + SourceIndex(0) -7 >Emitted(103, 52) Source(76, 31) + SourceIndex(0) -8 >Emitted(103, 71) Source(76, 40) + SourceIndex(0) -9 >Emitted(103, 79) Source(100, 2) + SourceIndex(0) +1->Emitted(106, 13) Source(100, 1) + SourceIndex(0) +2 >Emitted(106, 14) Source(100, 2) + SourceIndex(0) +3 >Emitted(106, 16) Source(76, 31) + SourceIndex(0) +4 >Emitted(106, 25) Source(76, 40) + SourceIndex(0) +5 >Emitted(106, 28) Source(76, 31) + SourceIndex(0) +6 >Emitted(106, 47) Source(76, 40) + SourceIndex(0) +7 >Emitted(106, 52) Source(76, 31) + SourceIndex(0) +8 >Emitted(106, 71) Source(76, 40) + SourceIndex(0) +9 >Emitted(106, 79) Source(100, 2) + SourceIndex(0) --- >>> })(Languages = Thing.Languages || (Thing.Languages = {})); 1 >^^^^^^^^ @@ -1828,15 +1831,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(104, 9) Source(100, 1) + SourceIndex(0) -2 >Emitted(104, 10) Source(100, 2) + SourceIndex(0) -3 >Emitted(104, 12) Source(76, 21) + SourceIndex(0) -4 >Emitted(104, 21) Source(76, 30) + SourceIndex(0) -5 >Emitted(104, 24) Source(76, 21) + SourceIndex(0) -6 >Emitted(104, 39) Source(76, 30) + SourceIndex(0) -7 >Emitted(104, 44) Source(76, 21) + SourceIndex(0) -8 >Emitted(104, 59) Source(76, 30) + SourceIndex(0) -9 >Emitted(104, 67) Source(100, 2) + SourceIndex(0) +1 >Emitted(107, 9) Source(100, 1) + SourceIndex(0) +2 >Emitted(107, 10) Source(100, 2) + SourceIndex(0) +3 >Emitted(107, 12) Source(76, 21) + SourceIndex(0) +4 >Emitted(107, 21) Source(76, 30) + SourceIndex(0) +5 >Emitted(107, 24) Source(76, 21) + SourceIndex(0) +6 >Emitted(107, 39) Source(76, 30) + SourceIndex(0) +7 >Emitted(107, 44) Source(76, 21) + SourceIndex(0) +8 >Emitted(107, 59) Source(76, 30) + SourceIndex(0) +9 >Emitted(107, 67) Source(100, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -1881,15 +1884,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(105, 5) Source(100, 1) + SourceIndex(0) -2 >Emitted(105, 6) Source(100, 2) + SourceIndex(0) -3 >Emitted(105, 8) Source(76, 15) + SourceIndex(0) -4 >Emitted(105, 13) Source(76, 20) + SourceIndex(0) -5 >Emitted(105, 16) Source(76, 15) + SourceIndex(0) -6 >Emitted(105, 28) Source(76, 20) + SourceIndex(0) -7 >Emitted(105, 33) Source(76, 15) + SourceIndex(0) -8 >Emitted(105, 45) Source(76, 20) + SourceIndex(0) -9 >Emitted(105, 53) Source(100, 2) + SourceIndex(0) +1 >Emitted(108, 5) Source(100, 1) + SourceIndex(0) +2 >Emitted(108, 6) Source(100, 2) + SourceIndex(0) +3 >Emitted(108, 8) Source(76, 15) + SourceIndex(0) +4 >Emitted(108, 13) Source(76, 20) + SourceIndex(0) +5 >Emitted(108, 16) Source(76, 15) + SourceIndex(0) +6 >Emitted(108, 28) Source(76, 20) + SourceIndex(0) +7 >Emitted(108, 33) Source(76, 15) + SourceIndex(0) +8 >Emitted(108, 45) Source(76, 20) + SourceIndex(0) +9 >Emitted(108, 53) Source(100, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -1931,12 +1934,12 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(106, 1) Source(100, 1) + SourceIndex(0) -2 >Emitted(106, 2) Source(100, 2) + SourceIndex(0) -3 >Emitted(106, 4) Source(76, 8) + SourceIndex(0) -4 >Emitted(106, 10) Source(76, 14) + SourceIndex(0) -5 >Emitted(106, 15) Source(76, 8) + SourceIndex(0) -6 >Emitted(106, 21) Source(76, 14) + SourceIndex(0) -7 >Emitted(106, 29) Source(100, 2) + SourceIndex(0) +1 >Emitted(109, 1) Source(100, 1) + SourceIndex(0) +2 >Emitted(109, 2) Source(100, 2) + SourceIndex(0) +3 >Emitted(109, 4) Source(76, 8) + SourceIndex(0) +4 >Emitted(109, 10) Source(76, 14) + SourceIndex(0) +5 >Emitted(109, 15) Source(76, 8) + SourceIndex(0) +6 >Emitted(109, 21) Source(76, 14) + SourceIndex(0) +7 >Emitted(109, 29) Source(100, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=recursiveClassReferenceTest.js.map \ No newline at end of file diff --git a/tests/baselines/reference/recursiveComplicatedClasses.js b/tests/baselines/reference/recursiveComplicatedClasses.js index aab96bfe740..40f1639a939 100644 --- a/tests/baselines/reference/recursiveComplicatedClasses.js +++ b/tests/baselines/reference/recursiveComplicatedClasses.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js index bf5c0b583e3..dd14ea1a9d1 100644 --- a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js +++ b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js @@ -38,6 +38,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/reexportClassDefinition.js b/tests/baselines/reference/reexportClassDefinition.js index 2e879f06f72..8328751cd86 100644 --- a/tests/baselines/reference/reexportClassDefinition.js +++ b/tests/baselines/reference/reexportClassDefinition.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/reexportDefaultIsCallable.js b/tests/baselines/reference/reexportDefaultIsCallable.js index f31897a88aa..7e5a2a8bf5b 100644 --- a/tests/baselines/reference/reexportDefaultIsCallable.js +++ b/tests/baselines/reference/reexportDefaultIsCallable.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/reexportedMissingAlias.js b/tests/baselines/reference/reexportedMissingAlias.js index e15775ff33b..31cb28a6533 100644 --- a/tests/baselines/reference/reexportedMissingAlias.js +++ b/tests/baselines/reference/reexportedMissingAlias.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js index 089ed60b9ed..b50b355ae09 100644 --- a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js +++ b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js @@ -1028,6 +1028,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/returnInConstructor1.js b/tests/baselines/reference/returnInConstructor1.js index 282d7d2efe5..9f877e88132 100644 --- a/tests/baselines/reference/returnInConstructor1.js +++ b/tests/baselines/reference/returnInConstructor1.js @@ -75,6 +75,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/returnStatements.js b/tests/baselines/reference/returnStatements.js index cd129389843..c0631fd81ca 100644 --- a/tests/baselines/reference/returnStatements.js +++ b/tests/baselines/reference/returnStatements.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js b/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js index 8428f81bd05..6b81f995977 100644 --- a/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js +++ b/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js index d3d3f2a63e3..56737a58b50 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js index c0efe733fd8..3272f2911f0 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/scopeTests.js b/tests/baselines/reference/scopeTests.js index df099bf46e8..77635c5db9f 100644 --- a/tests/baselines/reference/scopeTests.js +++ b/tests/baselines/reference/scopeTests.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/shadowPrivateMembers.js b/tests/baselines/reference/shadowPrivateMembers.js index e358e6b22f6..0c70690dac3 100644 --- a/tests/baselines/reference/shadowPrivateMembers.js +++ b/tests/baselines/reference/shadowPrivateMembers.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js index b013c753b1e..4e63f2b4b35 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map index 3642320509e..9d4bd460dbb 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map] -{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAA,qEAGC;QAFU,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;QAAA,qEAGC;QAFU,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt index e986b037f28..6d0938a5750 100644 --- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt @@ -16,6 +16,9 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts >>> return extendStatics(d, b); >>> }; >>> return function (d, b) { +>>> if (typeof b !== "function" && b !== null) { +>>> throw new TypeError("Class extends value " + b + " is not a constructor or null"); +>>> } >>> extendStatics(d, b); >>> function __() { this.constructor = d; } >>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -25,13 +28,13 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(0) +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(0) --- >>> function AbstractGreeter() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(0) +1->Emitted(18, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -40,16 +43,16 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1->class AbstractGreeter { > 2 > } -1->Emitted(16, 5) Source(2, 1) + SourceIndex(0) -2 >Emitted(16, 6) Source(2, 2) + SourceIndex(0) +1->Emitted(19, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(19, 6) Source(2, 2) + SourceIndex(0) --- >>> return AbstractGreeter; 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(17, 5) Source(2, 1) + SourceIndex(0) -2 >Emitted(17, 27) Source(2, 2) + SourceIndex(0) +1->Emitted(20, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(20, 27) Source(2, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -62,10 +65,10 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > 4 > class AbstractGreeter { > } -1 >Emitted(18, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(18, 2) Source(2, 2) + SourceIndex(0) -3 >Emitted(18, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(18, 6) Source(2, 2) + SourceIndex(0) +1 >Emitted(21, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(2, 2) + SourceIndex(0) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(21, 6) Source(2, 2) + SourceIndex(0) --- >>>var Greeter = /** @class */ (function (_super) { 1-> @@ -73,21 +76,21 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1-> > > -1->Emitted(19, 1) Source(4, 1) + SourceIndex(0) +1->Emitted(22, 1) Source(4, 1) + SourceIndex(0) --- >>> __extends(Greeter, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class Greeter extends 2 > AbstractGreeter -1->Emitted(20, 5) Source(4, 23) + SourceIndex(0) -2 >Emitted(20, 32) Source(4, 38) + SourceIndex(0) +1->Emitted(23, 5) Source(4, 23) + SourceIndex(0) +2 >Emitted(23, 32) Source(4, 38) + SourceIndex(0) --- >>> function Greeter() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(21, 5) Source(4, 1) + SourceIndex(0) +1 >Emitted(24, 5) Source(4, 1) + SourceIndex(0) --- >>> var _this = _super !== null && _super.apply(this, arguments) || this; 1->^^^^^^^^ @@ -97,8 +100,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts > public a = 10; > public nameA = "Ten"; > } -1->Emitted(22, 9) Source(4, 1) + SourceIndex(0) -2 >Emitted(22, 78) Source(7, 2) + SourceIndex(0) +1->Emitted(25, 9) Source(4, 1) + SourceIndex(0) +2 >Emitted(25, 78) Source(7, 2) + SourceIndex(0) --- >>> _this.a = 10; 1 >^^^^^^^^ @@ -112,11 +115,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > = 4 > 10 5 > ; -1 >Emitted(23, 9) Source(5, 12) + SourceIndex(0) -2 >Emitted(23, 16) Source(5, 13) + SourceIndex(0) -3 >Emitted(23, 19) Source(5, 16) + SourceIndex(0) -4 >Emitted(23, 21) Source(5, 18) + SourceIndex(0) -5 >Emitted(23, 22) Source(5, 19) + SourceIndex(0) +1 >Emitted(26, 9) Source(5, 12) + SourceIndex(0) +2 >Emitted(26, 16) Source(5, 13) + SourceIndex(0) +3 >Emitted(26, 19) Source(5, 16) + SourceIndex(0) +4 >Emitted(26, 21) Source(5, 18) + SourceIndex(0) +5 >Emitted(26, 22) Source(5, 19) + SourceIndex(0) --- >>> _this.nameA = "Ten"; 1->^^^^^^^^ @@ -130,11 +133,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > = 4 > "Ten" 5 > ; -1->Emitted(24, 9) Source(6, 12) + SourceIndex(0) -2 >Emitted(24, 20) Source(6, 17) + SourceIndex(0) -3 >Emitted(24, 23) Source(6, 20) + SourceIndex(0) -4 >Emitted(24, 28) Source(6, 25) + SourceIndex(0) -5 >Emitted(24, 29) Source(6, 26) + SourceIndex(0) +1->Emitted(27, 9) Source(6, 12) + SourceIndex(0) +2 >Emitted(27, 20) Source(6, 17) + SourceIndex(0) +3 >Emitted(27, 23) Source(6, 20) + SourceIndex(0) +4 >Emitted(27, 28) Source(6, 25) + SourceIndex(0) +5 >Emitted(27, 29) Source(6, 26) + SourceIndex(0) --- >>> return _this; >>> } @@ -144,8 +147,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 1 > > 2 > } -1 >Emitted(26, 5) Source(7, 1) + SourceIndex(0) -2 >Emitted(26, 6) Source(7, 2) + SourceIndex(0) +1 >Emitted(29, 5) Source(7, 1) + SourceIndex(0) +2 >Emitted(29, 6) Source(7, 2) + SourceIndex(0) --- >>> return Greeter; 1->^^^^ @@ -153,8 +156,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts 3 > ^^^-> 1-> 2 > } -1->Emitted(27, 5) Source(7, 1) + SourceIndex(0) -2 >Emitted(27, 19) Source(7, 2) + SourceIndex(0) +1->Emitted(30, 5) Source(7, 1) + SourceIndex(0) +2 >Emitted(30, 19) Source(7, 2) + SourceIndex(0) --- >>>}(AbstractGreeter)); 1-> @@ -173,11 +176,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts > public a = 10; > public nameA = "Ten"; > } -1->Emitted(28, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(28, 2) Source(7, 2) + SourceIndex(0) -3 >Emitted(28, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(28, 3) Source(4, 23) + SourceIndex(0) -5 >Emitted(28, 18) Source(4, 38) + SourceIndex(0) -6 >Emitted(28, 21) Source(7, 2) + SourceIndex(0) +1->Emitted(31, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(7, 2) + SourceIndex(0) +3 >Emitted(31, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(31, 3) Source(4, 23) + SourceIndex(0) +5 >Emitted(31, 18) Source(4, 38) + SourceIndex(0) +6 >Emitted(31, 21) Source(7, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map \ No newline at end of file diff --git a/tests/baselines/reference/specializedInheritedConstructors1.js b/tests/baselines/reference/specializedInheritedConstructors1.js index f219fa5ad18..b355546aaf7 100644 --- a/tests/baselines/reference/specializedInheritedConstructors1.js +++ b/tests/baselines/reference/specializedInheritedConstructors1.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/specializedOverloadWithRestParameters.js b/tests/baselines/reference/specializedOverloadWithRestParameters.js index d39993c9cb1..c9f6b85b560 100644 --- a/tests/baselines/reference/specializedOverloadWithRestParameters.js +++ b/tests/baselines/reference/specializedOverloadWithRestParameters.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/staticFactory1.js b/tests/baselines/reference/staticFactory1.js index d63ea13df37..1b4234922c4 100644 --- a/tests/baselines/reference/staticFactory1.js +++ b/tests/baselines/reference/staticFactory1.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/staticInheritance.js b/tests/baselines/reference/staticInheritance.js index 1eb96f48cd6..90fb0252437 100644 --- a/tests/baselines/reference/staticInheritance.js +++ b/tests/baselines/reference/staticInheritance.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js index a3dddaffb5d..d4990d38b64 100644 --- a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js +++ b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/staticMismatchBecauseOfPrototype.js b/tests/baselines/reference/staticMismatchBecauseOfPrototype.js index 4bc7b248957..6dabb115729 100644 --- a/tests/baselines/reference/staticMismatchBecauseOfPrototype.js +++ b/tests/baselines/reference/staticMismatchBecauseOfPrototype.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/staticPropSuper.js b/tests/baselines/reference/staticPropSuper.js index b6be7f641c6..31781a40d28 100644 --- a/tests/baselines/reference/staticPropSuper.js +++ b/tests/baselines/reference/staticPropSuper.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/strictModeInConstructor.js b/tests/baselines/reference/strictModeInConstructor.js index d7e877eda2f..fa5b69de450 100644 --- a/tests/baselines/reference/strictModeInConstructor.js +++ b/tests/baselines/reference/strictModeInConstructor.js @@ -69,6 +69,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/strictModeReservedWord.js b/tests/baselines/reference/strictModeReservedWord.js index 34c606891fb..baae2b5408e 100644 --- a/tests/baselines/reference/strictModeReservedWord.js +++ b/tests/baselines/reference/strictModeReservedWord.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js index 45d08b13928..79f2fd4d226 100644 --- a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js +++ b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js index 900e31ab45b..9ccba0029bf 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js b/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js index 11201f069e5..7804c003c2d 100644 --- a/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js +++ b/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypesOfTypeParameter.js b/tests/baselines/reference/subtypesOfTypeParameter.js index 49b041b639e..abfbab4b9d7 100644 --- a/tests/baselines/reference/subtypesOfTypeParameter.js +++ b/tests/baselines/reference/subtypesOfTypeParameter.js @@ -115,6 +115,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js index a2d3b35680f..f5bbcaa5b13 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js @@ -177,6 +177,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js index 6038e2cb175..cb7c4ec7f0d 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js +++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js @@ -88,6 +88,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js index 5589dccf77e..1845966cb67 100644 --- a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js +++ b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js @@ -167,6 +167,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingTransitivity.js b/tests/baselines/reference/subtypingTransitivity.js index e1a8fab95c3..cfc66d95a15 100644 --- a/tests/baselines/reference/subtypingTransitivity.js +++ b/tests/baselines/reference/subtypingTransitivity.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithCallSignatures2.js b/tests/baselines/reference/subtypingWithCallSignatures2.js index bd2d50d5b75..89a13ff13eb 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures2.js +++ b/tests/baselines/reference/subtypingWithCallSignatures2.js @@ -182,6 +182,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithCallSignatures3.js b/tests/baselines/reference/subtypingWithCallSignatures3.js index 048bfb9dad3..ec15d8dc63c 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures3.js +++ b/tests/baselines/reference/subtypingWithCallSignatures3.js @@ -129,6 +129,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithCallSignatures4.js b/tests/baselines/reference/subtypingWithCallSignatures4.js index 305c162088d..287908e373b 100644 --- a/tests/baselines/reference/subtypingWithCallSignatures4.js +++ b/tests/baselines/reference/subtypingWithCallSignatures4.js @@ -121,6 +121,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures2.js b/tests/baselines/reference/subtypingWithConstructSignatures2.js index 1deee7a0bfc..8af59214c18 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures2.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures2.js @@ -182,6 +182,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures3.js b/tests/baselines/reference/subtypingWithConstructSignatures3.js index 257422621e9..765e2f2b388 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures3.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures3.js @@ -131,6 +131,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures4.js b/tests/baselines/reference/subtypingWithConstructSignatures4.js index 6489ece9b0a..aeb7f1bd193 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures4.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures4.js @@ -121,6 +121,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures5.js b/tests/baselines/reference/subtypingWithConstructSignatures5.js index cbfa0fe360c..d81166ce7fc 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures5.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures5.js @@ -59,6 +59,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithConstructSignatures6.js b/tests/baselines/reference/subtypingWithConstructSignatures6.js index d8a9b66e75d..1e7b9752a88 100644 --- a/tests/baselines/reference/subtypingWithConstructSignatures6.js +++ b/tests/baselines/reference/subtypingWithConstructSignatures6.js @@ -62,6 +62,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithNumericIndexer.js b/tests/baselines/reference/subtypingWithNumericIndexer.js index d26d4298ac5..92862f6b327 100644 --- a/tests/baselines/reference/subtypingWithNumericIndexer.js +++ b/tests/baselines/reference/subtypingWithNumericIndexer.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithNumericIndexer3.js b/tests/baselines/reference/subtypingWithNumericIndexer3.js index 087436392d5..3842353a421 100644 --- a/tests/baselines/reference/subtypingWithNumericIndexer3.js +++ b/tests/baselines/reference/subtypingWithNumericIndexer3.js @@ -53,6 +53,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithNumericIndexer4.js b/tests/baselines/reference/subtypingWithNumericIndexer4.js index ec5190315f1..6273a0a6e6f 100644 --- a/tests/baselines/reference/subtypingWithNumericIndexer4.js +++ b/tests/baselines/reference/subtypingWithNumericIndexer4.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithObjectMembers.js b/tests/baselines/reference/subtypingWithObjectMembers.js index 3cc540a1113..5e7afcedee6 100644 --- a/tests/baselines/reference/subtypingWithObjectMembers.js +++ b/tests/baselines/reference/subtypingWithObjectMembers.js @@ -76,6 +76,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithObjectMembers4.js b/tests/baselines/reference/subtypingWithObjectMembers4.js index 8a7a32957fe..752c9ea52c5 100644 --- a/tests/baselines/reference/subtypingWithObjectMembers4.js +++ b/tests/baselines/reference/subtypingWithObjectMembers4.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js b/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js index 4108a979bf4..93de82e6777 100644 --- a/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js +++ b/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js b/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js index 97eddfb5800..b8cc088d3d6 100644 --- a/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js +++ b/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js @@ -71,6 +71,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithStringIndexer.js b/tests/baselines/reference/subtypingWithStringIndexer.js index 64ccbd20430..c24d80f1470 100644 --- a/tests/baselines/reference/subtypingWithStringIndexer.js +++ b/tests/baselines/reference/subtypingWithStringIndexer.js @@ -50,6 +50,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithStringIndexer3.js b/tests/baselines/reference/subtypingWithStringIndexer3.js index ddcdd02b1bb..dea9dc21f27 100644 --- a/tests/baselines/reference/subtypingWithStringIndexer3.js +++ b/tests/baselines/reference/subtypingWithStringIndexer3.js @@ -53,6 +53,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/subtypingWithStringIndexer4.js b/tests/baselines/reference/subtypingWithStringIndexer4.js index 37472f84466..32e6151eaf2 100644 --- a/tests/baselines/reference/subtypingWithStringIndexer4.js +++ b/tests/baselines/reference/subtypingWithStringIndexer4.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/super.js b/tests/baselines/reference/super.js index 21431891f03..8ad74974054 100644 --- a/tests/baselines/reference/super.js +++ b/tests/baselines/reference/super.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/super1.js b/tests/baselines/reference/super1.js index 90db9eac32d..f512611bf9d 100644 --- a/tests/baselines/reference/super1.js +++ b/tests/baselines/reference/super1.js @@ -75,6 +75,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/super2.js b/tests/baselines/reference/super2.js index e2de1c65f69..c7e5082ba6c 100644 --- a/tests/baselines/reference/super2.js +++ b/tests/baselines/reference/super2.js @@ -59,6 +59,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superAccess.js b/tests/baselines/reference/superAccess.js index beb9303aef7..2b2d1828aad 100644 --- a/tests/baselines/reference/superAccess.js +++ b/tests/baselines/reference/superAccess.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superAccess2.js b/tests/baselines/reference/superAccess2.js index 468f6594188..33e88304123 100644 --- a/tests/baselines/reference/superAccess2.js +++ b/tests/baselines/reference/superAccess2.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superAccessCastedCall.js b/tests/baselines/reference/superAccessCastedCall.js index f88b0c92a0f..3203e0e1d63 100644 --- a/tests/baselines/reference/superAccessCastedCall.js +++ b/tests/baselines/reference/superAccessCastedCall.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superAccessInFatArrow1.js b/tests/baselines/reference/superAccessInFatArrow1.js index c04de1b20e1..18cf1dfb7b2 100644 --- a/tests/baselines/reference/superAccessInFatArrow1.js +++ b/tests/baselines/reference/superAccessInFatArrow1.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallArgsMustMatch.js b/tests/baselines/reference/superCallArgsMustMatch.js index 9f4b848f31f..8f960589185 100644 --- a/tests/baselines/reference/superCallArgsMustMatch.js +++ b/tests/baselines/reference/superCallArgsMustMatch.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallAssignResult.js b/tests/baselines/reference/superCallAssignResult.js index 1e71a043449..da1e783e845 100644 --- a/tests/baselines/reference/superCallAssignResult.js +++ b/tests/baselines/reference/superCallAssignResult.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing1.js b/tests/baselines/reference/superCallBeforeThisAccessing1.js index d31f3a11bb9..cd4a3b01b10 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing1.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing1.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing2.js b/tests/baselines/reference/superCallBeforeThisAccessing2.js index 597f53f47cb..46aef974712 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing2.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing2.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing3.js b/tests/baselines/reference/superCallBeforeThisAccessing3.js index 9a81390755e..aa8e5d18b89 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing3.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing3.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing4.js b/tests/baselines/reference/superCallBeforeThisAccessing4.js index 703db9d917f..df968b2ec5e 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing4.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing4.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing5.js b/tests/baselines/reference/superCallBeforeThisAccessing5.js index 9a2ba0ff0f7..983d72ed404 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing5.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing5.js @@ -16,6 +16,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing6.js b/tests/baselines/reference/superCallBeforeThisAccessing6.js index b86502f7a1d..6623d55985e 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing6.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing6.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing7.js b/tests/baselines/reference/superCallBeforeThisAccessing7.js index d3f62d89012..5c76d43f480 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing7.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing7.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallBeforeThisAccessing8.js b/tests/baselines/reference/superCallBeforeThisAccessing8.js index f2880d43913..7ff0ab7f429 100644 --- a/tests/baselines/reference/superCallBeforeThisAccessing8.js +++ b/tests/baselines/reference/superCallBeforeThisAccessing8.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js index b123b279dd8..a1468ab1ff7 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js index f4fc6dc4286..7924c74a82b 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js index 2457c4f01ee..dc6c9c34d35 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js index 016dc25a7af..91f258602e6 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js index 6d4cd18013a..c19ba063c5d 100644 --- a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js +++ b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallInNonStaticMethod.js b/tests/baselines/reference/superCallInNonStaticMethod.js index fd1bb59b59b..24fb622ccc4 100644 --- a/tests/baselines/reference/superCallInNonStaticMethod.js +++ b/tests/baselines/reference/superCallInNonStaticMethod.js @@ -59,6 +59,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallInStaticMethod.js b/tests/baselines/reference/superCallInStaticMethod.js index c43746ee34c..3f2f8ca1eff 100644 --- a/tests/baselines/reference/superCallInStaticMethod.js +++ b/tests/baselines/reference/superCallInStaticMethod.js @@ -55,6 +55,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallInsideClassDeclaration.js b/tests/baselines/reference/superCallInsideClassDeclaration.js index 87caacf123f..381a671ec82 100644 --- a/tests/baselines/reference/superCallInsideClassDeclaration.js +++ b/tests/baselines/reference/superCallInsideClassDeclaration.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallInsideClassExpression.js b/tests/baselines/reference/superCallInsideClassExpression.js index 52a96213326..84ffd8e9fb6 100644 --- a/tests/baselines/reference/superCallInsideClassExpression.js +++ b/tests/baselines/reference/superCallInsideClassExpression.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js index 12da3b03199..085c3f84f56 100644 --- a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js +++ b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallOutsideConstructor.js b/tests/baselines/reference/superCallOutsideConstructor.js index ed780e5e522..12937ccfa81 100644 --- a/tests/baselines/reference/superCallOutsideConstructor.js +++ b/tests/baselines/reference/superCallOutsideConstructor.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallParameterContextualTyping1.js b/tests/baselines/reference/superCallParameterContextualTyping1.js index 78f37bc1000..addb0a9ba22 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping1.js +++ b/tests/baselines/reference/superCallParameterContextualTyping1.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallParameterContextualTyping2.js b/tests/baselines/reference/superCallParameterContextualTyping2.js index 6051c6398b3..4a9266de4c5 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping2.js +++ b/tests/baselines/reference/superCallParameterContextualTyping2.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallParameterContextualTyping3.js b/tests/baselines/reference/superCallParameterContextualTyping3.js index 94518aec56f..1838072b627 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping3.js +++ b/tests/baselines/reference/superCallParameterContextualTyping3.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallWithCommentEmit01.js b/tests/baselines/reference/superCallWithCommentEmit01.js index 2cb12c0ecc2..a7c2020052a 100644 --- a/tests/baselines/reference/superCallWithCommentEmit01.js +++ b/tests/baselines/reference/superCallWithCommentEmit01.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallWithMissingBaseClass.js b/tests/baselines/reference/superCallWithMissingBaseClass.js index 07d6860e20c..61660eafd64 100644 --- a/tests/baselines/reference/superCallWithMissingBaseClass.js +++ b/tests/baselines/reference/superCallWithMissingBaseClass.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCalls.js b/tests/baselines/reference/superCalls.js index 3447e4de698..9730557a34b 100644 --- a/tests/baselines/reference/superCalls.js +++ b/tests/baselines/reference/superCalls.js @@ -39,6 +39,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superCallsInConstructor.js b/tests/baselines/reference/superCallsInConstructor.js index 46db033c66b..e963a9fafd3 100644 --- a/tests/baselines/reference/superCallsInConstructor.js +++ b/tests/baselines/reference/superCallsInConstructor.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superElementAccess.js b/tests/baselines/reference/superElementAccess.js index e8b9c86b844..39ec3d25582 100644 --- a/tests/baselines/reference/superElementAccess.js +++ b/tests/baselines/reference/superElementAccess.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superErrors.js b/tests/baselines/reference/superErrors.js index 35673eaa133..5781964bbe4 100644 --- a/tests/baselines/reference/superErrors.js +++ b/tests/baselines/reference/superErrors.js @@ -60,6 +60,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superHasMethodsFromMergedInterface.js b/tests/baselines/reference/superHasMethodsFromMergedInterface.js index 5d90f38aed6..dbf9fd28844 100644 --- a/tests/baselines/reference/superHasMethodsFromMergedInterface.js +++ b/tests/baselines/reference/superHasMethodsFromMergedInterface.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superInCatchBlock1.js b/tests/baselines/reference/superInCatchBlock1.js index 85395af19df..6e631780236 100644 --- a/tests/baselines/reference/superInCatchBlock1.js +++ b/tests/baselines/reference/superInCatchBlock1.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superInConstructorParam1.js b/tests/baselines/reference/superInConstructorParam1.js index cba46b1f92a..eac4af99e83 100644 --- a/tests/baselines/reference/superInConstructorParam1.js +++ b/tests/baselines/reference/superInConstructorParam1.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superInLambdas.js b/tests/baselines/reference/superInLambdas.js index 36ac400184f..50e7039768f 100644 --- a/tests/baselines/reference/superInLambdas.js +++ b/tests/baselines/reference/superInLambdas.js @@ -76,6 +76,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.js b/tests/baselines/reference/superInObjectLiterals_ES5.js index 05c6ec1225a..257bc39a239 100644 --- a/tests/baselines/reference/superInObjectLiterals_ES5.js +++ b/tests/baselines/reference/superInObjectLiterals_ES5.js @@ -68,6 +68,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superNewCall1.js b/tests/baselines/reference/superNewCall1.js index 6842c574142..1f015132cac 100644 --- a/tests/baselines/reference/superNewCall1.js +++ b/tests/baselines/reference/superNewCall1.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superNoModifiersCrash.js b/tests/baselines/reference/superNoModifiersCrash.js index b00bd719280..021b897532a 100644 --- a/tests/baselines/reference/superNoModifiersCrash.js +++ b/tests/baselines/reference/superNoModifiersCrash.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyAccess.js b/tests/baselines/reference/superPropertyAccess.js index 3410f4d49f9..66803cb3adf 100644 --- a/tests/baselines/reference/superPropertyAccess.js +++ b/tests/baselines/reference/superPropertyAccess.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyAccess1.js b/tests/baselines/reference/superPropertyAccess1.js index 950b0471de3..e13521eb93a 100644 --- a/tests/baselines/reference/superPropertyAccess1.js +++ b/tests/baselines/reference/superPropertyAccess1.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyAccess2.js b/tests/baselines/reference/superPropertyAccess2.js index a04769c9d0f..0456a88661c 100644 --- a/tests/baselines/reference/superPropertyAccess2.js +++ b/tests/baselines/reference/superPropertyAccess2.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js index 0d20e9d9beb..745eb47e29e 100644 --- a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js +++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyAccessInSuperCall01.js b/tests/baselines/reference/superPropertyAccessInSuperCall01.js index 86d3fc872bf..5b71c34d3a5 100644 --- a/tests/baselines/reference/superPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/superPropertyAccessInSuperCall01.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyAccessNoError.js b/tests/baselines/reference/superPropertyAccessNoError.js index b3473eb1fc7..79574a2c229 100644 --- a/tests/baselines/reference/superPropertyAccessNoError.js +++ b/tests/baselines/reference/superPropertyAccessNoError.js @@ -85,6 +85,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyAccess_ES5.js b/tests/baselines/reference/superPropertyAccess_ES5.js index be1bbf89e0d..b06e38e4b18 100644 --- a/tests/baselines/reference/superPropertyAccess_ES5.js +++ b/tests/baselines/reference/superPropertyAccess_ES5.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js b/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js index 061c03d4308..d284bb54f66 100644 --- a/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js +++ b/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js @@ -26,6 +26,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js index 4e9445cea40..dfd7cb74acd 100644 --- a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js +++ b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.js b/tests/baselines/reference/superSymbolIndexedAccess5.js index 2a932b4e69e..3c4712dd9da 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess5.js +++ b/tests/baselines/reference/superSymbolIndexedAccess5.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superSymbolIndexedAccess6.js b/tests/baselines/reference/superSymbolIndexedAccess6.js index f26d4e75b5c..43d6c7ce9bc 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess6.js +++ b/tests/baselines/reference/superSymbolIndexedAccess6.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superWithGenericSpecialization.js b/tests/baselines/reference/superWithGenericSpecialization.js index 1e92d132eaa..43c277106f5 100644 --- a/tests/baselines/reference/superWithGenericSpecialization.js +++ b/tests/baselines/reference/superWithGenericSpecialization.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superWithGenerics.js b/tests/baselines/reference/superWithGenerics.js index 1a5827122eb..73136ccbfb5 100644 --- a/tests/baselines/reference/superWithGenerics.js +++ b/tests/baselines/reference/superWithGenerics.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superWithTypeArgument.js b/tests/baselines/reference/superWithTypeArgument.js index aa2e41751e0..1201db208d8 100644 --- a/tests/baselines/reference/superWithTypeArgument.js +++ b/tests/baselines/reference/superWithTypeArgument.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superWithTypeArgument2.js b/tests/baselines/reference/superWithTypeArgument2.js index 33d6ef13532..179b13adacf 100644 --- a/tests/baselines/reference/superWithTypeArgument2.js +++ b/tests/baselines/reference/superWithTypeArgument2.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/superWithTypeArgument3.js b/tests/baselines/reference/superWithTypeArgument3.js index 940dda49cb7..75757d76828 100644 --- a/tests/baselines/reference/superWithTypeArgument3.js +++ b/tests/baselines/reference/superWithTypeArgument3.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js b/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js index e45de8de606..fd364d4e9be 100644 --- a/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js +++ b/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/switchStatements.js b/tests/baselines/reference/switchStatements.js index 0491ea02c9c..94d18716d8b 100644 --- a/tests/baselines/reference/switchStatements.js +++ b/tests/baselines/reference/switchStatements.js @@ -64,6 +64,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/systemModuleWithSuperClass.js b/tests/baselines/reference/systemModuleWithSuperClass.js index 59be406cc2f..e2640811bac 100644 --- a/tests/baselines/reference/systemModuleWithSuperClass.js +++ b/tests/baselines/reference/systemModuleWithSuperClass.js @@ -39,6 +39,9 @@ System.register(["./foo"], function (exports_1, context_1) { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/targetTypeBaseCalls.js b/tests/baselines/reference/targetTypeBaseCalls.js index d52c59ecc1c..d33fcdcfe72 100644 --- a/tests/baselines/reference/targetTypeBaseCalls.js +++ b/tests/baselines/reference/targetTypeBaseCalls.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js b/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js index c903864eb67..0f89e8b29e6 100644 --- a/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js +++ b/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisInInvalidContexts.js b/tests/baselines/reference/thisInInvalidContexts.js index 71c0a408c45..206df67849c 100644 --- a/tests/baselines/reference/thisInInvalidContexts.js +++ b/tests/baselines/reference/thisInInvalidContexts.js @@ -57,6 +57,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisInInvalidContextsExternalModule.js b/tests/baselines/reference/thisInInvalidContextsExternalModule.js index e295c49074b..9be13e16c2b 100644 --- a/tests/baselines/reference/thisInInvalidContextsExternalModule.js +++ b/tests/baselines/reference/thisInInvalidContextsExternalModule.js @@ -58,6 +58,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisInSuperCall.js b/tests/baselines/reference/thisInSuperCall.js index cd289bb7ea9..9e50377314e 100644 --- a/tests/baselines/reference/thisInSuperCall.js +++ b/tests/baselines/reference/thisInSuperCall.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisInSuperCall1.js b/tests/baselines/reference/thisInSuperCall1.js index 63d111224d8..0ab5af1e762 100644 --- a/tests/baselines/reference/thisInSuperCall1.js +++ b/tests/baselines/reference/thisInSuperCall1.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisInSuperCall2.js b/tests/baselines/reference/thisInSuperCall2.js index 095a6c647f9..45599a5b231 100644 --- a/tests/baselines/reference/thisInSuperCall2.js +++ b/tests/baselines/reference/thisInSuperCall2.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisInSuperCall3.js b/tests/baselines/reference/thisInSuperCall3.js index 7fd85c47daa..d86def33846 100644 --- a/tests/baselines/reference/thisInSuperCall3.js +++ b/tests/baselines/reference/thisInSuperCall3.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js b/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js index 4789d0c8022..c575bb64bf3 100644 --- a/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js +++ b/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js @@ -32,6 +32,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisTypeInFunctions.js b/tests/baselines/reference/thisTypeInFunctions.js index 3c1dea3fd51..11f14828e7a 100644 --- a/tests/baselines/reference/thisTypeInFunctions.js +++ b/tests/baselines/reference/thisTypeInFunctions.js @@ -203,6 +203,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/thisTypeInFunctions3.js b/tests/baselines/reference/thisTypeInFunctions3.js index 2f6ff07abcd..3f42f227213 100644 --- a/tests/baselines/reference/thisTypeInFunctions3.js +++ b/tests/baselines/reference/thisTypeInFunctions3.js @@ -19,6 +19,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxAttributeResolution15.js b/tests/baselines/reference/tsxAttributeResolution15.js index 5a3e1ff4d3f..5e1d98219a2 100644 --- a/tests/baselines/reference/tsxAttributeResolution15.js +++ b/tests/baselines/reference/tsxAttributeResolution15.js @@ -25,6 +25,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxAttributeResolution16.js b/tests/baselines/reference/tsxAttributeResolution16.js index 17aa001e936..312a8df0796 100644 --- a/tests/baselines/reference/tsxAttributeResolution16.js +++ b/tests/baselines/reference/tsxAttributeResolution16.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js index 09cbe9e96d4..c4b84a51adb 100644 --- a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js +++ b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution1.js b/tests/baselines/reference/tsxDefaultAttributesResolution1.js index 617b475f713..94002953889 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution1.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution1.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution2.js b/tests/baselines/reference/tsxDefaultAttributesResolution2.js index 5d74321695f..08934728467 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution2.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution2.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution3.js b/tests/baselines/reference/tsxDefaultAttributesResolution3.js index 5a9996e2704..723689e049d 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution3.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution3.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxDynamicTagName5.js b/tests/baselines/reference/tsxDynamicTagName5.js index 14aef6ce1b8..269e8442b06 100644 --- a/tests/baselines/reference/tsxDynamicTagName5.js +++ b/tests/baselines/reference/tsxDynamicTagName5.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxDynamicTagName7.js b/tests/baselines/reference/tsxDynamicTagName7.js index 05e2b52a7cd..a41c9967084 100644 --- a/tests/baselines/reference/tsxDynamicTagName7.js +++ b/tests/baselines/reference/tsxDynamicTagName7.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxDynamicTagName8.js b/tests/baselines/reference/tsxDynamicTagName8.js index 82dfede8e4f..5e0b8f5558d 100644 --- a/tests/baselines/reference/tsxDynamicTagName8.js +++ b/tests/baselines/reference/tsxDynamicTagName8.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxDynamicTagName9.js b/tests/baselines/reference/tsxDynamicTagName9.js index f72c50c1b9c..ededc625796 100644 --- a/tests/baselines/reference/tsxDynamicTagName9.js +++ b/tests/baselines/reference/tsxDynamicTagName9.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxExternalModuleEmit1.js b/tests/baselines/reference/tsxExternalModuleEmit1.js index d42e5d5b555..208a11a9eef 100644 --- a/tests/baselines/reference/tsxExternalModuleEmit1.js +++ b/tests/baselines/reference/tsxExternalModuleEmit1.js @@ -40,6 +40,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -69,6 +72,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxFragmentChildrenCheck.js b/tests/baselines/reference/tsxFragmentChildrenCheck.js index a9f57766f70..86ce6221986 100644 --- a/tests/baselines/reference/tsxFragmentChildrenCheck.js +++ b/tests/baselines/reference/tsxFragmentChildrenCheck.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxGenericAttributesType3.js b/tests/baselines/reference/tsxGenericAttributesType3.js index fb46fe983dc..c0d8b29ff47 100644 --- a/tests/baselines/reference/tsxGenericAttributesType3.js +++ b/tests/baselines/reference/tsxGenericAttributesType3.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxGenericAttributesType4.js b/tests/baselines/reference/tsxGenericAttributesType4.js index 0b2353e67d9..e0a271f106d 100644 --- a/tests/baselines/reference/tsxGenericAttributesType4.js +++ b/tests/baselines/reference/tsxGenericAttributesType4.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxGenericAttributesType5.js b/tests/baselines/reference/tsxGenericAttributesType5.js index ffc320bb4eb..92afb996e7a 100644 --- a/tests/baselines/reference/tsxGenericAttributesType5.js +++ b/tests/baselines/reference/tsxGenericAttributesType5.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxGenericAttributesType6.js b/tests/baselines/reference/tsxGenericAttributesType6.js index 7fc020a2683..002a63f1080 100644 --- a/tests/baselines/reference/tsxGenericAttributesType6.js +++ b/tests/baselines/reference/tsxGenericAttributesType6.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxGenericAttributesType9.js b/tests/baselines/reference/tsxGenericAttributesType9.js index 942dfb9ec7e..b1329b31a23 100644 --- a/tests/baselines/reference/tsxGenericAttributesType9.js +++ b/tests/baselines/reference/tsxGenericAttributesType9.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxLibraryManagedAttributes.js b/tests/baselines/reference/tsxLibraryManagedAttributes.js index c5157ea6a89..2a41c1a8894 100644 --- a/tests/baselines/reference/tsxLibraryManagedAttributes.js +++ b/tests/baselines/reference/tsxLibraryManagedAttributes.js @@ -135,6 +135,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js b/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js index 0c15cd0d07c..c5dc176c031 100644 --- a/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js +++ b/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution1.js b/tests/baselines/reference/tsxSpreadAttributesResolution1.js index 9742d8348bc..c9485b956bb 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution1.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution1.js @@ -24,6 +24,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution10.js b/tests/baselines/reference/tsxSpreadAttributesResolution10.js index 8f8e21a62a6..eca3e2db18f 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution10.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution10.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution11.js b/tests/baselines/reference/tsxSpreadAttributesResolution11.js index 6db169e348e..e943531e7d6 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution11.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution11.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.js b/tests/baselines/reference/tsxSpreadAttributesResolution12.js index 394f524a960..5153086903a 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution12.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.js @@ -42,6 +42,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution17.js b/tests/baselines/reference/tsxSpreadAttributesResolution17.js index 2534c483cde..cffc7e69f3f 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution17.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution17.js @@ -29,6 +29,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.js b/tests/baselines/reference/tsxSpreadAttributesResolution2.js index 8d75bae4a19..8e27eb15d12 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution2.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution3.js b/tests/baselines/reference/tsxSpreadAttributesResolution3.js index 0d094d4aef8..6529fa98909 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution3.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution3.js @@ -31,6 +31,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution4.js b/tests/baselines/reference/tsxSpreadAttributesResolution4.js index 5ccfd8d5f90..fa25dc1e36f 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution4.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution4.js @@ -44,6 +44,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution5.js b/tests/baselines/reference/tsxSpreadAttributesResolution5.js index 2f826f2e59d..556df2263b4 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution5.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution5.js @@ -43,6 +43,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution6.js b/tests/baselines/reference/tsxSpreadAttributesResolution6.js index 8c78efeedd0..bf0e8118661 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution6.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution6.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution7.js b/tests/baselines/reference/tsxSpreadAttributesResolution7.js index 6248df6f042..bff8d86000a 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution7.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution7.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution8.js b/tests/baselines/reference/tsxSpreadAttributesResolution8.js index 1b22bb0e17c..203665f8505 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution8.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution8.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution9.js b/tests/baselines/reference/tsxSpreadAttributesResolution9.js index d92e3cfa16c..3958b722d3e 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution9.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution9.js @@ -34,6 +34,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js b/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js index ea9ac663998..f077b435cdd 100644 --- a/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js +++ b/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.js b/tests/baselines/reference/tsxStatelessFunctionComponents2.js index 50eadb9774d..456fb843e4c 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.js @@ -47,6 +47,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxUnionElementType3.js b/tests/baselines/reference/tsxUnionElementType3.js index e72b47e3aab..e2dcee2eefe 100644 --- a/tests/baselines/reference/tsxUnionElementType3.js +++ b/tests/baselines/reference/tsxUnionElementType3.js @@ -46,6 +46,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxUnionElementType4.js b/tests/baselines/reference/tsxUnionElementType4.js index 5619f8c6d48..4cee2d6d536 100644 --- a/tests/baselines/reference/tsxUnionElementType4.js +++ b/tests/baselines/reference/tsxUnionElementType4.js @@ -45,6 +45,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/tsxUnionTypeComponent1.js b/tests/baselines/reference/tsxUnionTypeComponent1.js index 9e004413575..aa0cf6cc14a 100644 --- a/tests/baselines/reference/tsxUnionTypeComponent1.js +++ b/tests/baselines/reference/tsxUnionTypeComponent1.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js b/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js index 1eedb2413ea..4b55d1cbae0 100644 --- a/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js +++ b/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js @@ -23,6 +23,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeAssertions.js b/tests/baselines/reference/typeAssertions.js index 8f37011a273..d525eda14f0 100644 --- a/tests/baselines/reference/typeAssertions.js +++ b/tests/baselines/reference/typeAssertions.js @@ -60,6 +60,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardFunction.js b/tests/baselines/reference/typeGuardFunction.js index 7d762946e30..465af917351 100644 --- a/tests/baselines/reference/typeGuardFunction.js +++ b/tests/baselines/reference/typeGuardFunction.js @@ -91,6 +91,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardFunctionErrors.js b/tests/baselines/reference/typeGuardFunctionErrors.js index 7e640fea6d7..7d66b4902ed 100644 --- a/tests/baselines/reference/typeGuardFunctionErrors.js +++ b/tests/baselines/reference/typeGuardFunctionErrors.js @@ -176,6 +176,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardFunctionGenerics.js b/tests/baselines/reference/typeGuardFunctionGenerics.js index 13d14fa6bb6..e148a983921 100644 --- a/tests/baselines/reference/typeGuardFunctionGenerics.js +++ b/tests/baselines/reference/typeGuardFunctionGenerics.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.js b/tests/baselines/reference/typeGuardFunctionOfFormThis.js index 1d52025c9f7..1e0544332b9 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThis.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.js @@ -150,6 +150,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js index 6db9d7f6885..a7a8f7053c5 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js @@ -68,6 +68,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardOfFormInstanceOf.js b/tests/baselines/reference/typeGuardOfFormInstanceOf.js index 554e3c0d572..04e19d27ec9 100644 --- a/tests/baselines/reference/typeGuardOfFormInstanceOf.js +++ b/tests/baselines/reference/typeGuardOfFormInstanceOf.js @@ -81,6 +81,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardOfFormIsType.js b/tests/baselines/reference/typeGuardOfFormIsType.js index 57c0da2f4e5..a0223809175 100644 --- a/tests/baselines/reference/typeGuardOfFormIsType.js +++ b/tests/baselines/reference/typeGuardOfFormIsType.js @@ -45,6 +45,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.js b/tests/baselines/reference/typeGuardOfFormThisMember.js index 037a0fe2385..6eaf11f1e8f 100644 --- a/tests/baselines/reference/typeGuardOfFormThisMember.js +++ b/tests/baselines/reference/typeGuardOfFormThisMember.js @@ -91,6 +91,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js index 87864e50e3b..8adef023d1b 100644 --- a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js +++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeMatch2.js b/tests/baselines/reference/typeMatch2.js index cc5073f4563..d64296f744b 100644 --- a/tests/baselines/reference/typeMatch2.js +++ b/tests/baselines/reference/typeMatch2.js @@ -53,6 +53,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeOfSuperCall.js b/tests/baselines/reference/typeOfSuperCall.js index 88be3876544..b4c42b6daf5 100644 --- a/tests/baselines/reference/typeOfSuperCall.js +++ b/tests/baselines/reference/typeOfSuperCall.js @@ -17,6 +17,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeParameterAsBaseClass.js b/tests/baselines/reference/typeParameterAsBaseClass.js index 8a963309eab..a54e4724ca9 100644 --- a/tests/baselines/reference/typeParameterAsBaseClass.js +++ b/tests/baselines/reference/typeParameterAsBaseClass.js @@ -11,6 +11,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeParameterAsBaseType.js b/tests/baselines/reference/typeParameterAsBaseType.js index a6eddf38a38..9cd4e8eb439 100644 --- a/tests/baselines/reference/typeParameterAsBaseType.js +++ b/tests/baselines/reference/typeParameterAsBaseType.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeParameterExtendingUnion1.js b/tests/baselines/reference/typeParameterExtendingUnion1.js index 78bcc9f650c..72c7e1ed2b5 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion1.js +++ b/tests/baselines/reference/typeParameterExtendingUnion1.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeParameterExtendingUnion2.js b/tests/baselines/reference/typeParameterExtendingUnion2.js index 0a55d8fd0d4..a2086aedc39 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion2.js +++ b/tests/baselines/reference/typeParameterExtendingUnion2.js @@ -21,6 +21,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeRelationships.js b/tests/baselines/reference/typeRelationships.js index 27ba221a281..a97f59ccc0d 100644 --- a/tests/baselines/reference/typeRelationships.js +++ b/tests/baselines/reference/typeRelationships.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeValueConflict1.js b/tests/baselines/reference/typeValueConflict1.js index 074e73ea014..080781e1238 100644 --- a/tests/baselines/reference/typeValueConflict1.js +++ b/tests/baselines/reference/typeValueConflict1.js @@ -20,6 +20,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeValueConflict2.js b/tests/baselines/reference/typeValueConflict2.js index 534dfa1cdff..d88b9582313 100644 --- a/tests/baselines/reference/typeValueConflict2.js +++ b/tests/baselines/reference/typeValueConflict2.js @@ -27,6 +27,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeVariableTypeGuards.js b/tests/baselines/reference/typeVariableTypeGuards.js index 385c8bd55c4..9847668e5c5 100644 --- a/tests/baselines/reference/typeVariableTypeGuards.js +++ b/tests/baselines/reference/typeVariableTypeGuards.js @@ -93,6 +93,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typeofClass2.js b/tests/baselines/reference/typeofClass2.js index e145a5d9b45..f458981edd0 100644 --- a/tests/baselines/reference/typeofClass2.js +++ b/tests/baselines/reference/typeofClass2.js @@ -30,6 +30,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typesWithSpecializedCallSignatures.js b/tests/baselines/reference/typesWithSpecializedCallSignatures.js index 6cb2fbaff54..e3e0d37bbae 100644 --- a/tests/baselines/reference/typesWithSpecializedCallSignatures.js +++ b/tests/baselines/reference/typesWithSpecializedCallSignatures.js @@ -51,6 +51,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/typesWithSpecializedConstructSignatures.js b/tests/baselines/reference/typesWithSpecializedConstructSignatures.js index 7bbe983955d..3f898dee089 100644 --- a/tests/baselines/reference/typesWithSpecializedConstructSignatures.js +++ b/tests/baselines/reference/typesWithSpecializedConstructSignatures.js @@ -49,6 +49,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/undeclaredBase.js b/tests/baselines/reference/undeclaredBase.js index efbd2b49b41..82f259b7bb2 100644 --- a/tests/baselines/reference/undeclaredBase.js +++ b/tests/baselines/reference/undeclaredBase.js @@ -12,6 +12,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/undefinedIsSubtypeOfEverything.js b/tests/baselines/reference/undefinedIsSubtypeOfEverything.js index 40378779e0c..276c0bce1aa 100644 --- a/tests/baselines/reference/undefinedIsSubtypeOfEverything.js +++ b/tests/baselines/reference/undefinedIsSubtypeOfEverything.js @@ -131,6 +131,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/underscoreMapFirst.js b/tests/baselines/reference/underscoreMapFirst.js index 4fc0d0bf3ce..c69f16c9741 100644 --- a/tests/baselines/reference/underscoreMapFirst.js +++ b/tests/baselines/reference/underscoreMapFirst.js @@ -57,6 +57,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/underscoreThisInDerivedClass01.js b/tests/baselines/reference/underscoreThisInDerivedClass01.js index c42767ef3bf..a47f2661ae6 100644 --- a/tests/baselines/reference/underscoreThisInDerivedClass01.js +++ b/tests/baselines/reference/underscoreThisInDerivedClass01.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/underscoreThisInDerivedClass02.js b/tests/baselines/reference/underscoreThisInDerivedClass02.js index 313b6663d54..b21d1fdc3ea 100644 --- a/tests/baselines/reference/underscoreThisInDerivedClass02.js +++ b/tests/baselines/reference/underscoreThisInDerivedClass02.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unionTypeEquivalence.js b/tests/baselines/reference/unionTypeEquivalence.js index 90ebc0ff152..9b8688bd774 100644 --- a/tests/baselines/reference/unionTypeEquivalence.js +++ b/tests/baselines/reference/unionTypeEquivalence.js @@ -28,6 +28,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unionTypeFromArrayLiteral.js b/tests/baselines/reference/unionTypeFromArrayLiteral.js index 3c8e461ef18..f8f3c224655 100644 --- a/tests/baselines/reference/unionTypeFromArrayLiteral.js +++ b/tests/baselines/reference/unionTypeFromArrayLiteral.js @@ -36,6 +36,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unionTypesAssignability.js b/tests/baselines/reference/unionTypesAssignability.js index fc7b0c5020f..a7352b2545b 100644 --- a/tests/baselines/reference/unionTypesAssignability.js +++ b/tests/baselines/reference/unionTypesAssignability.js @@ -82,6 +82,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unknownSymbols1.js b/tests/baselines/reference/unknownSymbols1.js index 64057fe8c71..c80ec6cfdd2 100644 --- a/tests/baselines/reference/unknownSymbols1.js +++ b/tests/baselines/reference/unknownSymbols1.js @@ -41,6 +41,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unspecializedConstraints.js b/tests/baselines/reference/unspecializedConstraints.js index 4f1a9196156..d27fd958a7b 100644 --- a/tests/baselines/reference/unspecializedConstraints.js +++ b/tests/baselines/reference/unspecializedConstraints.js @@ -162,6 +162,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js b/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js index d685742804f..9d0f9f88f6c 100644 --- a/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js +++ b/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js @@ -52,6 +52,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unusedClassesinNamespace4.js b/tests/baselines/reference/unusedClassesinNamespace4.js index 57517346ea3..cc932a000ae 100644 --- a/tests/baselines/reference/unusedClassesinNamespace4.js +++ b/tests/baselines/reference/unusedClassesinNamespace4.js @@ -22,6 +22,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unusedIdentifiersConsolidated1.js b/tests/baselines/reference/unusedIdentifiersConsolidated1.js index a26090bb617..580e7a40a8c 100644 --- a/tests/baselines/reference/unusedIdentifiersConsolidated1.js +++ b/tests/baselines/reference/unusedIdentifiersConsolidated1.js @@ -110,6 +110,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/unusedInvalidTypeArguments.js b/tests/baselines/reference/unusedInvalidTypeArguments.js index 36ee10aad0f..68177b5c614 100644 --- a/tests/baselines/reference/unusedInvalidTypeArguments.js +++ b/tests/baselines/reference/unusedInvalidTypeArguments.js @@ -61,6 +61,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); @@ -108,6 +111,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/useBeforeDeclaration_superClass.js b/tests/baselines/reference/useBeforeDeclaration_superClass.js index 01492e31d89..f6f15c1d12f 100644 --- a/tests/baselines/reference/useBeforeDeclaration_superClass.js +++ b/tests/baselines/reference/useBeforeDeclaration_superClass.js @@ -37,6 +37,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/validUseOfThisInSuper.js b/tests/baselines/reference/validUseOfThisInSuper.js index d35b84f3df1..4903aba5a72 100644 --- a/tests/baselines/reference/validUseOfThisInSuper.js +++ b/tests/baselines/reference/validUseOfThisInSuper.js @@ -18,6 +18,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/varArgsOnConstructorTypes.js b/tests/baselines/reference/varArgsOnConstructorTypes.js index 2f328d6a43c..6106f7fb687 100644 --- a/tests/baselines/reference/varArgsOnConstructorTypes.js +++ b/tests/baselines/reference/varArgsOnConstructorTypes.js @@ -33,6 +33,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js index 91fdb7d3e1a..8bc8f89703b 100644 --- a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js +++ b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js @@ -76,6 +76,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); diff --git a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js index 0b39a6176ef..e6059cddb6b 100644 --- a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js +++ b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js @@ -76,6 +76,9 @@ var __extends = (this && this.__extends) || (function () { return extendStatics(d, b); }; return function (d, b) { + if (typeof b !== "function" && b !== null) { + throw new TypeError("Class extends value " + b + " is not a constructor or null"); + } extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());