From 8d23772b25115ecbcc7f42115754dfe67179621f Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 7 Aug 2017 17:51:11 -0700 Subject: [PATCH 1/4] Ensure .name property is set on all transpiled methods --- src/compiler/factory.ts | 15 +++++- src/compiler/transformers/es2015.ts | 74 ++++++++++++++++++++++++----- 2 files changed, 75 insertions(+), 14 deletions(-) diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 34727e4c41422..615d1d4a7a911 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -2777,9 +2777,17 @@ namespace ts { : createStrictEquality(createTypeOf(value), createLiteral(tag)); } - export function createMemberAccessForPropertyName(target: Expression, memberName: PropertyName, location?: TextRange): MemberExpression { + export function createMemberAccessForPropertyName(target: Expression, memberName: PropertyName, location?: TextRange, storePropertyName?: Push, context?: TransformationContext): MemberExpression { if (isComputedPropertyName(memberName)) { - return setTextRange(createElementAccess(target, memberName.expression), location); + // Assign the name to an identifier so that later we can set it's `.name` property without reinvoking the expression + if (storePropertyName) { + const id = createTempVariable(context.hoistVariableDeclaration); + storePropertyName.push(id); + return setTextRange(createElementAccess(target, createAssignment(id, memberName.expression)), location); + } + else { + return setTextRange(createElementAccess(target, memberName.expression), location); + } } else { const expression = setTextRange( @@ -2789,6 +2797,9 @@ namespace ts { memberName ); getOrCreateEmitNode(expression).flags |= EmitFlags.NoNestedSourceMaps; + if (storePropertyName) { + storePropertyName.push(isIdentifier(memberName) ? createLiteral(unescapeLeadingUnderscores(memberName.escapedText)) : memberName); + } return expression; } } diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index f97de018d4ad0..aa623e628ecf9 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -862,7 +862,9 @@ namespace ts { startLexicalEnvironment(); addExtendsHelperIfNeeded(statements, node, extendsClauseElement); addConstructor(statements, node, extendsClauseElement); - addClassMembers(statements, node); + const memberNames: MemberName[] = []; + addClassMembers(statements, node, memberNames); + addNamesHelperIfNeeded(statements, node, memberNames); // Create a synthetic text range for the return statement. const closingBraceLocation = createTokenRange(skipTrivia(currentText, node.members.end), SyntaxKind.CloseBraceToken); @@ -906,6 +908,12 @@ namespace ts { } } + function addNamesHelperIfNeeded(statements: Statement[], node: ClassExpression | ClassDeclaration, memberNames: MemberName[]) { + if (memberNames && memberNames.length) { + statements.push(createStatement(createNamesHelper(context, createPropertyAccess(getInternalName(node), "prototype"), memberNames))); + } + } + /** * Adds the constructor of the class to a class body function. * @@ -1570,6 +1578,8 @@ namespace ts { return statements; } + type MemberName = Identifier | StringLiteral | NumericLiteral; + /** * Adds statements to the class body function for a class to define the members of the * class. @@ -1577,17 +1587,17 @@ namespace ts { * @param statements The statements for the class body function. * @param node The ClassExpression or ClassDeclaration node. */ - function addClassMembers(statements: Statement[], node: ClassExpression | ClassDeclaration): void { + function addClassMembers(statements: Statement[], node: ClassExpression | ClassDeclaration, memberNames: Push): void { for (const member of node.members) { switch (member.kind) { case SyntaxKind.SemicolonClassElement: statements.push(transformSemicolonClassElementToStatement(member)); break; - case SyntaxKind.MethodDeclaration: - statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node)); + case SyntaxKind.MethodDeclaration: { + statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node, memberNames)); break; - + } case SyntaxKind.GetAccessor: case SyntaxKind.SetAccessor: const accessors = getAllAccessorDeclarations(node.members, member); @@ -1623,11 +1633,11 @@ namespace ts { * @param receiver The receiver for the member. * @param member The MethodDeclaration node. */ - function transformClassMethodDeclarationToStatement(receiver: LeftHandSideExpression, member: MethodDeclaration, container: Node) { + function transformClassMethodDeclarationToStatement(receiver: LeftHandSideExpression, member: MethodDeclaration, container: Node, memberNames: Push) { const ancestorFacts = enterSubtree(HierarchyFacts.None, HierarchyFacts.None); const commentRange = getCommentRange(member); const sourceMapRange = getSourceMapRange(member); - const memberName = createMemberAccessForPropertyName(receiver, visitNode(member.name, visitor, isPropertyName), /*location*/ member.name); + const memberName = createMemberAccessForPropertyName(receiver, visitNode(member.name, visitor, isPropertyName), /*location*/ member.name, hasModifier(member, ModifierFlags.Static) ? undefined : memberNames, context); const memberFunction = transformFunctionLikeToExpression(member, /*location*/ member, /*name*/ undefined, container); setEmitFlags(memberFunction, EmitFlags.NoComments); setSourceMapRange(memberFunction, sourceMapRange); @@ -2643,7 +2653,11 @@ namespace ts { expressions.push(assignment); - addObjectLiteralMembers(expressions, node, temp, numInitialProperties); + const memberNames: MemberName[] = []; + addObjectLiteralMembers(expressions, node, temp, numInitialProperties, memberNames); + if (memberNames && memberNames.length) { + expressions.push(createNamesHelper(context, temp, memberNames)); + } // We need to clone the temporary identifier so that we can write it on a // new line @@ -3068,7 +3082,7 @@ namespace ts { * @param numInitialNonComputedProperties The number of initial properties without * computed property names. */ - function addObjectLiteralMembers(expressions: Expression[], node: ObjectLiteralExpression, receiver: Identifier, start: number) { + function addObjectLiteralMembers(expressions: Expression[], node: ObjectLiteralExpression, receiver: Identifier, start: number, memberNames: Push) { const properties = node.properties; const numProperties = properties.length; for (let i = start; i < numProperties; i++) { @@ -3084,7 +3098,7 @@ namespace ts { break; case SyntaxKind.MethodDeclaration: - expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine)); + expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine, memberNames)); break; case SyntaxKind.PropertyAssignment: @@ -3153,12 +3167,15 @@ namespace ts { * @param method The MethodDeclaration node. * @param receiver The receiver for the assignment. */ - function transformObjectLiteralMethodDeclarationToExpression(method: MethodDeclaration, receiver: Expression, container: Node, startsOnNewLine: boolean) { + function transformObjectLiteralMethodDeclarationToExpression(method: MethodDeclaration, receiver: Expression, container: Node, startsOnNewLine: boolean, memberNames: Push) { const ancestorFacts = enterSubtree(HierarchyFacts.None, HierarchyFacts.None); const expression = createAssignment( createMemberAccessForPropertyName( receiver, - visitNode(method.name, visitor, isPropertyName) + visitNode(method.name, visitor, isPropertyName), + /* location */ undefined, + memberNames, + context ), transformFunctionLikeToExpression(method, /*location*/ method, /*name*/ undefined, container) ); @@ -4099,4 +4116,37 @@ namespace ts { }; })();` }; + + function createNamesHelper(context: TransformationContext, proto: PropertyAccessExpression | Identifier, names: (Identifier | StringLiteral | NumericLiteral)[]) { + context.requestEmitHelper(nameHelper); + return createCall( + getHelperName("__names"), + /* typeArguments */ undefined, + [ + proto, + createArrayLiteral(names) + ] + ); + } + + const nameHelper: EmitHelper = { + name: "typescript:name", + scoped: false, + priority: 0, + text: ` + var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; + })();` + }; } From 499a7adb12a06d5ebeb613d3c7f108c8c7ddcd3d Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 7 Aug 2017 17:58:33 -0700 Subject: [PATCH 2/4] Massive baseline dump --- tests/baselines/reference/2dArrays.js | 15 + .../baselines/reference/ClassDeclaration11.js | 15 + .../baselines/reference/ClassDeclaration13.js | 15 + .../baselines/reference/ClassDeclaration21.js | 15 + .../baselines/reference/ClassDeclaration22.js | 15 + .../reference/ES5For-ofTypeCheck10.js | 18 +- .../baselines/reference/ES5SymbolProperty2.js | 18 +- .../baselines/reference/ES5SymbolProperty3.js | 18 +- .../baselines/reference/ES5SymbolProperty4.js | 18 +- .../baselines/reference/ES5SymbolProperty5.js | 18 +- .../baselines/reference/ES5SymbolProperty6.js | 18 +- .../baselines/reference/ES5SymbolProperty7.js | 18 +- ...ichExtendsInterfaceWithInaccessibleType.js | 15 + tests/baselines/reference/Protected4.js | 15 + tests/baselines/reference/Protected7.js | 15 + ...ortedAndNonExportedClassesOfTheSameName.js | 15 + tests/baselines/reference/abstractProperty.js | 15 + .../accessInstanceMemberFromStaticMethod01.js | 15 + .../accessOverriddenBaseClassMember1.js | 16 + .../reference/accessibilityModifiers.js | 15 + .../ambiguousCallsWhereReturnTypesAgree.js | 16 + tests/baselines/reference/anonterface.js | 15 + .../reference/anonymousClassExpression2.js | 16 + tests/baselines/reference/argsInScope.js | 15 + .../reference/arrayAssignmentTest1.js | 17 + .../reference/arrayAssignmentTest2.js | 17 + .../reference/arrayAssignmentTest4.js | 15 + .../reference/arrayAssignmentTest5.js | 15 + .../reference/arrayAssignmentTest6.js | 15 + .../reference/arrayBestCommonTypes.js | 16 + .../reference/arrayOfExportedClass.js | 15 + .../arrayReferenceWithoutTypeArgs.js | 15 + tests/baselines/reference/arrayconcat.js | 15 + .../reference/arrowFunctionExpressions.js | 15 + tests/baselines/reference/asiAbstract.js | 15 + tests/baselines/reference/asiInES6Classes.js | 15 + .../reference/asiPublicPrivateProtected.js | 20 + .../assertInWrapSomeTypeParameter.js | 15 + .../reference/assignToExistingClass.js | 15 + ...CompatInterfaceWithStringIndexSignature.js | 15 + .../reference/assignmentLHSIsValue.js | 16 + ...asyncArrowFunctionCapturesArguments_es5.js | 1 + .../asyncArrowFunctionCapturesThis_es5.js | 1 + .../asyncAwaitIsolatedModules_es5.js | 15 + tests/baselines/reference/asyncAwait_es5.js | 15 + ...unctionDeclarationCapturesArguments_es5.js | 1 + .../reference/asyncImportedPromise_es5.js | 15 + .../reference/asyncMethodWithSuper_es5.js | 2 + .../reference/augmentedTypesClass.js | 16 + .../reference/augmentedTypesClass2.js | 17 + .../reference/augmentedTypesClass2a.js | 15 + .../reference/augmentedTypesClass3.js | 18 + .../reference/augmentedTypesClass4.js | 16 + .../baselines/reference/augmentedTypesEnum.js | 15 + .../reference/augmentedTypesEnum2.js | 15 + .../augmentedTypesExternalModule1.js | 15 + .../reference/augmentedTypesFunction.js | 15 + .../reference/augmentedTypesInterface.js | 15 + .../reference/augmentedTypesModules.js | 21 + .../reference/augmentedTypesModules2.js | 15 + .../reference/augmentedTypesModules3.js | 15 + .../reference/augmentedTypesModules3b.js | 17 + .../reference/augmentedTypesModules4.js | 15 + .../baselines/reference/augmentedTypesVar.js | 15 + tests/baselines/reference/autoLift2.js | 15 + tests/baselines/reference/autolift4.js | 16 + tests/baselines/reference/avoid.js | 15 + tests/baselines/reference/baseCheck.js | 15 + .../reference/baseTypeAfterDerivedType.js | 15 + .../baseTypeWrappingInstantiationChain.js | 16 + .../binopAssignmentShouldHaveType.js | 15 + ...kScopedFunctionDeclarationInStrictClass.js | 15 + .../blockScopedVariablesUseBeforeDef.js | 16 + ...ctionWithIncorrectNumberOfTypeArguments.js | 16 + ...allGenericFunctionWithZeroTypeArguments.js | 16 + ...callNonGenericFunctionWithTypeArguments.js | 16 + .../callOverloadViaElementAccessExpression.js | 15 + tests/baselines/reference/callOverloads1.js | 15 + tests/baselines/reference/callOverloads2.js | 15 + tests/baselines/reference/callOverloads3.js | 15 + tests/baselines/reference/callOverloads4.js | 15 + tests/baselines/reference/callOverloads5.js | 15 + ...tureWithOptionalParameterAndInitializer.js | 15 + ...sWithAccessibilityModifiersOnParameters.js | 15 + .../callSignaturesWithDuplicateParameters.js | 15 + .../callSignaturesWithOptionalParameters.js | 15 + .../callSignaturesWithOptionalParameters2.js | 15 + ...callSignaturesWithParameterInitializers.js | 15 + ...allSignaturesWithParameterInitializers2.js | 15 + tests/baselines/reference/callWithSpread.js | 16 + ...captureSuperPropertyAccessInSuperCall01.js | 15 + .../reference/captureThisInSuperCall.js | 15 + .../reference/capturedLetConstInLoop10.js | 16 + .../reference/capturedLetConstInLoop13.js | 15 + .../reference/capturedLetConstInLoop9.js | 16 + ...arameterConstrainedToOtherTypeParameter.js | 15 + ...rameterConstrainedToOtherTypeParameter2.js | 16 + .../reference/checkJsxChildrenProperty10.js | 15 + .../reference/checkJsxChildrenProperty11.js | 15 + .../reference/checkJsxChildrenProperty12.js | 16 + .../reference/checkJsxChildrenProperty13.js | 16 + .../reference/checkJsxChildrenProperty3.js | 15 + .../reference/checkJsxChildrenProperty4.js | 15 + .../reference/checkJsxChildrenProperty5.js | 15 + .../reference/checkJsxChildrenProperty6.js | 15 + .../reference/checkJsxChildrenProperty7.js | 15 + .../reference/checkJsxChildrenProperty8.js | 15 + .../checkSwitchStatementIfCaseTypeIsString.js | 15 + .../reference/classAbstractAsIdentifier.js | 15 + .../reference/classAbstractCrashedOnce.js | 15 + .../reference/classAbstractExtends.js | 16 + .../reference/classAbstractGeneric.js | 17 + .../reference/classAbstractInstantiations2.js | 17 + .../classAbstractMethodInNonAbstractClass.js | 15 + .../classAbstractMethodWithImplementation.js | 15 + .../reference/classAbstractOverloads.js | 15 + .../classAbstractOverrideWithAbstract.js | 18 + .../reference/classAbstractSuperCalls.js | 18 + .../classAbstractUsingAbstractMethod1.js | 15 + .../classAbstractUsingAbstractMethods2.js | 17 + .../baselines/reference/classBlockScoping.js | 16 + .../classConstructorAccessibility2.js | 20 + .../classConstructorAccessibility4.js | 18 + tests/baselines/reference/classExpression4.js | 15 + tests/baselines/reference/classExpression5.js | 15 + .../reference/classExpressionTest1.js | 15 + .../reference/classExpressionTest2.js | 15 + tests/baselines/reference/classExpressions.js | 15 + .../reference/classExtendingClass.js | 16 + ...sInterfaceThatExtendsClassWithPrivates1.js | 16 + .../reference/classImplementsClass2.js | 16 + .../reference/classImplementsClass3.js | 16 + .../reference/classImplementsClass4.js | 16 + .../reference/classImplementsClass5.js | 16 + .../reference/classImplementsClass6.js | 16 + .../classImplementsImportedInterface.js | 15 + tests/baselines/reference/classOrder1.js | 15 + tests/baselines/reference/classOrder2.js | 16 + .../reference/classPropertyAsPrivate.js | 15 + .../reference/classPropertyAsProtected.js | 15 + .../classPropertyIsPublicByDefault.js | 15 + .../reference/classSideInheritance1.js | 15 + .../reference/classSideInheritance2.js | 15 + .../reference/classWithDuplicateIdentifier.js | 16 + .../reference/classWithMultipleBaseClasses.js | 17 + ...hOnlyPublicMembersEquivalentToInterface.js | 15 + ...OnlyPublicMembersEquivalentToInterface2.js | 15 + .../reference/classWithOptionalParameter.js | 16 + ...ssWithOverloadImplementationOfWrongName.js | 15 + ...sWithOverloadImplementationOfWrongName2.js | 15 + .../reference/classWithPrivateProperty.js | 15 + .../reference/classWithProtectedProperty.js | 16 + .../reference/classWithPublicProperty.js | 15 + tests/baselines/reference/classdecl.js | 17 + .../cloduleAcrossModuleDefinitions.js | 15 + .../collisionArgumentsClassMethod.js | 16 + ...ollisionCodeGenModuleWithMethodChildren.js | 18 + .../collisionRestParameterClassMethod.js | 16 + .../collisionSuperAndLocalFunctionInMethod.js | 17 + .../collisionSuperAndLocalVarInMethod.js | 17 + .../collisionSuperAndNameResolution.js | 15 + .../reference/collisionSuperAndParameter.js | 17 + .../reference/collisionSuperAndParameter1.js | 15 + ...lisionThisExpressionAndLocalVarInMethod.js | 15 + ...xpressionAndLocalVarWithSuperExperssion.js | 17 + ...ollisionThisExpressionAndNameResolution.js | 15 + .../collisionThisExpressionAndParameter.js | 16 + .../reference/commentOnClassMethod1.js | 15 + .../reference/commentOnSignature1.js | 15 + .../reference/commentsClassMembers.js | 15 + .../reference/commentsInheritance.js | 17 + .../baselines/reference/commentsOverloads.js | 15 + .../reference/commentsTypeParameters.js | 15 + .../reference/commentsdoNotEmitComments.js | 15 + .../reference/commentsemitComments.js | 15 + .../comparisonOperatorWithIdenticalObjects.js | 17 + .../reference/complexClassRelationships.js | 16 + .../reference/complexNarrowingWithAny.js | 15 + .../baselines/reference/complicatedPrivacy.js | 16 + .../reference/compoundAssignmentLHSIsValue.js | 16 + ...poundExponentiationAssignmentLHSIsValue.js | 16 + .../reference/computedPropertyNames10_ES5.js | 38 +- .../reference/computedPropertyNames13_ES5.js | 30 +- .../reference/computedPropertyNames14_ES5.js | 22 +- .../reference/computedPropertyNames15_ES5.js | 22 +- .../reference/computedPropertyNames21_ES5.js | 18 +- .../reference/computedPropertyNames22_ES5.js | 19 +- .../reference/computedPropertyNames23_ES5.js | 19 +- .../reference/computedPropertyNames24_ES5.js | 19 +- .../reference/computedPropertyNames25_ES5.js | 20 +- .../reference/computedPropertyNames26_ES5.js | 20 +- .../reference/computedPropertyNames27_ES5.js | 18 +- .../reference/computedPropertyNames28_ES5.js | 18 +- .../reference/computedPropertyNames29_ES5.js | 21 +- .../reference/computedPropertyNames2_ES5.js | 18 +- .../reference/computedPropertyNames30_ES5.js | 18 +- .../reference/computedPropertyNames31_ES5.js | 22 +- .../reference/computedPropertyNames32_ES5.js | 18 +- .../reference/computedPropertyNames33_ES5.js | 19 +- .../reference/computedPropertyNames34_ES5.js | 18 +- .../reference/computedPropertyNames3_ES5.js | 18 +- .../reference/computedPropertyNames40_ES5.js | 20 +- ...omputedPropertyNamesContextualType1_ES5.js | 20 +- ...omputedPropertyNamesContextualType2_ES5.js | 20 +- ...omputedPropertyNamesContextualType3_ES5.js | 20 +- ...mputedPropertyNamesDeclarationEmit1_ES5.js | 18 +- ...mputedPropertyNamesDeclarationEmit5_ES5.js | 20 +- .../computedPropertyNamesOnOverloads_ES5.js | 18 +- .../computedPropertyNamesSourceMap1_ES5.js | 18 +- ...computedPropertyNamesSourceMap1_ES5.js.map | 2 +- ...dPropertyNamesSourceMap1_ES5.sourcemap.txt | 100 +- .../computedPropertyNamesSourceMap2_ES5.js | 20 +- ...computedPropertyNamesSourceMap2_ES5.js.map | 2 +- ...dPropertyNamesSourceMap2_ES5.sourcemap.txt | 81 +- .../reference/conflictMarkerDiff3Trivia2.js | 15 + .../reference/conflictMarkerTrivia2.js | 15 + .../reference/constantOverloadFunction.js | 18 + .../constantOverloadFunctionNoSubtypeError.js | 18 + ...nstraintCheckInGenericBaseTypeReference.js | 16 + .../reference/constructorOverloads1.js | 15 + .../reference/constructorOverloads2.js | 16 + .../reference/constructorOverloads3.js | 15 + .../constructorReturnsInvalidType.js | 15 + ...constructorWithIncompleteTypeAnnotation.js | 18 + .../contextualTypeAppliedToVarArgs.js | 15 + ...TypedClassExpressionMethodDeclaration02.js | 15 + .../controlFlowSuperPropertyAccess.js | 15 + .../crashInresolveReturnStatement.js | 16 + ...rashIntypeCheckObjectCreationExpression.js | 15 + .../reference/crashRegressionTest.js | 15 + ...declFileForClassWithMultipleBaseClasses.js | 17 + ...leForClassWithPrivateOverloadedFunction.js | 15 + .../reference/declFileForTypeParameters.js | 15 + tests/baselines/reference/declFileMethods.js | 30 + .../declFilePrivateMethodOverloads.js | 15 + tests/baselines/reference/declInput-2.js | 15 + tests/baselines/reference/declInput.js | 15 + tests/baselines/reference/declInput3.js | 15 + tests/baselines/reference/declInput4.js | 15 + .../declarationEmitClassMemberNameConflict.js | 18 + .../declarationEmitProtectedMembers.js | 17 + .../declarationEmitThisPredicates01.js | 15 + ...tionEmitThisPredicatesWithPrivateName01.js | 15 + tests/baselines/reference/declarationFiles.js | 16 + .../reference/declarationMerging1.js | 15 + .../reference/declarationMerging2.js | 15 + .../decoratorChecksFunctionBodies.js | 15 + .../baselines/reference/decoratorMetadata.js | 15 + ...taForMethodWithNoReturnTypeAnnotation01.js | 1 + ...orMetadataRestParameterWithImportedType.js | 15 + ...adataWithImportDeclarationNameCollision.js | 1 + ...dataWithImportDeclarationNameCollision2.js | 1 + ...dataWithImportDeclarationNameCollision3.js | 1 + ...dataWithImportDeclarationNameCollision4.js | 1 + ...dataWithImportDeclarationNameCollision5.js | 1 + ...dataWithImportDeclarationNameCollision6.js | 1 + ...dataWithImportDeclarationNameCollision7.js | 1 + ...dataWithImportDeclarationNameCollision8.js | 1 + .../baselines/reference/decoratorOnClass9.js | 15 + .../reference/decoratorOnClassMethod1.js | 15 + .../reference/decoratorOnClassMethod10.js | 15 + .../reference/decoratorOnClassMethod11.js | 15 + .../reference/decoratorOnClassMethod12.js | 16 + .../reference/decoratorOnClassMethod2.js | 15 + .../reference/decoratorOnClassMethod3.js | 15 + .../reference/decoratorOnClassMethod8.js | 15 + .../decoratorOnClassMethodOverload1.js | 15 + .../decoratorOnClassMethodOverload2.js | 15 + .../decoratorOnClassMethodParameter1.js | 15 + .../decoratorWithUnderscoreMethod.js | 1 + .../reference/defaultArgsInOverloads.js | 15 + ...edClassConstructorWithExplicitReturns01.js | 15 + ...assConstructorWithExplicitReturns01.js.map | 2 +- ...tructorWithExplicitReturns01.sourcemap.txt | 279 ++-- ...ClassFunctionOverridesBaseClassAccessor.js | 15 + .../derivedClassIncludesInheritedMembers.js | 15 + .../derivedClassOverridesPrivateFunction1.js | 16 + .../derivedClassOverridesProtectedMembers.js | 16 + .../derivedClassOverridesProtectedMembers2.js | 16 + .../derivedClassOverridesProtectedMembers3.js | 16 + .../derivedClassOverridesPublicMembers.js | 16 + ...dClassSuperCallsInNonConstructorMembers.js | 15 + .../reference/derivedClassTransitivity.js | 17 + .../reference/derivedClassTransitivity2.js | 17 + .../reference/derivedClassTransitivity3.js | 17 + .../reference/derivedClassTransitivity4.js | 17 + .../reference/derivedClassWithAny.js | 17 + ...ivateInstanceShadowingProtectedInstance.js | 16 + ...hPrivateInstanceShadowingPublicInstance.js | 16 + tests/baselines/reference/derivedClasses.js | 17 + .../reference/derivedGenericClassWithAny.js | 17 + ...sesHiddenBaseCallViaSuperPropertyAccess.js | 16 + ...edTypeCallingBaseImplWithOptionalParams.js | 15 + .../destructuringParameterDeclaration1ES5.js | 16 + ...cturingParameterDeclaration1ES5iterable.js | 16 + .../destructuringParameterDeclaration2.js | 15 + .../destructuringParameterProperties2.js | 15 + .../destructuringParameterProperties3.js | 15 + .../detachedCommentAtStartOfFunctionBody1.js | 15 + .../detachedCommentAtStartOfFunctionBody2.js | 15 + ...detachedCommentAtStartOfLambdaFunction1.js | 15 + ...detachedCommentAtStartOfLambdaFunction2.js | 15 + .../doNotEmitPinnedCommentOnNotEmittedNode.js | 15 + ...oNotEmitPinnedCommentOnNotEmittedNodets.js | 15 + .../reference/dottedSymbolResolution1.js | 15 + .../reference/downlevelLetConst16.js | 16 + .../reference/duplicateClassElements.js | 15 + .../reference/duplicateLocalVariable1.js | 15 + .../reference/duplicateLocalVariable2.js | 15 + .../reference/duplicatePropertyNames.js | 15 + .../reference/duplicateTypeParameters2.js | 16 + .../reference/duplicateVariablesByScope.js | 15 + .../emitArrowFunctionWhenUsingArguments12.js | 15 + .../emitCapturingThisInTupleDestructuring2.js | 15 + .../emitClassExpressionInDeclarationFile.js | 18 + .../emitClassExpressionInDeclarationFile2.js | 17 + .../reference/emitDecoratorMetadata_object.js | 15 + .../emitDecoratorMetadata_restArgs.js | 16 + .../reference/emitDefaultParametersMethod.js | 15 + .../reference/emitMemberAccessExpression.js | 15 + .../reference/emitRestParametersMethod.js | 16 + .../reference/emitThisInSuperMethodCall.js | 16 + ...mitter.asyncGenerators.classMethods.es5.js | 136 ++ .../errorRecoveryInClassDeclaration.js | 15 + tests/baselines/reference/errorSuperCalls.js | 16 + .../reference/errorSuperPropertyAccess.js | 18 + .../reference/errorsInGenericTypeReference.js | 17 + tests/baselines/reference/es3-amd.js | 15 + .../reference/es3-declaration-amd.js | 15 + .../baselines/reference/es3-sourcemap-amd.js | 15 + .../reference/es3-sourcemap-amd.js.map | 2 +- .../reference/es3-sourcemap-amd.sourcemap.txt | 57 +- tests/baselines/reference/es5-amd.js | 15 + tests/baselines/reference/es5-commonjs.js | 15 + tests/baselines/reference/es5-commonjs4.js | 15 + .../reference/es5-declaration-amd.js | 15 + tests/baselines/reference/es5-souremap-amd.js | 15 + .../reference/es5-souremap-amd.js.map | 2 +- .../reference/es5-souremap-amd.sourcemap.txt | 57 +- tests/baselines/reference/es5-system.js | 15 + tests/baselines/reference/es5-umd.js | 15 + tests/baselines/reference/es5-umd2.js | 15 + tests/baselines/reference/es5-umd3.js | 15 + tests/baselines/reference/es5-umd4.js | 15 + .../es5ExportDefaultClassDeclaration.js | 15 + .../es5ExportDefaultClassDeclaration2.js | 15 + .../es5ExportDefaultClassDeclaration3.js | 15 + .../baselines/reference/es5ExportEqualsDts.js | 15 + .../reference/es5ModuleWithModuleGenAmd.js | 15 + .../es5ModuleWithModuleGenCommonjs.js | 15 + .../es5ModuleWithoutModuleGenTarget.js | 15 + tests/baselines/reference/es5andes6module.js | 15 + tests/baselines/reference/es6ClassTest.js | 16 + tests/baselines/reference/es6ClassTest2.js | 21 + tests/baselines/reference/es6ClassTest3.js | 15 + tests/baselines/reference/es6DeclOrdering.js | 15 + tests/baselines/reference/es6MemberScoping.js | 15 + .../reference/es6modulekindWithES5Target.js | 16 + .../reference/es6modulekindWithES5Target11.js | 15 + .../reference/es6modulekindWithES5Target2.js | 15 + .../reference/es6modulekindWithES5Target3.js | 15 + .../baselines/reference/escapedIdentifiers.js | 15 + .../baselines/reference/exportPrivateType.js | 15 + .../expressionTypeNodeShouldError.js | 45 + .../extendAndImplementTheSameBaseType.js | 16 + .../extendAndImplementTheSameBaseType2.js | 16 + .../reference/extendNonClassSymbol1.js | 15 + .../reference/extendsClauseAlreadySeen.js | 15 + .../reference/extendsClauseAlreadySeen2.js | 15 + .../reference/externalModuleQualification.js | 15 + tests/baselines/reference/fatArrowSelf.js | 16 + tests/baselines/reference/flowInFinally1.js | 15 + tests/baselines/reference/fluentClasses.js | 17 + tests/baselines/reference/for-inStatements.js | 16 + .../reference/for-inStatementsInvalid.js | 16 + .../reference/forwardRefInClassProperties.js | 15 + .../functionAndPropertyNameConflict.js | 15 + .../reference/functionArgShadowing.js | 16 + .../functionExpressionContextualTyping1.js | 15 + .../reference/functionOverloadErrors.js | 15 + .../baselines/reference/functionOverloads5.js | 15 + .../baselines/reference/functionOverloads7.js | 15 + .../reference/functionOverloadsOutOfOrder.js | 16 + .../reference/functionSubtypingOfVarArgs.js | 16 + .../reference/functionSubtypingOfVarArgs2.js | 16 + .../reference/functionWithSameNameAsField.js | 15 + .../reference/functionsInClassExpressions.js | 15 + tests/baselines/reference/fuzzy.js | 15 + .../genericArrayWithoutTypeAnnotation.js | 15 + .../genericAssignmentCompatWithInterfaces1.js | 15 + .../genericBaseClassLiteralProperty.js | 15 + .../genericBaseClassLiteralProperty2.js | 15 + .../genericCallTypeArgumentInference.js | 15 + ...allWithConstraintsTypeArgumentInference.js | 15 + .../genericCallWithFixedArguments.js | 16 + .../genericCallbacksAndClassHierarchy.js | 15 + ...cClassPropertyInheritanceSpecialization.js | 15 + ...icClassWithFunctionTypedMemberArguments.js | 19 + ...icClassWithObjectTypeArgsAndConstraints.js | 16 + .../genericClassWithStaticFactory.js | 16 + tests/baselines/reference/genericClasses4.js | 15 + .../reference/genericClassesInModule2.js | 15 + .../reference/genericCloduleInModule.js | 15 + .../reference/genericCloduleInModule2.js | 15 + .../reference/genericCloneReturnTypes.js | 15 + .../reference/genericCloneReturnTypes2.js | 15 + .../baselines/reference/genericConstraint1.js | 15 + .../baselines/reference/genericConstraint2.js | 15 + ...genericFunctionsWithOptionalParameters3.js | 15 + .../baselines/reference/genericImplements.js | 17 + .../baselines/reference/genericInstanceOf.js | 15 + .../genericInterfaceImplementation.js | 15 + .../reference/genericMemberFunction.js | 17 + .../reference/genericObjectLitReturnType.js | 15 + .../reference/genericOfACloduleType1.js | 16 + .../reference/genericOfACloduleType2.js | 16 + .../reference/genericPrototypeProperty.js | 15 + ...ericRecursiveImplicitConstructorErrors2.js | 15 + ...ericRecursiveImplicitConstructorErrors3.js | 15 + .../genericReversingTypeParameters.js | 15 + .../genericReversingTypeParameters2.js | 15 + .../reference/genericSpecializations1.js | 17 + .../reference/genericSpecializations2.js | 18 + .../reference/genericSpecializations3.js | 18 + .../reference/genericTypeAssertions1.js | 15 + .../reference/genericTypeAssertions2.js | 16 + .../reference/genericTypeAssertions4.js | 17 + .../reference/genericTypeAssertions6.js | 16 + .../reference/genericTypeConstraints.js | 15 + .../genericTypeReferencesRequireTypeArgs.js | 15 + .../genericTypeWithCallableMembers.js | 15 + .../genericTypeWithNonGenericBaseMisMatch.js | 15 + .../reference/genericWithCallSignatures1.js | 15 + .../genericWithIndexerOfTypeParameterType1.js | 15 + .../genericWithIndexerOfTypeParameterType2.js | 15 + .../genericWithOpenTypeParameters1.js | 15 + .../genericsWithDuplicateTypeParameters1.js | 15 + .../genericsWithoutTypeParameters1.js | 15 + .../reference/getAndSetAsMemberNames.js | 16 + .../reference/getterControlFlowStrictNull.js | 15 + .../getterThatThrowsShouldNotNeedReturn.js | 15 + tests/baselines/reference/giant.js | 20 + .../reference/grammarAmbiguities1.js | 16 + .../heterogeneousArrayAndOverloads.js | 15 + .../implementGenericWithMismatchedTypes.js | 16 + .../implementInterfaceAnyMemberWithVoid.js | 15 + .../reference/implementsClauseAlreadySeen.js | 15 + .../reference/implementsInClassExpression.js | 15 + .../implicitAnyAnyReturningFunction.js | 15 + .../reference/implicitAnyCastedValue.js | 15 + .../implicitAnyDeclareMemberWithoutType2.js | 15 + ...mplicitAnyFunctionReturnNullOrUndefined.js | 15 + .../baselines/reference/implicitAnyInCatch.js | 15 + .../importAndVariableDeclarationConflict2.js | 15 + .../baselines/reference/importAsBaseClass.js | 15 + .../importCallExpressionAsyncES3AMD.js | 15 + .../importCallExpressionAsyncES3CJS.js | 15 + .../importCallExpressionAsyncES3System.js | 15 + .../importCallExpressionAsyncES3UMD.js | 15 + .../importCallExpressionAsyncES5AMD.js | 15 + .../importCallExpressionAsyncES5CJS.js | 15 + .../importCallExpressionAsyncES5System.js | 15 + .../importCallExpressionAsyncES5UMD.js | 15 + .../reference/importCallExpressionES5AMD.js | 16 + .../reference/importCallExpressionES5CJS.js | 16 + .../importCallExpressionES5System.js | 16 + .../reference/importCallExpressionES5UMD.js | 16 + ...portCallExpressionNoModuleKindSpecified.js | 30 + tests/baselines/reference/importHelpers.js | 16 + .../importHelpersInIsolatedModules.js | 2 + .../reference/importHelpersNoHelpers.js | 16 + .../reference/importHelpersNoModule.js | 16 + .../import_reference-exported-alias.js | 15 + .../import_reference-to-type-alias.js | 15 + .../importedAliasesInTypePositions.js | 15 + .../reference/inOperatorWithGeneric.js | 15 + ...atibleAssignmentOfIdenticallyNamedTypes.js | 15 + .../baselines/reference/incompatibleTypes.js | 16 + .../reference/incrementOnTypeParameter.js | 15 + tests/baselines/reference/indexTypeCheck.js | 15 + .../reference/indexedAccessRelation.js | 16 + .../reference/indexedAccessTypeConstraints.js | 17 + .../indexerReturningTypeParameter1.js | 15 + .../reference/indexersInClassType.js | 15 + .../inferFromGenericFunctionReturnTypes1.js | 15 + .../inferFromGenericFunctionReturnTypes2.js | 15 + ...inferParameterWithMethodCallInitializer.js | 16 + .../inferentialTypingUsingApparentType3.js | 16 + .../inferringClassMembersFromAssignments.js | 15 + tests/baselines/reference/inheritance.js | 16 + tests/baselines/reference/inheritance1.js | 18 + ...itanceGrandParentPrivateMemberCollision.js | 16 + ...tPrivateMemberCollisionWithPublicMember.js | 16 + ...tPublicMemberCollisionWithPrivateMember.js | 16 + ...heritanceMemberAccessorOverridingMethod.js | 15 + ...inheritanceMemberFuncOverridingAccessor.js | 15 + .../inheritanceMemberFuncOverridingMethod.js | 16 + ...inheritanceMemberFuncOverridingProperty.js | 15 + ...heritanceMemberPropertyOverridingMethod.js | 15 + tests/baselines/reference/innerAliases2.js | 15 + .../innerTypeParameterShadowingOuterOne2.js | 16 + .../instanceAndStaticDeclarations1.js | 15 + .../instanceMemberAssignsToClassPrototype.js | 15 + ...nstancePropertiesInheritedIntoClassType.js | 16 + .../reference/instancePropertyInClassType.js | 16 + .../instanceofOperatorWithInvalidOperands.js | 15 + .../instantiatedBaseTypeConstraints.js | 15 + .../instantiatedReturnTypeContravariance.js | 16 + tests/baselines/reference/intTypeCheck.js | 15 + .../reference/interfaceClassMerging.js | 16 + .../reference/interfaceClassMerging2.js | 16 + .../reference/interfaceContextualType.js | 15 + .../reference/interfaceExtendingClass.js | 15 + .../reference/interfaceExtendingClass2.js | 15 + .../reference/interfaceExtendsClass1.js | 17 + .../interfaceExtendsClassWithPrivate1.js | 16 + .../interfaceExtendsClassWithPrivate2.js | 17 + .../reference/interfaceImplementation1.js | 15 + .../reference/interfaceImplementation3.js | 15 + .../reference/interfaceImplementation4.js | 15 + .../reference/interfaceImplementation7.js | 15 + .../baselines/reference/interfaceSubtyping.js | 15 + ...aceWithPropertyThatIsPrivateInBaseType2.js | 16 + ...alAliasClassInsideLocalModuleWithExport.js | 15 + ...liasClassInsideLocalModuleWithoutExport.js | 15 + ...sideLocalModuleWithoutExportAccessError.js | 15 + ...liasClassInsideTopLevelModuleWithExport.js | 15 + ...sClassInsideTopLevelModuleWithoutExport.js | 15 + .../reference/invalidNewTarget.es5.js | 20 +- .../reference/invalidReturnStatements.js | 15 + .../baselines/reference/invalidStaticField.js | 15 + ...nvalidThisEmitInContextualObjectLiteral.js | 15 + ...ationClassMethodContainingArrowFunction.js | 15 + .../jsxFactoryQualifiedNameWithEs5.js | 15 + .../baselines/reference/jsxInExtendsClause.js | 15 + tests/baselines/reference/jsxViaImport.2.js | 15 + tests/baselines/reference/jsxViaImport.js | 15 + .../reference/keyofAndIndexedAccess.js | 22 + tests/baselines/reference/lambdaArgCrash.js | 16 + tests/baselines/reference/lambdaPropSelf.js | 15 + tests/baselines/reference/lift.js | 15 + tests/baselines/reference/listFailure.js | 16 + tests/baselines/reference/literalTypes2.js | 15 + tests/baselines/reference/localTypes1.js | 15 + tests/baselines/reference/localTypes5.js | 15 + .../reference/looseThisTypeInFunctions.js | 15 + tests/baselines/reference/mappedTypeErrors.js | 15 + .../reference/mappedTypePartialConstraints.js | 15 + .../reference/matchReturnTypeInAllBranches.js | 15 + .../memberFunctionsWithPrivateOverloads.js | 16 + .../memberFunctionsWithPublicOverloads.js | 16 + ...mberFunctionsWithPublicPrivateOverloads.js | 16 + .../reference/mergedDeclarations5.js | 30 + .../reference/mergedDeclarations6.js | 30 + .../mergedInheritedClassInterface.js | 17 + .../methodContainingLocalFunction.js | 17 + .../methodSignatureDeclarationEmit1.js | 15 + .../reference/mismatchedGenericArguments1.js | 16 + .../reference/missingDecoratorType.js | 15 + .../missingPropertiesOfClassExpression.js | 15 + .../reference/missingReturnStatement.js | 15 + .../reference/missingReturnStatement1.js | 15 + tests/baselines/reference/missingSelf.js | 16 + .../mixedStaticAndInstanceClassMembers.js | 16 + .../reference/mixinAccessModifiers.js | 17 + .../reference/mixinClassesAnnotated.js | 16 + .../reference/mixinClassesAnonymous.js | 16 + .../reference/mixinClassesMembers.js | 15 + .../reference/mixinPrivateAndProtected.js | 17 + .../mixingStaticAndInstanceOverloads.js | 17 + ...ifierOnClassDeclarationMemberInFunction.js | 15 + ...difierOnClassExpressionMemberInFunction.js | 15 + .../reference/moduleAliasInterface.js | 15 + .../baselines/reference/moduleCodeGenTest5.js | 16 + .../moduleMemberWithoutTypeAnnotation1.js | 18 + tests/baselines/reference/moduleMerge.js | 16 + .../baselines/reference/moduleNewExportBug.js | 15 + .../reference/moduleReopenedTypeOtherBlock.js | 15 + .../reference/moduleReopenedTypeSameBlock.js | 15 + .../reference/moduleVisibilityTest1.js | 15 + .../reference/moduleVisibilityTest2.js | 15 + tests/baselines/reference/moduledecl.js | 18 + .../baselines/reference/multiImportExport.js | 15 + .../reference/multiModuleClodule1.js | 15 + .../reference/multipleDeclarations.js | 16 + .../reference/multipleInheritance.js | 16 + .../mutuallyRecursiveGenericBaseTypes2.js | 15 + .../reference/narrowTypeByInstanceof.js | 16 + .../reference/narrowedConstInMethod.js | 15 + tests/baselines/reference/nestedLoops.js | 15 + tests/baselines/reference/nestedSelf.js | 15 + tests/baselines/reference/neverType.js | 15 + tests/baselines/reference/newArrays.js | 15 + ...lisionThisExpressionAndLocalVarInMethod.js | 15 + ...ImplicitAnyDestructuringInPrivateMethod.js | 15 + .../noImplicitAnyForMethodParameters.js | 16 + .../noImplicitAnyParametersInClass.js | 15 + .../reference/noTypeArgumentOnReturnType1.js | 15 + .../nonMergedDeclarationsAndOverloads.js | 15 + ...icIndexerConstrainsPropertyDeclarations.js | 15 + ...cIndexerConstrainsPropertyDeclarations2.js | 16 + .../reference/numericIndexerConstraint1.js | 15 + .../reference/numericIndexerConstraint2.js | 15 + ...objectCreationOfElementAccessExpression.js | 15 + .../reference/objectRestParameterES5.js | 15 + tests/baselines/reference/objectSpread.js | 15 + .../reference/objectSpreadNegative.js | 15 + ...objectTypeHidingMembersOfExtendedObject.js | 15 + .../objectTypeHidingMembersOfObject.js | 15 + ...peHidingMembersOfObjectAssignmentCompat.js | 15 + ...eHidingMembersOfObjectAssignmentCompat2.js | 15 + .../objectTypesIdentityWithCallSignatures.js | 17 + .../objectTypesIdentityWithCallSignatures2.js | 17 + ...yWithCallSignaturesDifferingParamCounts.js | 17 + ...IdentityWithCallSignaturesWithOverloads.js | 17 + ...tTypesIdentityWithGenericCallSignatures.js | 17 + ...TypesIdentityWithGenericCallSignatures2.js | 17 + ...ricCallSignaturesDifferingByConstraints.js | 17 + ...icCallSignaturesDifferingByConstraints2.js | 18 + ...icCallSignaturesDifferingByConstraints3.js | 18 + ...ericCallSignaturesDifferingByReturnType.js | 17 + ...ricCallSignaturesDifferingByReturnType2.js | 17 + ...lSignaturesDifferingTypeParameterCounts.js | 17 + ...llSignaturesDifferingTypeParameterNames.js | 17 + ...WithGenericCallSignaturesOptionalParams.js | 17 + ...ithGenericCallSignaturesOptionalParams2.js | 17 + ...ithGenericCallSignaturesOptionalParams3.js | 17 + .../objectTypesWithOptionalProperties2.js | 16 + .../optionalArgsWithDefaultValues.js | 15 + .../optionalConstructorArgInSuper.js | 15 + tests/baselines/reference/optionalMethods.js | 16 + .../reference/optionalParamArgsTest.js | 15 + .../reference/optionalParamInOverride.js | 16 + tests/baselines/reference/out-flag.js | 15 + tests/baselines/reference/out-flag.js.map | 2 +- .../reference/out-flag.sourcemap.txt | 85 +- .../reference/overloadConsecutiveness.js | 15 + .../reference/overloadModifiersMustAgree.js | 15 + .../overloadOnConstConstraintChecks1.js | 19 + .../overloadOnConstConstraintChecks2.js | 15 + .../overloadOnConstConstraintChecks3.js | 15 + .../overloadOnConstConstraintChecks4.js | 15 + ...nstInBaseWithBadImplementationInDerived.js | 15 + .../reference/overloadOnConstInCallback1.js | 15 + .../reference/overloadOnConstInheritance4.js | 15 + .../overloadOnConstNoAnyImplementation2.js | 15 + ...verloadOnConstNoNonSpecializedSignature.js | 15 + .../overloadOnConstNoStringImplementation2.js | 15 + .../overloadOnConstantsInvalidOverload1.js | 18 + ...overloadResolutionOnDefaultConstructor1.js | 15 + .../reference/overloadingOnConstants1.js | 18 + .../reference/overloadsWithinClasses.js | 15 + .../overrideBaseIntersectionMethod.js | 17 + ...parameterInitializersForwardReferencing.js | 15 + .../parameterNamesInTypeParameterList.js | 15 + .../parameterPropertyOutsideConstructor.js | 15 + .../parametersWithNoAnnotationAreAny.js | 15 + tests/baselines/reference/parser509667.js | 15 + tests/baselines/reference/parser553699.js | 15 + tests/baselines/reference/parser618973.js | 15 + tests/baselines/reference/parserAstSpans1.js | 17 + tests/baselines/reference/parserClass1.js | 15 + .../reference/parserClassDeclaration11.js | 15 + .../reference/parserClassDeclaration13.js | 15 + .../reference/parserClassDeclaration16.js | 15 + .../reference/parserClassDeclaration19.js | 15 + .../reference/parserClassDeclaration20.js | 15 + .../reference/parserClassDeclaration21.js | 15 + .../reference/parserClassDeclaration22.js | 15 + .../parserES5ComputedPropertyName3.js | 18 +- .../reference/parserES5SymbolProperty7.js | 18 +- .../parserErrantSemicolonInClass1.js | 15 + .../parserErrorRecoveryIfStatement1.js | 15 + .../parserErrorRecoveryIfStatement2.js | 15 + .../parserErrorRecoveryIfStatement3.js | 15 + .../parserErrorRecoveryIfStatement4.js | 15 + .../parserErrorRecoveryIfStatement5.js | 15 + .../parserErrorRecoveryIfStatement6.js | 15 + .../reference/parserErrorRecovery_Block3.js | 15 + ...ErrorRecovery_IncompleteMemberVariable1.js | 15 + ...ErrorRecovery_IncompleteMemberVariable2.js | 15 + .../parserMemberFunctionDeclaration1.js | 15 + .../parserMemberFunctionDeclaration4.js | 15 + .../parserMemberFunctionDeclaration5.js | 15 + ...erMemberFunctionDeclarationAmbiguities1.js | 15 + .../parserMissingLambdaOpenBrace1.js | 15 + .../reference/parserParameterList1.js | 15 + .../reference/parserParameterList10.js | 15 + .../reference/parserParameterList16.js | 15 + .../reference/parserParameterList2.js | 15 + .../reference/parserParameterList3.js | 15 + .../reference/parserParameterList9.js | 15 + .../baselines/reference/parserRealSource1.js | 17 + .../baselines/reference/parserRealSource10.js | 21 + .../baselines/reference/parserRealSource11.js | 58 + .../baselines/reference/parserRealSource12.js | 17 + .../baselines/reference/parserRealSource14.js | 15 + .../baselines/reference/parserRealSource4.js | 18 + .../baselines/reference/parserRealSource5.js | 15 + .../baselines/reference/parserRealSource6.js | 15 + .../baselines/reference/parserRealSource8.js | 15 + .../baselines/reference/parserRealSource9.js | 15 + .../reference/parserSuperExpression1.js | 16 + .../reference/parserSuperExpression2.js | 15 + .../reference/parserSuperExpression3.js | 15 + .../reference/parserSuperExpression4.js | 16 + tests/baselines/reference/parserharness.js | 30 + tests/baselines/reference/parserindenter.js | 15 + ...sRecoversWhenHittingUnexpectedSemicolon.js | 15 + .../reference/primitiveConstraints2.js | 15 + tests/baselines/reference/primitiveMembers.js | 16 + tests/baselines/reference/privacyClass.js | 17 + .../privacyClassExtendsClauseDeclFile.js | 32 + tests/baselines/reference/privacyFunc.js | 18 + ...FunctionCannotNameParameterTypeDeclFile.js | 22 + ...acyFunctionCannotNameReturnTypeDeclFile.js | 18 + .../privacyFunctionParameterDeclFile.js | 59 + .../privacyFunctionReturnTypeDeclFile.js | 59 + tests/baselines/reference/privacyGetter.js | 17 + tests/baselines/reference/privacyGloClass.js | 16 + tests/baselines/reference/privacyGloFunc.js | 23 + tests/baselines/reference/privacyGloGetter.js | 15 + .../reference/privacyGloInterface.js | 16 + tests/baselines/reference/privacyGloVar.js | 16 + tests/baselines/reference/privacyInterface.js | 17 + .../privacyTypeParameterOfFunction.js | 20 + .../privacyTypeParameterOfFunctionDeclFile.js | 36 + .../reference/privacyTypeParametersOfClass.js | 20 + .../privacyTypeParametersOfClassDeclFile.js | 36 + tests/baselines/reference/privacyVar.js | 17 + .../reference/privateAccessInSubclass1.js | 15 + ...ivateClassPropertyAccessibleWithinClass.js | 16 + ...lassPropertyAccessibleWithinNestedClass.js | 16 + .../privateInstanceMemberAccessibility.js | 15 + .../reference/privateInstanceVisibility.js | 16 + ...tedMembersAreNotAccessibleDestructuring.js | 16 + .../baselines/reference/privateVisibility.js | 15 + tests/baselines/reference/privateVisibles.js | 15 + .../amd/li'b/class'A.js | 15 + .../node/li'b/class'A.js | 15 + .../amd/fs.js | 15 + .../node/fs.js | 15 + tests/baselines/reference/promiseChaining.js | 15 + tests/baselines/reference/promiseChaining1.js | 15 + tests/baselines/reference/promiseChaining2.js | 15 + ...rtyAccessOnTypeParameterWithConstraints.js | 15 + ...tyAccessOnTypeParameterWithConstraints2.js | 17 + ...tyAccessOnTypeParameterWithConstraints3.js | 17 + ...tyAccessOnTypeParameterWithConstraints4.js | 15 + ...tyAccessOnTypeParameterWithConstraints5.js | 17 + ...AccessOnTypeParameterWithoutConstraints.js | 15 + .../propertyAndFunctionWithSameName.js | 16 + tests/baselines/reference/propertyOrdering.js | 16 + .../baselines/reference/propertyOrdering2.js | 15 + ...ectedClassPropertyAccessibleWithinClass.js | 16 + ...lassPropertyAccessibleWithinNestedClass.js | 16 + ...sPropertyAccessibleWithinNestedSubclass.js | 16 + ...PropertyAccessibleWithinNestedSubclass1.js | 24 + ...edClassPropertyAccessibleWithinSubclass.js | 15 + ...dClassPropertyAccessibleWithinSubclass2.js | 19 + ...dClassPropertyAccessibleWithinSubclass3.js | 16 + .../protectedInstanceMemberAccessibility.js | 16 + tests/baselines/reference/protectedMembers.js | 17 + .../reference/quotedFunctionName1.js | 15 + .../reference/quotedPropertyName3.js | 15 + .../readonlyInNonPropertyParameters.js | 15 + tests/baselines/reference/readonlyMembers.js | 15 + .../recursiveBaseConstructorCreation1.js | 15 + .../reference/recursiveClassReferenceTest.js | 19 + .../recursiveClassReferenceTest.js.map | 2 +- .../recursiveClassReferenceTest.sourcemap.txt | 804 +++++------ .../reference/recursiveComplicatedClasses.js | 15 + .../reference/recursiveInheritance3.js | 15 + .../reference/requireEmitSemicolon.js | 15 + .../requiredInitializedParameter2.js | 15 + .../requiredInitializedParameter3.js | 15 + .../requiredInitializedParameter4.js | 15 + ...lassDeclarationWhenInBaseTypeResolution.js | 106 ++ .../restParameterAssignmentCompatibility.js | 17 + ...estParameterWithoutAnnotationIsAnyArray.js | 15 + .../restParametersOfNonArrayTypes.js | 15 + .../restParametersOfNonArrayTypes2.js | 16 + .../restParametersWithArrayTypeAnnotations.js | 16 + .../reference/returnInConstructor1.js | 19 + tests/baselines/reference/returnStatements.js | 15 + .../reference/returnTypeTypeArguments.js | 16 + ...peCheckExtendedClassInsidePublicMethod2.js | 15 + .../scopeCheckInsidePublicMethod1.js | 15 + .../reference/scopeResolutionIdentifiers.js | 15 + tests/baselines/reference/selfInCallback.js | 15 + tests/baselines/reference/selfInLambdas.js | 15 + .../selfReferencesInFunctionParameters.js | 15 + .../reference/shadowPrivateMembers.js | 16 + .../sigantureIsSubTypeIfTheyAreIdentical.js | 15 + ...reInstantiationWithRecursiveConstraints.js | 16 + .../baselines/reference/sourceMap-Comments.js | 15 + .../reference/sourceMap-Comments.js.map | 2 +- .../sourceMap-Comments.sourcemap.txt | 195 +-- .../reference/sourceMap-FileWithComments.js | 15 + .../sourceMap-FileWithComments.js.map | 2 +- .../sourceMap-FileWithComments.sourcemap.txt | 293 ++-- tests/baselines/reference/sourceMapSample.js | 15 + .../reference/sourceMapSample.js.map | 2 +- .../reference/sourceMapSample.sourcemap.txt | 449 +++--- .../reference/sourceMapValidationClass.js | 15 + .../reference/sourceMapValidationClass.js.map | 2 +- .../sourceMapValidationClass.sourcemap.txt | 189 +-- .../reference/sourceMapValidationClasses.js | 15 + .../sourceMapValidationClasses.js.map | 2 +- .../sourceMapValidationClasses.sourcemap.txt | 461 ++++--- .../sourceMapValidationDecorators.js | 15 + .../sourceMapValidationDecorators.js.map | 2 +- ...ourceMapValidationDecorators.sourcemap.txt | 379 +++--- .../specializedOverloadWithRestParameters.js | 16 + ...reIsNotSubtypeOfNonSpecializedSignature.js | 17 + ...atureIsSubtypeOfNonSpecializedSignature.js | 17 + tests/baselines/reference/spreadMethods.js | 15 + .../reference/staticAndMemberFunctions.js | 15 + .../staticAndNonStaticPropertiesSameName.js | 15 + .../reference/staticClassMemberError.js | 15 + tests/baselines/reference/staticClassProps.js | 15 + tests/baselines/reference/staticFactory1.js | 16 + .../reference/staticInstanceResolution.js | 15 + .../reference/staticInstanceResolution4.js | 15 + .../reference/staticMemberExportAccess.js | 15 + ...AndPublicMemberOfAnotherClassAssignment.js | 15 + ...dWithTypeParameterExtendsClauseDeclFile.js | 15 + .../reference/staticOffOfInstance1.js | 15 + .../reference/staticOffOfInstance2.js | 15 + .../staticPropertyAndFunctionWithSameName.js | 15 + .../reference/staticPropertyNameConflicts.js | 29 + .../reference/staticPropertyNotInClassType.js | 16 + ...trictModeReservedWordInClassDeclaration.js | 16 + .../strictModeUseContextualKeyword.js | 15 + ...ngIndexerConstrainsPropertyDeclarations.js | 15 + ...gIndexerConstrainsPropertyDeclarations2.js | 16 + .../stringLiteralTypeIsSubtypeOfString.js | 15 + ...gLiteralTypesInImplementationSignatures.js | 15 + ...LiteralTypesInImplementationSignatures2.js | 15 + tests/baselines/reference/stripInternal1.js | 15 + tests/baselines/reference/super.js | 18 + tests/baselines/reference/super1.js | 24 + tests/baselines/reference/super2.js | 20 + tests/baselines/reference/superAccess.js | 15 + tests/baselines/reference/superAccess2.js | 16 + .../reference/superAccessInFatArrow1.js | 16 + .../reference/superCallInNonStaticMethod.js | 16 + .../superCallInsideObjectLiteralExpression.js | 15 + .../reference/superCallOutsideConstructor.js | 15 + .../superCallParameterContextualTyping3.js | 15 + .../superCallWithMissingBaseClass.js | 15 + .../reference/superCallsInConstructor.js | 15 + tests/baselines/reference/superErrors.js | 16 + .../superHasMethodsFromMergedInterface.js | 16 + .../baselines/reference/superInCatchBlock1.js | 16 + .../reference/superInConstructorParam1.js | 15 + tests/baselines/reference/superInLambdas.js | 19 + .../reference/superInObjectLiterals_ES5.js | 16 + .../reference/superPropertyAccess.js | 16 + .../reference/superPropertyAccess1.js | 16 + ...essInComputedPropertiesOfNestedType_ES5.js | 20 +- .../superPropertyAccessInSuperCall01.js | 15 + .../reference/superPropertyAccessNoError.js | 16 + .../reference/superPropertyAccess_ES5.js | 15 + ...perPropertyInConstructorBeforeSuperCall.js | 15 + .../reference/superSymbolIndexedAccess5.js | 22 +- .../reference/superWithTypeArgument3.js | 16 + ...side-object-literal-getters-and-setters.js | 16 + tests/baselines/reference/thisBinding.js | 16 + tests/baselines/reference/thisCapture1.js | 15 + ...essionInCallExpressionWithTypeArguments.js | 15 + .../reference/thisInConstructorParameter2.js | 15 + .../reference/thisInInnerFunctions.js | 15 + tests/baselines/reference/thisInLambda.js | 15 + .../reference/thisInObjectLiterals.js | 15 + .../reference/thisInOuterClassBody.js | 15 + .../thisInPropertyBoundDeclarations.js | 15 + .../reference/thisTypeAndConstraints.js | 16 + .../reference/thisTypeAsConstraint.js | 15 + tests/baselines/reference/thisTypeErrors.js | 15 + .../baselines/reference/thisTypeInClasses.js | 16 + .../reference/thisTypeInFunctions.js | 17 + .../reference/thisTypeInFunctionsNegative.js | 18 + .../reference/thisWhenTypeCheckFails.js | 15 + .../reference/throwInEnclosingStatements.js | 15 + tests/baselines/reference/topLevel.js | 15 + ...railingCommaInHeterogenousArrayLiteral1.js | 15 + .../reference/tsxAttributeResolution10.js | 15 + .../reference/tsxAttributeResolution11.js | 15 + .../reference/tsxAttributeResolution15.js | 15 + .../reference/tsxAttributeResolution16.js | 15 + .../reference/tsxAttributeResolution9.js | 15 + .../tsxCorrectlyParseLessThanComparison1.js | 15 + .../tsxDefaultAttributesResolution1.js | 15 + .../tsxDefaultAttributesResolution2.js | 15 + .../tsxDefaultAttributesResolution3.js | 15 + .../baselines/reference/tsxDynamicTagName5.js | 15 + .../baselines/reference/tsxDynamicTagName7.js | 15 + .../baselines/reference/tsxDynamicTagName8.js | 15 + .../baselines/reference/tsxDynamicTagName9.js | 15 + tests/baselines/reference/tsxEmit1.js | 15 + .../reference/tsxExternalModuleEmit1.js | 30 + .../reference/tsxGenericAttributesType3.js | 16 + .../reference/tsxGenericAttributesType4.js | 16 + .../reference/tsxGenericAttributesType5.js | 16 + .../reference/tsxGenericAttributesType6.js | 16 + .../reference/tsxGenericAttributesType9.js | 15 + tests/baselines/reference/tsxReactEmit1.js | 15 + .../tsxSpreadAttributesResolution1.js | 15 + .../tsxSpreadAttributesResolution10.js | 15 + .../tsxSpreadAttributesResolution11.js | 15 + .../tsxSpreadAttributesResolution12.js | 15 + .../tsxSpreadAttributesResolution2.js | 15 + .../tsxSpreadAttributesResolution3.js | 15 + .../tsxSpreadAttributesResolution4.js | 16 + .../tsxSpreadAttributesResolution5.js | 16 + .../tsxSpreadAttributesResolution6.js | 15 + .../tsxSpreadAttributesResolution7.js | 15 + .../tsxSpreadAttributesResolution8.js | 15 + .../tsxSpreadAttributesResolution9.js | 15 + .../tsxStatelessFunctionComponents2.js | 15 + .../reference/tsxUnionElementType3.js | 18 + .../reference/tsxUnionElementType4.js | 18 + .../reference/tsxUnionTypeComponent1.js | 15 + .../reference/typeCheckTypeArgument.js | 15 + .../typeConstraintsWithConstructSignatures.js | 15 + .../baselines/reference/typeGuardFunction.js | 15 + .../reference/typeGuardFunctionOfFormThis.js | 22 + .../typeGuardFunctionOfFormThisErrors.js | 17 + .../reference/typeGuardsInClassMethods.js | 15 + .../reference/typeGuardsInProperties.js | 15 + .../reference/typeGuardsOnClassProperty.js | 15 + .../reference/typeInferenceLiteralUnion.js | 15 + .../typeInferenceReturnTypeCallback.js | 16 + tests/baselines/reference/typeOfThis.js | 16 + .../reference/typeOfThisInInstanceMember.js | 15 + .../reference/typeOfThisInInstanceMember2.js | 15 + .../reference/typeOfThisInMemberFunctions.js | 17 + .../typeParameterAssignmentCompat1.js | 15 + .../reference/typeParameterExtendingUnion1.js | 15 + .../reference/typeParameterExtendingUnion2.js | 15 + ...ParameterUsedAsTypeParameterConstraint4.js | 15 + .../typeParameterWithInvalidConstraintType.js | 15 + ...eParametersAndParametersInComputedNames.js | 18 +- .../typeParametersAreIdenticalToThemselves.js | 16 + .../typeParametersAvailableInNestedScope.js | 15 + tests/baselines/reference/typeQueryOnClass.js | 16 + .../reference/typeQueryWithReservedWords.js | 15 + .../baselines/reference/typeRelationships.js | 16 + tests/baselines/reference/typeResolution.js | 21 + .../baselines/reference/typeResolution.js.map | 2 +- .../reference/typeResolution.sourcemap.txt | 1203 +++++++++-------- .../reference/typeVariableTypeGuards.js | 17 + .../reference/typedGenericPrototypeMember.js | 15 + tests/baselines/reference/typeofClass2.js | 15 + .../typesWithSpecializedCallSignatures.js | 15 + tests/baselines/reference/undeclaredMethod.js | 15 + .../baselines/reference/underscoreMapFirst.js | 15 + .../reference/unionTypeEquivalence.js | 15 + .../reference/unionTypeFromArrayLiteral.js | 18 + .../reference/unionTypesAssignability.js | 16 + .../reference/unknownTypeArgOnCall.js | 15 + .../reference/unspecializedConstraints.js | 18 + .../reference/unusedClassesinModule1.js | 15 + .../unusedIdentifiersConsolidated1.js | 17 + tests/baselines/reference/unusedImports10.js | 15 + tests/baselines/reference/unusedImports2.js | 15 + tests/baselines/reference/unusedImports3.js | 15 + tests/baselines/reference/unusedImports4.js | 15 + tests/baselines/reference/unusedImports5.js | 15 + tests/baselines/reference/unusedImports6.js | 15 + tests/baselines/reference/unusedImports7.js | 15 + tests/baselines/reference/unusedImports8.js | 15 + tests/baselines/reference/unusedImports9.js | 15 + .../reference/unusedInvalidTypeArguments.js | 15 + .../reference/unusedLocalProperty.js | 15 + .../reference/unusedLocalsAndParameters.js | 16 + .../unusedLocalsAndParametersDeferred.js | 16 + ...edLocalsAndParametersOverloadSignatures.js | 15 + .../reference/unusedLocalsInMethod1.js | 15 + .../reference/unusedLocalsInMethod2.js | 15 + .../reference/unusedLocalsInMethod3.js | 15 + ...dMultipleParameters1InMethodDeclaration.js | 15 + ...dMultipleParameters2InMethodDeclaration.js | 15 + .../reference/unusedParametersInLambda1.js | 15 + .../reference/unusedParametersInLambda2.js | 15 + .../reference/unusedParametersThis.js | 15 + .../reference/unusedPrivateMembers.js | 19 + .../reference/unusedPrivateMethodInClass1.js | 15 + .../reference/unusedPrivateMethodInClass2.js | 15 + .../reference/unusedPrivateMethodInClass3.js | 15 + .../reference/unusedPrivateMethodInClass4.js | 15 + .../unusedPrivateVariableInClass4.js | 15 + ...nusedSingleParameterInMethodDeclaration.js | 15 + .../reference/unusedTypeParameterInLambda1.js | 15 + .../reference/unusedTypeParameterInLambda2.js | 15 + .../reference/unusedTypeParameterInMethod1.js | 15 + .../reference/unusedTypeParameterInMethod2.js | 15 + .../reference/unusedTypeParameterInMethod3.js | 15 + .../reference/unusedTypeParameterInMethod4.js | 15 + .../reference/unusedTypeParameters2.js | 15 + .../reference/unusedTypeParameters3.js | 15 + .../reference/unusedVariablesinNamespaces2.js | 15 + .../reference/unusedVariablesinNamespaces3.js | 15 + tests/baselines/reference/vararg.js | 15 + ...eclaratorResolvedDuringContextualTyping.js | 15 + .../reference/visibilityOfTypeParameters.js | 15 + tests/baselines/reference/witness.js | 16 + .../wrappedAndRecursiveConstraints.js | 15 + .../wrappedAndRecursiveConstraints3.js | 15 + .../wrappedAndRecursiveConstraints4.js | 15 + 1011 files changed, 18170 insertions(+), 2308 deletions(-) diff --git a/tests/baselines/reference/2dArrays.js b/tests/baselines/reference/2dArrays.js index 62133e770ff9f..df4fe99cb9f76 100644 --- a/tests/baselines/reference/2dArrays.js +++ b/tests/baselines/reference/2dArrays.js @@ -16,6 +16,20 @@ class Board { } //// [2dArrays.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Cell = (function () { function Cell() { } @@ -32,5 +46,6 @@ var Board = (function () { Board.prototype.allShipsSunk = function () { return this.ships.every(function (val) { return val.isSunk; }); }; + __names(Board.prototype, ["allShipsSunk"]); return Board; }()); diff --git a/tests/baselines/reference/ClassDeclaration11.js b/tests/baselines/reference/ClassDeclaration11.js index 28705f5dfe02c..e7a0cd57bf8d2 100644 --- a/tests/baselines/reference/ClassDeclaration11.js +++ b/tests/baselines/reference/ClassDeclaration11.js @@ -5,9 +5,24 @@ class C { } //// [ClassDeclaration11.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/ClassDeclaration13.js b/tests/baselines/reference/ClassDeclaration13.js index faabbb3b3c20d..f5cd1cf9dd707 100644 --- a/tests/baselines/reference/ClassDeclaration13.js +++ b/tests/baselines/reference/ClassDeclaration13.js @@ -5,9 +5,24 @@ class C { } //// [ClassDeclaration13.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function () { }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/ClassDeclaration21.js b/tests/baselines/reference/ClassDeclaration21.js index 00bd52cf0bad1..f45db91d3c01d 100644 --- a/tests/baselines/reference/ClassDeclaration21.js +++ b/tests/baselines/reference/ClassDeclaration21.js @@ -5,9 +5,24 @@ class C { } //// [ClassDeclaration21.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype[1] = function () { }; + __names(C.prototype, [1]); return C; }()); diff --git a/tests/baselines/reference/ClassDeclaration22.js b/tests/baselines/reference/ClassDeclaration22.js index 2e9c98d8da3c7..cc3501f34b6e9 100644 --- a/tests/baselines/reference/ClassDeclaration22.js +++ b/tests/baselines/reference/ClassDeclaration22.js @@ -5,9 +5,24 @@ class C { } //// [ClassDeclaration22.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype["bar"] = function () { }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.js b/tests/baselines/reference/ES5For-ofTypeCheck10.js index c4cfafe51990c..218c3ac481f6c 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck10.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck10.js @@ -15,6 +15,20 @@ class StringIterator { for (var v of new StringIterator) { } //// [ES5For-ofTypeCheck10.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // In ES3/5, you cannot for...of over an arbitrary iterable. var StringIterator = (function () { function StringIterator() { @@ -25,10 +39,12 @@ var StringIterator = (function () { value: "" }; }; - StringIterator.prototype[Symbol.iterator] = function () { + StringIterator.prototype[_a = Symbol.iterator] = function () { return this; }; + __names(StringIterator.prototype, ["next", _a]); return StringIterator; + var _a; }()); for (var _i = 0, _a = new StringIterator; _i < _a.length; _i++) { var v = _a[_i]; diff --git a/tests/baselines/reference/ES5SymbolProperty2.js b/tests/baselines/reference/ES5SymbolProperty2.js index 0cfe717ae56ea..ba993fc8aa84b 100644 --- a/tests/baselines/reference/ES5SymbolProperty2.js +++ b/tests/baselines/reference/ES5SymbolProperty2.js @@ -11,14 +11,30 @@ module M { (new M.C)[Symbol.iterator]; //// [ES5SymbolProperty2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var Symbol; var C = (function () { function C() { } - C.prototype[Symbol.iterator] = function () { }; + C.prototype[_a = Symbol.iterator] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }()); M.C = C; (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty3.js b/tests/baselines/reference/ES5SymbolProperty3.js index 084f79bd077f2..aa8858d628160 100644 --- a/tests/baselines/reference/ES5SymbolProperty3.js +++ b/tests/baselines/reference/ES5SymbolProperty3.js @@ -8,11 +8,27 @@ class C { (new C)[Symbol.iterator] //// [ES5SymbolProperty3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Symbol; var C = (function () { function C() { } - C.prototype[Symbol.iterator] = function () { }; + C.prototype[_a = Symbol.iterator] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty4.js b/tests/baselines/reference/ES5SymbolProperty4.js index eca71ac989c00..445d2c287a8dc 100644 --- a/tests/baselines/reference/ES5SymbolProperty4.js +++ b/tests/baselines/reference/ES5SymbolProperty4.js @@ -8,11 +8,27 @@ class C { (new C)[Symbol.iterator] //// [ES5SymbolProperty4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Symbol; var C = (function () { function C() { } - C.prototype[Symbol.iterator] = function () { }; + C.prototype[_a = Symbol.iterator] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty5.js b/tests/baselines/reference/ES5SymbolProperty5.js index 828d29abbfb02..7080a4731c575 100644 --- a/tests/baselines/reference/ES5SymbolProperty5.js +++ b/tests/baselines/reference/ES5SymbolProperty5.js @@ -8,11 +8,27 @@ class C { (new C)[Symbol.iterator](0) // Should error //// [ES5SymbolProperty5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Symbol; var C = (function () { function C() { } - C.prototype[Symbol.iterator] = function () { }; + C.prototype[_a = Symbol.iterator] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }()); (new C)[Symbol.iterator](0); // Should error diff --git a/tests/baselines/reference/ES5SymbolProperty6.js b/tests/baselines/reference/ES5SymbolProperty6.js index 1a9ab2734119d..227b858ae1533 100644 --- a/tests/baselines/reference/ES5SymbolProperty6.js +++ b/tests/baselines/reference/ES5SymbolProperty6.js @@ -6,10 +6,26 @@ class C { (new C)[Symbol.iterator] //// [ES5SymbolProperty6.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } - C.prototype[Symbol.iterator] = function () { }; + C.prototype[_a = Symbol.iterator] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ES5SymbolProperty7.js b/tests/baselines/reference/ES5SymbolProperty7.js index 439a2b5bd0ea3..dab10c6ed9382 100644 --- a/tests/baselines/reference/ES5SymbolProperty7.js +++ b/tests/baselines/reference/ES5SymbolProperty7.js @@ -8,11 +8,27 @@ class C { (new C)[Symbol.iterator] //// [ES5SymbolProperty7.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Symbol; var C = (function () { function C() { } - C.prototype[Symbol.iterator] = function () { }; + C.prototype[_a = Symbol.iterator] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }()); (new C)[Symbol.iterator]; diff --git a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js index 0d8fbb8eb30e9..df1341194dca7 100644 --- a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js +++ b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js @@ -20,6 +20,20 @@ module A { //// [ExportClassWhichExtendsInterfaceWithInaccessibleType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var Point2d = (function () { @@ -30,6 +44,7 @@ var A; Point2d.prototype.fromOrigin = function (p) { return 1; }; + __names(Point2d.prototype, ["fromOrigin"]); return Point2d; }()); A.Point2d = Point2d; diff --git a/tests/baselines/reference/Protected4.js b/tests/baselines/reference/Protected4.js index 098fe70118da1..76c6cd2ce2f1f 100644 --- a/tests/baselines/reference/Protected4.js +++ b/tests/baselines/reference/Protected4.js @@ -4,9 +4,24 @@ class C { } //// [Protected4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.m = function () { }; + __names(C.prototype, ["m"]); return C; }()); diff --git a/tests/baselines/reference/Protected7.js b/tests/baselines/reference/Protected7.js index 5232d932e9d30..7f80771561a58 100644 --- a/tests/baselines/reference/Protected7.js +++ b/tests/baselines/reference/Protected7.js @@ -4,9 +4,24 @@ class C { } //// [Protected7.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.m = function () { }; + __names(C.prototype, ["m"]); return C; }()); diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js index 4c5ea297d27ee..e6b607eb82a13 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js @@ -41,6 +41,20 @@ var l: X.Y.Z.Line; //// [TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var Point = (function () { @@ -57,6 +71,7 @@ var A; Point.prototype.fromCarthesian = function (p) { return { x: p.x, y: p.y }; }; + __names(Point.prototype, ["fromCarthesian"]); return Point; }()); })(A || (A = {})); diff --git a/tests/baselines/reference/abstractProperty.js b/tests/baselines/reference/abstractProperty.js index f4b2d432f24af..e7d7888405e21 100644 --- a/tests/baselines/reference/abstractProperty.js +++ b/tests/baselines/reference/abstractProperty.js @@ -32,6 +32,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function () { function B() { } @@ -52,5 +66,6 @@ var C = (function (_super) { configurable: true }); C.prototype.m = function () { }; + __names(C.prototype, ["m"]); return C; }(B)); diff --git a/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js b/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js index 763be0568dcc8..3703c8a5f1721 100644 --- a/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js +++ b/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js @@ -8,11 +8,26 @@ class C { } //// [accessInstanceMemberFromStaticMethod01.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function () { var k = foo; }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.js b/tests/baselines/reference/accessOverriddenBaseClassMember1.js index 1fdf137a7e751..6679aeb8f37ae 100644 --- a/tests/baselines/reference/accessOverriddenBaseClassMember1.js +++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.js @@ -16,6 +16,20 @@ class ColoredPoint extends Point { //// [accessOverriddenBaseClassMember1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -34,6 +48,7 @@ var Point = (function () { Point.prototype.toString = function () { return "x=" + this.x + " y=" + this.y; }; + __names(Point.prototype, ["toString"]); return Point; }()); var ColoredPoint = (function (_super) { @@ -46,5 +61,6 @@ var ColoredPoint = (function (_super) { ColoredPoint.prototype.toString = function () { return _super.prototype.toString.call(this) + " color=" + this.color; }; + __names(ColoredPoint.prototype, ["toString"]); return ColoredPoint; }(Point)); diff --git a/tests/baselines/reference/accessibilityModifiers.js b/tests/baselines/reference/accessibilityModifiers.js index ef092976ba8a0..eafe71a0b1523 100644 --- a/tests/baselines/reference/accessibilityModifiers.js +++ b/tests/baselines/reference/accessibilityModifiers.js @@ -45,6 +45,20 @@ class E { //// [accessibilityModifiers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // No errors var C = (function () { function C() { @@ -138,5 +152,6 @@ var E = (function () { enumerable: true, configurable: true }); + __names(E.prototype, ["method"]); return E; }()); diff --git a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js index 06a558d1ba5e3..5331718d748fd 100644 --- a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js +++ b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js @@ -29,6 +29,20 @@ class TestClass2 { //// [ambiguousCallsWhereReturnTypesAgree.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TestClass = (function () { function TestClass() { } @@ -37,6 +51,7 @@ var TestClass = (function () { TestClass.prototype.foo = function (x) { this.bar(x); // should not error }; + __names(TestClass.prototype, ["bar", "foo"]); return TestClass; }()); var TestClass2 = (function () { @@ -48,5 +63,6 @@ var TestClass2 = (function () { TestClass2.prototype.foo = function (x) { return this.bar(x); // should not error }; + __names(TestClass2.prototype, ["bar", "foo"]); return TestClass2; }()); diff --git a/tests/baselines/reference/anonterface.js b/tests/baselines/reference/anonterface.js index 041b90cb56cec..3659301015dbb 100644 --- a/tests/baselines/reference/anonterface.js +++ b/tests/baselines/reference/anonterface.js @@ -15,6 +15,20 @@ c.m(function(n) { return "hello: "+n; },18); //// [anonterface.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { @@ -23,6 +37,7 @@ var M; C.prototype.m = function (fn, n2) { return fn(n2); }; + __names(C.prototype, ["m"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/anonymousClassExpression2.js b/tests/baselines/reference/anonymousClassExpression2.js index a1da8d5fb10a9..091849f1e4b8f 100644 --- a/tests/baselines/reference/anonymousClassExpression2.js +++ b/tests/baselines/reference/anonymousClassExpression2.js @@ -19,6 +19,20 @@ while (0) { //// [anonymousClassExpression2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Fixes #14860 // note: repros with `while (0);` too // but it's less inscrutable and more obvious to put it *inside* the loop @@ -29,6 +43,7 @@ while (0) { A.prototype.methodA = function () { this; //note: a this reference of some kind is required to trigger the bug }; + __names(A.prototype, ["methodA"]); return A; }()); var B = (function () { @@ -38,6 +53,7 @@ while (0) { this.methodA; // error this.methodB; // ok }; + __names(B.prototype, ["methodB"]); return B; }()); } diff --git a/tests/baselines/reference/argsInScope.js b/tests/baselines/reference/argsInScope.js index a38bc77803980..d5f922d418dcf 100644 --- a/tests/baselines/reference/argsInScope.js +++ b/tests/baselines/reference/argsInScope.js @@ -12,6 +12,20 @@ c.P(1,2,3); //// [argsInScope.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -20,6 +34,7 @@ var C = (function () { // WScript.Echo("param: " + arguments[i]); } }; + __names(C.prototype, ["P"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js index 511d37b175222..a1ca1842bb07b 100644 --- a/tests/baselines/reference/arrayAssignmentTest1.js +++ b/tests/baselines/reference/arrayAssignmentTest1.js @@ -86,6 +86,20 @@ arr_any = c3; // should be an error - is arr_any = i1; // should be an error - is //// [arrayAssignmentTest1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -101,6 +115,7 @@ var C1 = (function () { } C1.prototype.IM1 = function () { return null; }; C1.prototype.C1M1 = function () { return null; }; + __names(C1.prototype, ["IM1", "C1M1"]); return C1; }()); var C2 = (function (_super) { @@ -109,12 +124,14 @@ var C2 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C2.prototype.C2M1 = function () { return null; }; + __names(C2.prototype, ["C2M1"]); return C2; }(C1)); var C3 = (function () { function C3() { } C3.prototype.CM3M1 = function () { return 3; }; + __names(C3.prototype, ["CM3M1"]); return C3; }()); /* diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js index 233ea1b115903..7fd17596bb376 100644 --- a/tests/baselines/reference/arrayAssignmentTest2.js +++ b/tests/baselines/reference/arrayAssignmentTest2.js @@ -60,6 +60,20 @@ arr_any = i1; // should be an error - is //// [arrayAssignmentTest2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -75,6 +89,7 @@ var C1 = (function () { } C1.prototype.IM1 = function () { return null; }; C1.prototype.C1M1 = function () { return null; }; + __names(C1.prototype, ["IM1", "C1M1"]); return C1; }()); var C2 = (function (_super) { @@ -83,12 +98,14 @@ var C2 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C2.prototype.C2M1 = function () { return null; }; + __names(C2.prototype, ["C2M1"]); return C2; }(C1)); var C3 = (function () { function C3() { } C3.prototype.CM3M1 = function () { return 3; }; + __names(C3.prototype, ["CM3M1"]); return C3; }()); /* diff --git a/tests/baselines/reference/arrayAssignmentTest4.js b/tests/baselines/reference/arrayAssignmentTest4.js index 31e826a06412f..768671803b426 100644 --- a/tests/baselines/reference/arrayAssignmentTest4.js +++ b/tests/baselines/reference/arrayAssignmentTest4.js @@ -25,10 +25,25 @@ arr_any = c3; // should be an error - is //// [arrayAssignmentTest4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C3 = (function () { function C3() { } C3.prototype.CM3M1 = function () { return 3; }; + __names(C3.prototype, ["CM3M1"]); return C3; }()); /* diff --git a/tests/baselines/reference/arrayAssignmentTest5.js b/tests/baselines/reference/arrayAssignmentTest5.js index f5bd3e882b562..f43e5072841cb 100644 --- a/tests/baselines/reference/arrayAssignmentTest5.js +++ b/tests/baselines/reference/arrayAssignmentTest5.js @@ -34,6 +34,20 @@ module Test { //// [arrayAssignmentTest5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test; (function (Test) { var Bug = (function () { @@ -49,6 +63,7 @@ var Test; Bug.prototype.tokenize = function (line, state, includeStates) { return null; }; + __names(Bug.prototype, ["onEnter", "tokenize"]); return Bug; }()); Test.Bug = Bug; diff --git a/tests/baselines/reference/arrayAssignmentTest6.js b/tests/baselines/reference/arrayAssignmentTest6.js index 1e24137ddbaf0..5ff3058351be2 100644 --- a/tests/baselines/reference/arrayAssignmentTest6.js +++ b/tests/baselines/reference/arrayAssignmentTest6.js @@ -21,6 +21,20 @@ module Test { //// [arrayAssignmentTest6.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test; (function (Test) { var Bug = (function () { @@ -29,6 +43,7 @@ var Test; Bug.prototype.tokenize = function (line, tokens, includeStates) { return null; }; + __names(Bug.prototype, ["tokenize"]); return Bug; }()); Test.Bug = Bug; diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js index 3a0ab1a5cf5ab..2beb7fca153b1 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.js +++ b/tests/baselines/reference/arrayBestCommonTypes.js @@ -118,6 +118,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var EmptyTypes; (function (EmptyTypes) { var base = (function () { @@ -174,6 +188,7 @@ var EmptyTypes; var b3 = [baseObj, ifaceObj, base2Obj]; var b4 = [ifaceObj, baseObj, base2Obj]; }; + __names(f.prototype, ["voidIfAny", "x"]); return f; }()); })(EmptyTypes || (EmptyTypes = {})); @@ -233,6 +248,7 @@ var NonEmptyTypes; var b3 = [baseObj, ifaceObj, base2Obj]; var b4 = [ifaceObj, baseObj, base2Obj]; }; + __names(f.prototype, ["voidIfAny", "x"]); return f; }()); })(NonEmptyTypes || (NonEmptyTypes = {})); diff --git a/tests/baselines/reference/arrayOfExportedClass.js b/tests/baselines/reference/arrayOfExportedClass.js index f305aacbe65f7..ef4bd8cfa70f0 100644 --- a/tests/baselines/reference/arrayOfExportedClass.js +++ b/tests/baselines/reference/arrayOfExportedClass.js @@ -34,12 +34,27 @@ var Car = (function () { module.exports = Car; //// [arrayOfExportedClass_1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Road = (function () { function Road() { } Road.prototype.AddCars = function (cars) { this.cars = cars; }; + __names(Road.prototype, ["AddCars"]); return Road; }()); module.exports = Road; diff --git a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js index 3d427bfa9b42d..a5300c94ff796 100644 --- a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js +++ b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js @@ -4,9 +4,24 @@ class X { } //// [arrayReferenceWithoutTypeArgs.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var X = (function () { function X() { } X.prototype.f = function (a) { }; + __names(X.prototype, ["f"]); return X; }()); diff --git a/tests/baselines/reference/arrayconcat.js b/tests/baselines/reference/arrayconcat.js index 76250642a599a..78b9d75a0073d 100644 --- a/tests/baselines/reference/arrayconcat.js +++ b/tests/baselines/reference/arrayconcat.js @@ -29,6 +29,20 @@ class parser { } //// [arrayconcat.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var parser = (function () { function parser() { } @@ -47,5 +61,6 @@ var parser = (function () { } }); }; + __names(parser.prototype, ["m"]); return parser; }()); diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index 66f53d32dba9a..418a3f1079b90 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -100,6 +100,20 @@ function tryCatchFn() { //// [arrowFunctionExpressions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } var a = function (p) { return p.length; }; var a = function (p) { return p.length; }; @@ -155,6 +169,7 @@ var MyClass = (function () { var m = function (n) { return n + 1; }; var p = function (n) { return n && _this; }; }; + __names(MyClass.prototype, ["fn"]); return MyClass; }()); // Arrow function used in arrow function diff --git a/tests/baselines/reference/asiAbstract.js b/tests/baselines/reference/asiAbstract.js index c17e1911e4ed9..f8cb55f61512d 100644 --- a/tests/baselines/reference/asiAbstract.js +++ b/tests/baselines/reference/asiAbstract.js @@ -16,6 +16,20 @@ class C3 { //// [asiAbstract.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); abstract; var NonAbstractClass = (function () { function NonAbstractClass() { @@ -27,6 +41,7 @@ var C2 = (function () { } C2.prototype.nonAbstractFunction = function () { }; + __names(C2.prototype, ["nonAbstractFunction"]); return C2; }()); var C3 = (function () { diff --git a/tests/baselines/reference/asiInES6Classes.js b/tests/baselines/reference/asiInES6Classes.js index d315809d25676..48bd24a8447e6 100644 --- a/tests/baselines/reference/asiInES6Classes.js +++ b/tests/baselines/reference/asiInES6Classes.js @@ -23,6 +23,20 @@ class Foo { //// [asiInES6Classes.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { this.defaults = { @@ -32,5 +46,6 @@ var Foo = (function () { Foo.prototype.bar = function () { return 3; }; + __names(Foo.prototype, ["bar"]); return Foo; }()); diff --git a/tests/baselines/reference/asiPublicPrivateProtected.js b/tests/baselines/reference/asiPublicPrivateProtected.js index 12faef5316b6c..281a94b1c65fb 100644 --- a/tests/baselines/reference/asiPublicPrivateProtected.js +++ b/tests/baselines/reference/asiPublicPrivateProtected.js @@ -41,12 +41,27 @@ class ClassWithThreeMembers { //// [asiPublicPrivateProtected.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); public; var NonPublicClass = (function () { function NonPublicClass() { } NonPublicClass.prototype.s = function () { }; + __names(NonPublicClass.prototype, ["s"]); return NonPublicClass; }()); var NonPublicClass2 = (function () { @@ -54,6 +69,7 @@ var NonPublicClass2 = (function () { } NonPublicClass2.prototype.nonPublicFunction = function () { }; + __names(NonPublicClass2.prototype, ["nonPublicFunction"]); return NonPublicClass2; }()); private; @@ -62,6 +78,7 @@ var NonPrivateClass = (function () { } NonPrivateClass.prototype.s = function () { }; + __names(NonPrivateClass.prototype, ["s"]); return NonPrivateClass; }()); var NonPrivateClass2 = (function () { @@ -69,6 +86,7 @@ var NonPrivateClass2 = (function () { } NonPrivateClass2.prototype.nonPrivateFunction = function () { }; + __names(NonPrivateClass2.prototype, ["nonPrivateFunction"]); return NonPrivateClass2; }()); protected; @@ -77,6 +95,7 @@ var NonProtectedClass = (function () { } NonProtectedClass.prototype.s = function () { }; + __names(NonProtectedClass.prototype, ["s"]); return NonProtectedClass; }()); var NonProtectedClass2 = (function () { @@ -84,6 +103,7 @@ var NonProtectedClass2 = (function () { } NonProtectedClass2.prototype.nonProtectedFunction = function () { }; + __names(NonProtectedClass2.prototype, ["nonProtectedFunction"]); return NonProtectedClass2; }()); var ClassWithThreeMembers = (function () { diff --git a/tests/baselines/reference/assertInWrapSomeTypeParameter.js b/tests/baselines/reference/assertInWrapSomeTypeParameter.js index 698ba439ab72f..d2c45d5f9ffbb 100644 --- a/tests/baselines/reference/assertInWrapSomeTypeParameter.js +++ b/tests/baselines/reference/assertInWrapSomeTypeParameter.js @@ -6,11 +6,26 @@ class C> { } //// [assertInWrapSomeTypeParameter.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/assignToExistingClass.js b/tests/baselines/reference/assignToExistingClass.js index 3e21479186ded..4c70dc5db5dd8 100644 --- a/tests/baselines/reference/assignToExistingClass.js +++ b/tests/baselines/reference/assignToExistingClass.js @@ -16,6 +16,20 @@ module Test { //// [assignToExistingClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test; (function (Test) { var Mocked = (function () { @@ -31,6 +45,7 @@ var Test; return { myProp: "test" }; }; }; + __names(Tester.prototype, ["willThrowError"]); return Tester; }()); })(Test || (Test = {})); diff --git a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js index 68d14d9f0c81d..611796e23648a 100644 --- a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js +++ b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js @@ -17,10 +17,25 @@ Biz(new Foo()); //// [assignmentCompatInterfaceWithStringIndexSignature.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.Boz = function () { }; + __names(Foo.prototype, ["Boz"]); return Foo; }()); function Biz(map) { } diff --git a/tests/baselines/reference/assignmentLHSIsValue.js b/tests/baselines/reference/assignmentLHSIsValue.js index 34e0df7cacd88..6ac57acd08e41 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.js +++ b/tests/baselines/reference/assignmentLHSIsValue.js @@ -71,6 +71,20 @@ foo() = value; (foo()) = value; //// [assignmentLHSIsValue.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -90,6 +104,7 @@ var C = (function () { } C.prototype.foo = function () { this = value; }; C.sfoo = function () { this = value; }; + __names(C.prototype, ["foo"]); return C; }()); function foo() { this = value; } @@ -129,6 +144,7 @@ var Derived = (function (_super) { } Derived.prototype.foo = function () { _super.prototype. = value; }; Derived.sfoo = function () { _super. = value; }; + __names(Derived.prototype, ["foo"]); return Derived; }(C)); // function expression diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.js b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.js index e73ef6ddd4d78..20ce30e6692ca 100644 --- a/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.js +++ b/tests/baselines/reference/asyncArrowFunctionCapturesArguments_es5.js @@ -21,5 +21,6 @@ var C = (function () { } }); }); }; }; + __names(C.prototype, ["method"]); return C; }()); diff --git a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.js b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.js index 5c9727bddabeb..220192b9211f3 100644 --- a/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.js +++ b/tests/baselines/reference/asyncArrowFunctionCapturesThis_es5.js @@ -19,5 +19,6 @@ var C = (function () { } }); }); }; }; + __names(C.prototype, ["method"]); return C; }()); diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js b/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js index 335bd8a340ec9..13a4aa91eea53 100644 --- a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js @@ -41,6 +41,20 @@ module M { //// [asyncAwaitIsolatedModules_es5.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -180,6 +194,7 @@ var C = (function () { return [2 /*return*/]; }); }); }; + __names(C.prototype, ["m1", "m2", "m3"]); return C; }()); var M; diff --git a/tests/baselines/reference/asyncAwait_es5.js b/tests/baselines/reference/asyncAwait_es5.js index f49f4472b133d..6491e06e906ec 100644 --- a/tests/baselines/reference/asyncAwait_es5.js +++ b/tests/baselines/reference/asyncAwait_es5.js @@ -40,6 +40,20 @@ module M { } //// [asyncAwait_es5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -177,6 +191,7 @@ var C = (function () { return [2 /*return*/]; }); }); }; + __names(C.prototype, ["m1", "m2", "m3"]); return C; }()); var M; diff --git a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.js b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.js index 8881ad555a762..8f2c8d17b3de2 100644 --- a/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.js +++ b/tests/baselines/reference/asyncFunctionDeclarationCapturesArguments_es5.js @@ -28,5 +28,6 @@ var C = (function () { }); } }; + __names(C.prototype, ["method"]); return C; }()); diff --git a/tests/baselines/reference/asyncImportedPromise_es5.js b/tests/baselines/reference/asyncImportedPromise_es5.js index 8a6ec4240caf0..1657952b7bdf2 100644 --- a/tests/baselines/reference/asyncImportedPromise_es5.js +++ b/tests/baselines/reference/asyncImportedPromise_es5.js @@ -32,6 +32,20 @@ var Task = (function (_super) { exports.Task = Task; //// [test.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -77,5 +91,6 @@ var Test = (function () { return [2 /*return*/]; }); }); }; + __names(Test.prototype, ["example"]); return Test; }()); diff --git a/tests/baselines/reference/asyncMethodWithSuper_es5.js b/tests/baselines/reference/asyncMethodWithSuper_es5.js index c68b1ed036fef..4943900959e81 100644 --- a/tests/baselines/reference/asyncMethodWithSuper_es5.js +++ b/tests/baselines/reference/asyncMethodWithSuper_es5.js @@ -56,6 +56,7 @@ var A = (function () { } A.prototype.x = function () { }; + __names(A.prototype, ["x"]); return A; }()); var B = (function (_super) { @@ -102,5 +103,6 @@ var B = (function (_super) { }); }); }; + __names(B.prototype, ["simple", "advanced"]); return B; }(A)); diff --git a/tests/baselines/reference/augmentedTypesClass.js b/tests/baselines/reference/augmentedTypesClass.js index b9c263971b3c1..2df6215fa0f65 100644 --- a/tests/baselines/reference/augmentedTypesClass.js +++ b/tests/baselines/reference/augmentedTypesClass.js @@ -8,11 +8,26 @@ class c4 { public foo() { } } enum c4 { One } // error //// [augmentedTypesClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); //// class then var var c1 = (function () { function c1() { } c1.prototype.foo = function () { }; + __names(c1.prototype, ["foo"]); return c1; }()); var c1 = 1; // error @@ -21,6 +36,7 @@ var c4 = (function () { function c4() { } c4.prototype.foo = function () { }; + __names(c4.prototype, ["foo"]); return c4; }()); (function (c4) { diff --git a/tests/baselines/reference/augmentedTypesClass2.js b/tests/baselines/reference/augmentedTypesClass2.js index 0896a03a92558..9f884b4662cb1 100644 --- a/tests/baselines/reference/augmentedTypesClass2.js +++ b/tests/baselines/reference/augmentedTypesClass2.js @@ -32,6 +32,20 @@ class c44 { //// [augmentedTypesClass2.js] // Checking class with other things in type space not value space +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // class then interface var c11 = (function () { function c11() { @@ -39,6 +53,7 @@ var c11 = (function () { c11.prototype.foo = function () { return 1; }; + __names(c11.prototype, ["foo"]); return c11; }()); // class then class - covered @@ -49,6 +64,7 @@ var c33 = (function () { c33.prototype.foo = function () { return 1; }; + __names(c33.prototype, ["foo"]); return c33; }()); (function (c33) { @@ -62,5 +78,6 @@ var c44 = (function () { c44.prototype.foo = function () { return 1; }; + __names(c44.prototype, ["foo"]); return c44; }()); diff --git a/tests/baselines/reference/augmentedTypesClass2a.js b/tests/baselines/reference/augmentedTypesClass2a.js index ba1f26c775d0a..d9210fe443b54 100644 --- a/tests/baselines/reference/augmentedTypesClass2a.js +++ b/tests/baselines/reference/augmentedTypesClass2a.js @@ -5,11 +5,26 @@ function c2() { } // error var c2 = () => { } //// [augmentedTypesClass2a.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); //// class then function var c2 = (function () { function c2() { } c2.prototype.foo = function () { }; + __names(c2.prototype, ["foo"]); return c2; }()); // error function c2() { } // error diff --git a/tests/baselines/reference/augmentedTypesClass3.js b/tests/baselines/reference/augmentedTypesClass3.js index 3a4877707c680..84967d0911bf8 100644 --- a/tests/baselines/reference/augmentedTypesClass3.js +++ b/tests/baselines/reference/augmentedTypesClass3.js @@ -14,17 +14,33 @@ class c5c { public foo() { } } //import c5c = require(''); //// [augmentedTypesClass3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // class then module var c5 = (function () { function c5() { } c5.prototype.foo = function () { }; + __names(c5.prototype, ["foo"]); return c5; }()); var c5a = (function () { function c5a() { } c5a.prototype.foo = function () { }; + __names(c5a.prototype, ["foo"]); return c5a; }()); (function (c5a) { @@ -34,6 +50,7 @@ var c5b = (function () { function c5b() { } c5b.prototype.foo = function () { }; + __names(c5b.prototype, ["foo"]); return c5b; }()); (function (c5b) { @@ -44,6 +61,7 @@ var c5c = (function () { function c5c() { } c5c.prototype.foo = function () { }; + __names(c5c.prototype, ["foo"]); return c5c; }()); //import c5c = require(''); diff --git a/tests/baselines/reference/augmentedTypesClass4.js b/tests/baselines/reference/augmentedTypesClass4.js index e476beadf74d8..1f01bd67cb4ac 100644 --- a/tests/baselines/reference/augmentedTypesClass4.js +++ b/tests/baselines/reference/augmentedTypesClass4.js @@ -5,16 +5,32 @@ class c3 { public bar() { } } // error //// [augmentedTypesClass4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); //// class then class var c3 = (function () { function c3() { } c3.prototype.foo = function () { }; + __names(c3.prototype, ["foo"]); return c3; }()); // error var c3 = (function () { function c3() { } c3.prototype.bar = function () { }; + __names(c3.prototype, ["bar"]); return c3; }()); // error diff --git a/tests/baselines/reference/augmentedTypesEnum.js b/tests/baselines/reference/augmentedTypesEnum.js index 406c1a3bf6936..03ad8f49f8cfd 100644 --- a/tests/baselines/reference/augmentedTypesEnum.js +++ b/tests/baselines/reference/augmentedTypesEnum.js @@ -36,6 +36,20 @@ module e6b { export var y = 2; } // should be error //import e7 = require(''); // should be error //// [augmentedTypesEnum.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // enum then var var e1111; (function (e1111) { @@ -62,6 +76,7 @@ var e4 = (function () { function e4() { } e4.prototype.foo = function () { }; + __names(e4.prototype, ["foo"]); return e4; }()); // error // enum then enum diff --git a/tests/baselines/reference/augmentedTypesEnum2.js b/tests/baselines/reference/augmentedTypesEnum2.js index be174423d1da3..785bf63ef10f6 100644 --- a/tests/baselines/reference/augmentedTypesEnum2.js +++ b/tests/baselines/reference/augmentedTypesEnum2.js @@ -20,6 +20,20 @@ class e2 { // error //enum then import - covered //// [augmentedTypesEnum2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // enum then interface var e1; (function (e1) { @@ -38,6 +52,7 @@ var e2 = (function () { e2.prototype.foo = function () { return 1; }; + __names(e2.prototype, ["foo"]); return e2; }()); //enum then enum - covered diff --git a/tests/baselines/reference/augmentedTypesExternalModule1.js b/tests/baselines/reference/augmentedTypesExternalModule1.js index 0a8b7404bd1c5..fa3ceebf95cbd 100644 --- a/tests/baselines/reference/augmentedTypesExternalModule1.js +++ b/tests/baselines/reference/augmentedTypesExternalModule1.js @@ -4,6 +4,20 @@ class c5 { public foo() { } } module c5 { } // should be ok everywhere //// [augmentedTypesExternalModule1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -12,6 +26,7 @@ define(["require", "exports"], function (require, exports) { function c5() { } c5.prototype.foo = function () { }; + __names(c5.prototype, ["foo"]); return c5; }()); }); diff --git a/tests/baselines/reference/augmentedTypesFunction.js b/tests/baselines/reference/augmentedTypesFunction.js index 95f91a938d73e..8568e87a32674 100644 --- a/tests/baselines/reference/augmentedTypesFunction.js +++ b/tests/baselines/reference/augmentedTypesFunction.js @@ -39,6 +39,20 @@ module y5c { export interface I { foo(): void } } // should be an error //import y6 = require(''); //// [augmentedTypesFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // function then var function y1() { } // error var y1 = 1; // error @@ -59,6 +73,7 @@ var y3a = (function () { function y3a() { } y3a.prototype.foo = function () { }; + __names(y3a.prototype, ["foo"]); return y3a; }()); // error // function then enum diff --git a/tests/baselines/reference/augmentedTypesInterface.js b/tests/baselines/reference/augmentedTypesInterface.js index fb8608aca956a..8f0ac15c0bae5 100644 --- a/tests/baselines/reference/augmentedTypesInterface.js +++ b/tests/baselines/reference/augmentedTypesInterface.js @@ -35,12 +35,27 @@ interface i4 { //// [augmentedTypesInterface.js] // interface then interface +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var i2 = (function () { function i2() { } i2.prototype.bar = function () { return 1; }; + __names(i2.prototype, ["bar"]); return i2; }()); var i3; diff --git a/tests/baselines/reference/augmentedTypesModules.js b/tests/baselines/reference/augmentedTypesModules.js index 61dd64174d9bf..c940ed86e3ea3 100644 --- a/tests/baselines/reference/augmentedTypesModules.js +++ b/tests/baselines/reference/augmentedTypesModules.js @@ -98,6 +98,20 @@ module m6 { export var y = 2; } //// [augmentedTypesModules.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m1 = 1; // Should be allowed var m1a; (function (m1a) { @@ -116,6 +130,7 @@ var m1d; function I() { } I.prototype.foo = function () { }; + __names(I.prototype, ["foo"]); return I; }()); m1d.I = I; @@ -150,6 +165,7 @@ function m2g() { } function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); m2g.C = C; @@ -167,12 +183,14 @@ var m3a = (function () { function m3a() { } m3a.prototype.foo = function () { }; + __names(m3a.prototype, ["foo"]); return m3a; }()); // error, class isn't ambient or declared before the module var m3b = (function () { function m3b() { } m3b.prototype.foo = function () { }; + __names(m3b.prototype, ["foo"]); return m3b; }()); (function (m3b) { @@ -182,6 +200,7 @@ var m3c = (function () { function m3c() { } m3c.prototype.foo = function () { }; + __names(m3c.prototype, ["foo"]); return m3c; }()); (function (m3c) { @@ -201,6 +220,7 @@ var m3g; function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); m3g.C = C; @@ -232,6 +252,7 @@ var m4d; function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); })(m4d || (m4d = {})); diff --git a/tests/baselines/reference/augmentedTypesModules2.js b/tests/baselines/reference/augmentedTypesModules2.js index 9f7d3613d57c3..e3bbc2ca79170 100644 --- a/tests/baselines/reference/augmentedTypesModules2.js +++ b/tests/baselines/reference/augmentedTypesModules2.js @@ -29,6 +29,20 @@ module m2g { export class C { foo() { } } } //// [augmentedTypesModules2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function m2() { } ; // ok since the module is not instantiated var m2a; @@ -63,6 +77,7 @@ function m2g() { } function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); m2g.C = C; diff --git a/tests/baselines/reference/augmentedTypesModules3.js b/tests/baselines/reference/augmentedTypesModules3.js index cb63acd0d3532..cf1ca88d4a997 100644 --- a/tests/baselines/reference/augmentedTypesModules3.js +++ b/tests/baselines/reference/augmentedTypesModules3.js @@ -7,6 +7,20 @@ module m3a { var y = 2; } class m3a { foo() { } } // error, class isn't ambient or declared before the module //// [augmentedTypesModules3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m3 = (function () { function m3() { } @@ -20,5 +34,6 @@ var m3a = (function () { function m3a() { } m3a.prototype.foo = function () { }; + __names(m3a.prototype, ["foo"]); return m3a; }()); // error, class isn't ambient or declared before the module diff --git a/tests/baselines/reference/augmentedTypesModules3b.js b/tests/baselines/reference/augmentedTypesModules3b.js index 02da7b41f2e0f..bc885b86be001 100644 --- a/tests/baselines/reference/augmentedTypesModules3b.js +++ b/tests/baselines/reference/augmentedTypesModules3b.js @@ -19,10 +19,25 @@ module m3g { export class C { foo() { } } } //// [augmentedTypesModules3b.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m3b = (function () { function m3b() { } m3b.prototype.foo = function () { }; + __names(m3b.prototype, ["foo"]); return m3b; }()); (function (m3b) { @@ -32,6 +47,7 @@ var m3c = (function () { function m3c() { } m3c.prototype.foo = function () { }; + __names(m3c.prototype, ["foo"]); return m3c; }()); (function (m3c) { @@ -51,6 +67,7 @@ var m3g; function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); m3g.C = C; diff --git a/tests/baselines/reference/augmentedTypesModules4.js b/tests/baselines/reference/augmentedTypesModules4.js index 5db6c42d70746..0aa12b48d10bd 100644 --- a/tests/baselines/reference/augmentedTypesModules4.js +++ b/tests/baselines/reference/augmentedTypesModules4.js @@ -23,6 +23,20 @@ module m5 { export interface I { foo(): void } } // should already be reasonably //// [augmentedTypesModules4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m4; (function (m4) { })(m4 || (m4 = {})); @@ -50,6 +64,7 @@ var m4d; function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); })(m4d || (m4d = {})); diff --git a/tests/baselines/reference/augmentedTypesVar.js b/tests/baselines/reference/augmentedTypesVar.js index f01cfa2e52fa5..0dc90e7ed8057 100644 --- a/tests/baselines/reference/augmentedTypesVar.js +++ b/tests/baselines/reference/augmentedTypesVar.js @@ -37,6 +37,20 @@ module x6b { export var y = 2; } // error //// [augmentedTypesVar.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // var then var var x1 = 1; var x1 = 2; @@ -57,6 +71,7 @@ var x4a = (function () { function x4a() { } x4a.prototype.foo = function () { }; + __names(x4a.prototype, ["foo"]); return x4a; }()); // error // var then enum diff --git a/tests/baselines/reference/autoLift2.js b/tests/baselines/reference/autoLift2.js index ab2d2107f6ce7..c44e62f67e076 100644 --- a/tests/baselines/reference/autoLift2.js +++ b/tests/baselines/reference/autoLift2.js @@ -32,6 +32,20 @@ a.baz(); //// [autoLift2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { this.foo; @@ -46,6 +60,7 @@ var A = (function () { [1, 2].forEach(function (p) { return _this.foo; }); [1, 2].forEach(function (p) { return _this.bar; }); }; + __names(A.prototype, ["baz"]); return A; }()); var a = new A(); diff --git a/tests/baselines/reference/autolift4.js b/tests/baselines/reference/autolift4.js index d784798358e33..c3ab0d4b7ea47 100644 --- a/tests/baselines/reference/autolift4.js +++ b/tests/baselines/reference/autolift4.js @@ -24,6 +24,20 @@ class Point3D extends Point { //// [autolift4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -42,6 +56,7 @@ var Point = (function () { Point.prototype.getDist = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; + __names(Point.prototype, ["getDist"]); Point.origin = new Point(0, 0); return Point; }()); @@ -55,5 +70,6 @@ var Point3D = (function (_super) { Point3D.prototype.getDist = function () { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.m); }; + __names(Point3D.prototype, ["getDist"]); return Point3D; }(Point)); diff --git a/tests/baselines/reference/avoid.js b/tests/baselines/reference/avoid.js index 391dab5e9856b..a5695425548d3 100644 --- a/tests/baselines/reference/avoid.js +++ b/tests/baselines/reference/avoid.js @@ -20,6 +20,20 @@ var N=new f(); // ok with void fn //// [avoid.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f() { var x = 1; } @@ -32,6 +46,7 @@ var C = (function () { } C.prototype.g = function () { }; + __names(C.prototype, ["g"]); return C; }()); var z = new C().g(); // error void fn diff --git a/tests/baselines/reference/baseCheck.js b/tests/baselines/reference/baseCheck.js index 2b4f90d27b127..1bf14a65f8f32 100644 --- a/tests/baselines/reference/baseCheck.js +++ b/tests/baselines/reference/baseCheck.js @@ -40,6 +40,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x, y) { } @@ -60,6 +74,7 @@ var ELocVar = (function (_super) { ELocVar.prototype.m = function () { var loc = 10; }; + __names(ELocVar.prototype, ["m"]); return ELocVar; }(C)); var D = (function (_super) { diff --git a/tests/baselines/reference/baseTypeAfterDerivedType.js b/tests/baselines/reference/baseTypeAfterDerivedType.js index c4ca7cf7b33a5..b88f393adc3a3 100644 --- a/tests/baselines/reference/baseTypeAfterDerivedType.js +++ b/tests/baselines/reference/baseTypeAfterDerivedType.js @@ -17,6 +17,20 @@ interface Base2 { //// [baseTypeAfterDerivedType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Derived2 = (function () { function Derived2() { } @@ -26,5 +40,6 @@ var Derived2 = (function () { args[_i] = arguments[_i]; } }; + __names(Derived2.prototype, ["method"]); return Derived2; }()); diff --git a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js index 7442d1e0e6a50..1c9e89f2e2b05 100644 --- a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js +++ b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js @@ -38,6 +38,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var CBaseBase = (function () { function CBaseBase(x) { } @@ -54,6 +68,7 @@ var Parameter = (function () { function Parameter() { } Parameter.prototype.method = function (t) { }; + __names(Parameter.prototype, ["method"]); return Parameter; }()); var Wrapper = (function () { @@ -73,5 +88,6 @@ var C = (function (_super) { new CBase(this); // Should not error, parameter is of type Parameter> }; C.prototype.method = function (t) { }; + __names(C.prototype, ["works", "alsoWorks", "method"]); return C; }(CBase)); diff --git a/tests/baselines/reference/binopAssignmentShouldHaveType.js b/tests/baselines/reference/binopAssignmentShouldHaveType.js index c590efbcb5a58..bfd238265dd55 100644 --- a/tests/baselines/reference/binopAssignmentShouldHaveType.js +++ b/tests/baselines/reference/binopAssignmentShouldHaveType.js @@ -20,6 +20,20 @@ module Test { //// [binopAssignmentShouldHaveType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); "use strict"; var Test; (function (Test) { @@ -35,6 +49,7 @@ var Test; console.log(name); } }; + __names(Bug.prototype, ["getName", "bug"]); return Bug; }()); Test.Bug = Bug; diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js index 70a00a95a4111..4da34779e29eb 100644 --- a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js @@ -10,6 +10,20 @@ class c { } //// [blockScopedFunctionDeclarationInStrictClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var c = (function () { function c() { } @@ -20,5 +34,6 @@ var c = (function () { } foo(); // not ok }; + __names(c.prototype, ["method"]); return c; }()); diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js index 619ee51ce75fc..e0255e543d12b 100644 --- a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js @@ -104,6 +104,20 @@ function foo14() { } //// [blockScopedVariablesUseBeforeDef.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo0() { var a = x; var x; @@ -121,6 +135,7 @@ function foo3() { function X() { } X.prototype.m = function () { return x; }; + __names(X.prototype, ["m"]); return X; }()); var x; @@ -130,6 +145,7 @@ function foo4() { function class_1() { } class_1.prototype.m = function () { return x; }; + __names(class_1.prototype, ["m"]); return class_1; }()); var x; diff --git a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js index c40948273a6de..8aa77cb43251c 100644 --- a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js @@ -47,6 +47,20 @@ var r7b = i2.f(1, ''); //// [callGenericFunctionWithIncorrectNumberOfTypeArguments.js] // type parameter lists must exactly match type argument lists // all of these invocations are errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f(x, y) { return null; } var r1 = f(1, ''); var r1b = f(1, ''); @@ -62,6 +76,7 @@ var C = (function () { C.prototype.f = function (x, y) { return null; }; + __names(C.prototype, ["f"]); return C; }()); var r4 = (new C()).f(1, ''); @@ -75,6 +90,7 @@ var C2 = (function () { C2.prototype.f = function (x, y) { return null; }; + __names(C2.prototype, ["f"]); return C2; }()); var r6 = (new C2()).f(1, ''); diff --git a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js index e78ee62edc5d4..e324c528ef2ae 100644 --- a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js @@ -38,6 +38,20 @@ var r7 = i2.f(1); //// [callGenericFunctionWithZeroTypeArguments.js] // valid invocations of generic functions with no explicit type arguments provided +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f(x) { return null; } var r = f(1); var f2 = function (x) { return null; }; @@ -50,6 +64,7 @@ var C = (function () { C.prototype.f = function (x) { return null; }; + __names(C.prototype, ["f"]); return C; }()); var r4 = (new C()).f(1); @@ -61,6 +76,7 @@ var C2 = (function () { C2.prototype.f = function (x) { return null; }; + __names(C2.prototype, ["f"]); return C2; }()); var r6 = (new C2()).f(1); diff --git a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js index dd9a20825101a..de31d2b6a6c41 100644 --- a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js +++ b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js @@ -46,6 +46,20 @@ var r8 = a2(); //// [callNonGenericFunctionWithTypeArguments.js] // it is always illegal to provide type arguments to a non-generic function // all invocations here are illegal +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f(x) { return null; } var r = f(1); var f2 = function (x) { return null; }; @@ -58,6 +72,7 @@ var C = (function () { C.prototype.f = function (x) { return null; }; + __names(C.prototype, ["f"]); return C; }()); var r4 = (new C()).f(1); @@ -69,6 +84,7 @@ var C2 = (function () { C2.prototype.f = function (x) { return null; }; + __names(C2.prototype, ["f"]); return C2; }()); var r6 = (new C2()).f(1); diff --git a/tests/baselines/reference/callOverloadViaElementAccessExpression.js b/tests/baselines/reference/callOverloadViaElementAccessExpression.js index 48f3771206e2b..108b1deb1be29 100644 --- a/tests/baselines/reference/callOverloadViaElementAccessExpression.js +++ b/tests/baselines/reference/callOverloadViaElementAccessExpression.js @@ -12,12 +12,27 @@ var r: string = c['foo'](1); var r2: number = c['foo'](''); //// [callOverloadViaElementAccessExpression.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/callOverloads1.js b/tests/baselines/reference/callOverloads1.js index 756a9099e4452..6122d36bad581 100644 --- a/tests/baselines/reference/callOverloads1.js +++ b/tests/baselines/reference/callOverloads1.js @@ -18,11 +18,26 @@ f1.bar1(); Foo(); //// [callOverloads1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(x) { // WScript.Echo("Constructor function has executed"); } Foo.prototype.bar1 = function () { }; + __names(Foo.prototype, ["bar1"]); return Foo; }()); function F1(a) { return a; } diff --git a/tests/baselines/reference/callOverloads2.js b/tests/baselines/reference/callOverloads2.js index 9762a6e925f96..bbcac35f20085 100644 --- a/tests/baselines/reference/callOverloads2.js +++ b/tests/baselines/reference/callOverloads2.js @@ -24,11 +24,26 @@ Foo(); //// [callOverloads2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(x) { // WScript.Echo("Constructor function has executed"); } Foo.prototype.bar1 = function () { }; + __names(Foo.prototype, ["bar1"]); return Foo; }()); function F1(s) { return s; } // error diff --git a/tests/baselines/reference/callOverloads3.js b/tests/baselines/reference/callOverloads3.js index ecd6a39f5697b..024d946618155 100644 --- a/tests/baselines/reference/callOverloads3.js +++ b/tests/baselines/reference/callOverloads3.js @@ -18,11 +18,26 @@ Foo("s"); //// [callOverloads3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(x) { // WScript.Echo("Constructor function has executed"); } Foo.prototype.bar1 = function () { }; + __names(Foo.prototype, ["bar1"]); return Foo; }()); //class Foo(s: String); diff --git a/tests/baselines/reference/callOverloads4.js b/tests/baselines/reference/callOverloads4.js index ea2bd8572eb3e..35422f36edd4c 100644 --- a/tests/baselines/reference/callOverloads4.js +++ b/tests/baselines/reference/callOverloads4.js @@ -18,11 +18,26 @@ Foo("s"); //// [callOverloads4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(x) { // WScript.Echo("Constructor function has executed"); } Foo.prototype.bar1 = function () { }; + __names(Foo.prototype, ["bar1"]); return Foo; }()); var f1 = new Foo("hey"); diff --git a/tests/baselines/reference/callOverloads5.js b/tests/baselines/reference/callOverloads5.js index cf159d309b0f2..79da12c536952 100644 --- a/tests/baselines/reference/callOverloads5.js +++ b/tests/baselines/reference/callOverloads5.js @@ -20,11 +20,26 @@ Foo("s"); //// [callOverloads5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(x) { // WScript.Echo("Constructor function has executed"); } Foo.prototype.bar1 = function (a) { }; + __names(Foo.prototype, ["bar1"]); return Foo; }()); //class Foo(s: String); diff --git a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js index 14442dd6e2274..025ca7d42d738 100644 --- a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js +++ b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js @@ -57,6 +57,20 @@ b.b(1); //// [callSignatureWithOptionalParameterAndInitializer.js] // Optional parameters cannot also have initializer expressions, these are all errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { if (x === void 0) { x = 1; } } @@ -78,6 +92,7 @@ var C = (function () { C.prototype.foo = function (x) { if (x === void 0) { x = 1; } }; + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js index dba88c4951e21..7fadb09ad6532 100644 --- a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js +++ b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js @@ -40,6 +40,20 @@ var b = { //// [callSignaturesWithAccessibilityModifiersOnParameters.js] // Call signature parameters do not allow accessibility modifiers +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x, y) { } var f = function foo(x, y) { }; var f2 = function (x, y) { }; @@ -56,6 +70,7 @@ var C = (function () { C.prototype.foo = function (x, y) { }; C.prototype.foo2 = function (x, y) { }; C.prototype.foo3 = function (x, y) { }; + __names(C.prototype, ["foo", "foo2", "foo3"]); return C; }()); var a; diff --git a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js index add9e07ea4b83..e2d4feaf236ce 100644 --- a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js +++ b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js @@ -40,6 +40,20 @@ var b = { //// [callSignaturesWithDuplicateParameters.js] // Duplicate parameter names are always an error +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x, x) { } var f = function foo(x, x) { }; var f2 = function (x, x) { }; @@ -56,6 +70,7 @@ var C = (function () { C.prototype.foo = function (x, x) { }; C.prototype.foo2 = function (x, x) { }; C.prototype.foo3 = function (x, x) { }; + __names(C.prototype, ["foo", "foo2", "foo3"]); return C; }()); var a; diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters.js b/tests/baselines/reference/callSignaturesWithOptionalParameters.js index a0a3835c9432a..da7248d8918c3 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters.js @@ -57,6 +57,20 @@ b.b(1); //// [callSignaturesWithOptionalParameters.js] // Optional parameters should be valid in all the below casts +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { } var f = function foo(x) { }; var f2 = function (x, y) { }; @@ -70,6 +84,7 @@ var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js index 973b0466a79e1..ceaa857acdec7 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js @@ -61,6 +61,20 @@ a.foo(1, 2, 3); //// [callSignaturesWithOptionalParameters2.js] // Optional parameters should be valid in all the below casts +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { } foo(1); foo(); @@ -72,6 +86,7 @@ var C = (function () { } C.prototype.foo = function (x) { }; C.prototype.foo2 = function (x, y) { }; + __names(C.prototype, ["foo", "foo2"]); return C; }()); var c; diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers.js b/tests/baselines/reference/callSignaturesWithParameterInitializers.js index 8b53d5b29d52f..03ddb17e65ff4 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers.js @@ -59,6 +59,20 @@ b.b(1); //// [callSignaturesWithParameterInitializers.js] // Optional parameters allow initializers only in implementation signatures +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { if (x === void 0) { x = 1; } } @@ -80,6 +94,7 @@ var C = (function () { C.prototype.foo = function (x) { if (x === void 0) { x = 1; } }; + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js index fd1dd369010eb..a4b5c22c09b36 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js @@ -28,6 +28,20 @@ b.foo(1); //// [callSignaturesWithParameterInitializers2.js] // Optional parameters allow initializers only in implementation signatures // All the below declarations are errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { if (x === void 0) { x = 1; } } @@ -39,6 +53,7 @@ var C = (function () { C.prototype.foo = function (x) { if (x === void 0) { x = 1; } }; + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index 23c1fff2d09e6..b019b2f7152de 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -59,6 +59,20 @@ class D extends C { //// [callWithSpread.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -113,6 +127,7 @@ var C = (function () { z[_i - 2] = arguments[_i]; } }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -126,6 +141,7 @@ var D = (function (_super) { _super.prototype.foo.call(this, 1, 2); _super.prototype.foo.apply(this, [1, 2].concat(a)); }; + __names(D.prototype, ["foo"]); return D; }(C)); var _a, _b, _c, _d, _e, _f, _g; diff --git a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js index 98ca7cb47d7e0..9b4dc3ea04b49 100644 --- a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js @@ -12,6 +12,20 @@ class B extends A { } //// [captureSuperPropertyAccessInSuperCall01.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -26,6 +40,7 @@ var A = (function () { function A(f) { } A.prototype.blah = function () { return ""; }; + __names(A.prototype, ["blah"]); return A; }()); var B = (function (_super) { diff --git a/tests/baselines/reference/captureThisInSuperCall.js b/tests/baselines/reference/captureThisInSuperCall.js index ccca2e6562fbc..051495829cb30 100644 --- a/tests/baselines/reference/captureThisInSuperCall.js +++ b/tests/baselines/reference/captureThisInSuperCall.js @@ -19,6 +19,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A(p) { } @@ -31,5 +45,6 @@ var B = (function (_super) { return _this; } B.prototype.someMethod = function () { }; + __names(B.prototype, ["someMethod"]); return B; }(A)); diff --git a/tests/baselines/reference/capturedLetConstInLoop10.js b/tests/baselines/reference/capturedLetConstInLoop10.js index 63c114ba6e438..ae6a1ea4b87b5 100644 --- a/tests/baselines/reference/capturedLetConstInLoop10.js +++ b/tests/baselines/reference/capturedLetConstInLoop10.js @@ -46,6 +46,20 @@ class B { } //// [capturedLetConstInLoop10.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -100,6 +114,7 @@ var A = (function () { _loop_4(x); } }; + __names(A.prototype, ["foo", "bar", "baz", "baz2"]); return A; }()); var B = (function () { @@ -120,5 +135,6 @@ var B = (function () { }; B.prototype.bar = function (a) { }; + __names(B.prototype, ["foo", "bar"]); return B; }()); diff --git a/tests/baselines/reference/capturedLetConstInLoop13.js b/tests/baselines/reference/capturedLetConstInLoop13.js index a2e0921ab1db9..ed38248394155 100644 --- a/tests/baselines/reference/capturedLetConstInLoop13.js +++ b/tests/baselines/reference/capturedLetConstInLoop13.js @@ -23,6 +23,20 @@ class Main { new Main(); //// [capturedLetConstInLoop13.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Main = (function () { function Main() { this.register("a", "b", "c"); @@ -47,6 +61,7 @@ var Main = (function () { }; Main.prototype.bar = function (a) { }; Main.prototype.foo = function (name) { }; + __names(Main.prototype, ["register", "bar", "foo"]); return Main; }()); new Main(); diff --git a/tests/baselines/reference/capturedLetConstInLoop9.js b/tests/baselines/reference/capturedLetConstInLoop9.js index 8f88855a9ade7..4270f9f52ed79 100644 --- a/tests/baselines/reference/capturedLetConstInLoop9.js +++ b/tests/baselines/reference/capturedLetConstInLoop9.js @@ -139,6 +139,20 @@ function foo3 () { } //// [capturedLetConstInLoop9.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var _loop_1 = function (x) { var x_1; (function () { return x_1; }); @@ -170,6 +184,7 @@ var _loop_1 = function (x) { A.prototype.m = function () { return x_1 + 1; }; + __names(A.prototype, ["m"]); return A; }()); }; @@ -284,6 +299,7 @@ var C = (function () { _loop_5(i); } }; + __names(C.prototype, ["foo"]); return C; }()); function foo3() { diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js index 99bd90139aec6..093c7fe5e5f04 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js @@ -20,6 +20,20 @@ class C extends B { (new Chain(new A)).then(a => new B).then(b => new C).then(c => new B).then(b => new A); //// [chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -37,6 +51,7 @@ var Chain = (function () { Chain.prototype.then = function (cb) { return null; }; + __names(Chain.prototype, ["then"]); return Chain; }()); var A = (function () { diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js index 8aa5594701f25..f430c1eac327d 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js @@ -42,6 +42,20 @@ class Chain2 { } //// [chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Chain = (function () { function Chain(value) { this.value = value; @@ -58,6 +72,7 @@ var Chain = (function () { (new Chain(s)).then(function (ss) { return s; }).then(function (ss) { return s; }).then(function (ss) { return s; }); return null; }; + __names(Chain.prototype, ["then"]); return Chain; }()); var Chain2 = (function () { @@ -77,5 +92,6 @@ var Chain2 = (function () { (new Chain2(i)).then(function (ii) { return s; }).then(function (ss) { return s; }).then(function (ss) { return s; }).then(function (ss) { return s; }).value.x = ""; return null; }; + __names(Chain2.prototype, ["then"]); return Chain2; }()); diff --git a/tests/baselines/reference/checkJsxChildrenProperty10.js b/tests/baselines/reference/checkJsxChildrenProperty10.js index f022b28f20c28..c0af8756007f0 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty10.js +++ b/tests/baselines/reference/checkJsxChildrenProperty10.js @@ -23,12 +23,27 @@ let k3 =
{1} {"That is a number"}
; let k4 = ; //// [file.jsx] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Button = (function () { function Button() { } Button.prototype.render = function () { return (
My Button
); }; + __names(Button.prototype, ["render"]); return Button; }()); // OK diff --git a/tests/baselines/reference/checkJsxChildrenProperty11.js b/tests/baselines/reference/checkJsxChildrenProperty11.js index f022b28f20c28..c0af8756007f0 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty11.js +++ b/tests/baselines/reference/checkJsxChildrenProperty11.js @@ -23,12 +23,27 @@ let k3 =
{1} {"That is a number"}
; let k4 = ; //// [file.jsx] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Button = (function () { function Button() { } Button.prototype.render = function () { return (
My Button
); }; + __names(Button.prototype, ["render"]); return Button; }()); // OK diff --git a/tests/baselines/reference/checkJsxChildrenProperty12.js b/tests/baselines/reference/checkJsxChildrenProperty12.js index 0030d87483f2c..0669739358d01 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty12.js +++ b/tests/baselines/reference/checkJsxChildrenProperty12.js @@ -44,6 +44,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Button = (function (_super) { @@ -62,6 +76,7 @@ var Button = (function (_super) { ); } }; + __names(Button.prototype, ["render"]); return Button; }(React.Component)); var InnerButton = (function (_super) { @@ -72,5 +87,6 @@ var InnerButton = (function (_super) { InnerButton.prototype.render = function () { return (); }; + __names(InnerButton.prototype, ["render"]); return InnerButton; }(React.Component)); diff --git a/tests/baselines/reference/checkJsxChildrenProperty13.js b/tests/baselines/reference/checkJsxChildrenProperty13.js index 8947e6b211f08..550873e41f2e4 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty13.js +++ b/tests/baselines/reference/checkJsxChildrenProperty13.js @@ -39,6 +39,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Button = (function (_super) { @@ -52,6 +66,7 @@ var Button = (function (_super) {
Hello World
); }; + __names(Button.prototype, ["render"]); return Button; }(React.Component)); var InnerButton = (function (_super) { @@ -62,5 +77,6 @@ var InnerButton = (function (_super) { InnerButton.prototype.render = function () { return (); }; + __names(InnerButton.prototype, ["render"]); return InnerButton; }(React.Component)); diff --git a/tests/baselines/reference/checkJsxChildrenProperty3.js b/tests/baselines/reference/checkJsxChildrenProperty3.js index 49247925523d0..cf68946122b0f 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty3.js +++ b/tests/baselines/reference/checkJsxChildrenProperty3.js @@ -51,6 +51,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var FetchUser = (function (_super) { @@ -63,6 +77,7 @@ var FetchUser = (function (_super) { ? this.props.children(this.state.result) : null; }; + __names(FetchUser.prototype, ["render"]); return FetchUser; }(React.Component)); // Ok diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.js b/tests/baselines/reference/checkJsxChildrenProperty4.js index d163ffb0f41b5..bc759363642ca 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty4.js +++ b/tests/baselines/reference/checkJsxChildrenProperty4.js @@ -56,6 +56,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var FetchUser = (function (_super) { @@ -68,6 +82,7 @@ var FetchUser = (function (_super) { ? this.props.children(this.state.result) : null; }; + __names(FetchUser.prototype, ["render"]); return FetchUser; }(React.Component)); // Error diff --git a/tests/baselines/reference/checkJsxChildrenProperty5.js b/tests/baselines/reference/checkJsxChildrenProperty5.js index a08dae2f25214..5a0b5a414b7ca 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty5.js +++ b/tests/baselines/reference/checkJsxChildrenProperty5.js @@ -42,6 +42,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Button = (function (_super) { @@ -52,6 +66,7 @@ var Button = (function (_super) { Button.prototype.render = function () { return (
My Button
); }; + __names(Button.prototype, ["render"]); return Button; }(React.Component)); function Comp(p) { diff --git a/tests/baselines/reference/checkJsxChildrenProperty6.js b/tests/baselines/reference/checkJsxChildrenProperty6.js index e433bc520dbe3..4a6a56a864558 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty6.js +++ b/tests/baselines/reference/checkJsxChildrenProperty6.js @@ -55,6 +55,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Button = (function (_super) { @@ -65,6 +79,7 @@ var Button = (function (_super) { Button.prototype.render = function () { return (
My Button
); }; + __names(Button.prototype, ["render"]); return Button; }(React.Component)); function AnotherButton(p) { diff --git a/tests/baselines/reference/checkJsxChildrenProperty7.js b/tests/baselines/reference/checkJsxChildrenProperty7.js index 6a82233f0bc09..3ac2ebe39c16a 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty7.js +++ b/tests/baselines/reference/checkJsxChildrenProperty7.js @@ -40,6 +40,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Button = (function (_super) { @@ -50,6 +64,7 @@ var Button = (function (_super) { Button.prototype.render = function () { return (
My Button
); }; + __names(Button.prototype, ["render"]); return Button; }(React.Component)); function AnotherButton(p) { diff --git a/tests/baselines/reference/checkJsxChildrenProperty8.js b/tests/baselines/reference/checkJsxChildrenProperty8.js index a2cd6a43fa500..111c407133523 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty8.js +++ b/tests/baselines/reference/checkJsxChildrenProperty8.js @@ -41,6 +41,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Button = (function (_super) { @@ -51,6 +65,7 @@ var Button = (function (_super) { Button.prototype.render = function () { return (
My Button
); }; + __names(Button.prototype, ["render"]); return Button; }(React.Component)); function AnotherButton(p) { diff --git a/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js b/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js index a5eb24c671680..8e45ac53fdd70 100644 --- a/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js +++ b/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js @@ -12,6 +12,20 @@ class A { } //// [checkSwitchStatementIfCaseTypeIsString.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -23,5 +37,6 @@ var A = (function () { } }); }; + __names(A.prototype, ["doIt"]); return A; }()); diff --git a/tests/baselines/reference/classAbstractAsIdentifier.js b/tests/baselines/reference/classAbstractAsIdentifier.js index 44a2b0d331295..96a03e1de476a 100644 --- a/tests/baselines/reference/classAbstractAsIdentifier.js +++ b/tests/baselines/reference/classAbstractAsIdentifier.js @@ -6,10 +6,25 @@ class abstract { new abstract; //// [classAbstractAsIdentifier.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var abstract = (function () { function abstract() { } abstract.prototype.foo = function () { return 1; }; + __names(abstract.prototype, ["foo"]); return abstract; }()); new abstract; diff --git a/tests/baselines/reference/classAbstractCrashedOnce.js b/tests/baselines/reference/classAbstractCrashedOnce.js index 7801b61cdd922..acb93f58c82ff 100644 --- a/tests/baselines/reference/classAbstractCrashedOnce.js +++ b/tests/baselines/reference/classAbstractCrashedOnce.js @@ -21,6 +21,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var foo = (function () { function foo() { } @@ -35,6 +49,7 @@ var bar = (function (_super) { this. ; }; + __names(bar.prototype, ["test"]); return bar; }(foo)); var x = new bar(); diff --git a/tests/baselines/reference/classAbstractExtends.js b/tests/baselines/reference/classAbstractExtends.js index 0f63a08d2e9f0..8a4dcd5ec3802 100644 --- a/tests/baselines/reference/classAbstractExtends.js +++ b/tests/baselines/reference/classAbstractExtends.js @@ -16,6 +16,20 @@ class E extends B { } //// [classAbstractExtends.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -30,6 +44,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -59,5 +74,6 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.bar = function () { }; + __names(E.prototype, ["bar"]); return E; }(B)); diff --git a/tests/baselines/reference/classAbstractGeneric.js b/tests/baselines/reference/classAbstractGeneric.js index 6d20869ba73b9..d01b5b6350017 100644 --- a/tests/baselines/reference/classAbstractGeneric.js +++ b/tests/baselines/reference/classAbstractGeneric.js @@ -36,6 +36,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -68,6 +82,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo = function () { return this.t; }; + __names(E.prototype, ["foo"]); return E; }(A)); var F = (function (_super) { @@ -76,6 +91,7 @@ var F = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } F.prototype.bar = function (t) { }; + __names(F.prototype, ["bar"]); return F; }(A)); var G = (function (_super) { @@ -85,5 +101,6 @@ var G = (function (_super) { } G.prototype.foo = function () { return this.t; }; G.prototype.bar = function (t) { }; + __names(G.prototype, ["foo", "bar"]); return G; }(A)); diff --git a/tests/baselines/reference/classAbstractInstantiations2.js b/tests/baselines/reference/classAbstractInstantiations2.js index 7d400c9fb05b2..286341200d950 100644 --- a/tests/baselines/reference/classAbstractInstantiations2.js +++ b/tests/baselines/reference/classAbstractInstantiations2.js @@ -52,6 +52,20 @@ class H { // error -- not declared abstract } //// [classAbstractInstantiations2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -71,6 +85,7 @@ var B = (function () { function B() { } B.prototype.foo = function () { return this.bar(); }; + __names(B.prototype, ["foo"]); return B; }()); new B; // error @@ -104,6 +119,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.bar = function () { return 1; }; + __names(E.prototype, ["bar"]); return E; }(B)); var F = (function (_super) { @@ -112,6 +128,7 @@ var F = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } F.prototype.bar = function () { return 2; }; + __names(F.prototype, ["bar"]); return F; }(B)); var G = (function () { diff --git a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js index b4bf0595a3e48..696848b58a31a 100644 --- a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js +++ b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js @@ -8,6 +8,20 @@ class B { } //// [classAbstractMethodInNonAbstractClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -17,5 +31,6 @@ var B = (function () { function B() { } B.prototype.foo = function () { }; + __names(B.prototype, ["foo"]); return B; }()); diff --git a/tests/baselines/reference/classAbstractMethodWithImplementation.js b/tests/baselines/reference/classAbstractMethodWithImplementation.js index aa373d1d2040f..25db3df4d6f68 100644 --- a/tests/baselines/reference/classAbstractMethodWithImplementation.js +++ b/tests/baselines/reference/classAbstractMethodWithImplementation.js @@ -4,9 +4,24 @@ abstract class A { } //// [classAbstractMethodWithImplementation.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); diff --git a/tests/baselines/reference/classAbstractOverloads.js b/tests/baselines/reference/classAbstractOverloads.js index 11a694484f3e5..77619fce61cde 100644 --- a/tests/baselines/reference/classAbstractOverloads.js +++ b/tests/baselines/reference/classAbstractOverloads.js @@ -25,10 +25,25 @@ abstract class B { } //// [classAbstractOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.baz = function () { }; + __names(A.prototype, ["baz"]); return A; }()); var B = (function () { diff --git a/tests/baselines/reference/classAbstractOverrideWithAbstract.js b/tests/baselines/reference/classAbstractOverrideWithAbstract.js index 496dc7f241a6a..254b8686c02e4 100644 --- a/tests/baselines/reference/classAbstractOverrideWithAbstract.js +++ b/tests/baselines/reference/classAbstractOverrideWithAbstract.js @@ -24,6 +24,20 @@ class DD extends BB { } //// [classAbstractOverrideWithAbstract.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -38,6 +52,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -51,6 +66,7 @@ var AA = (function () { function AA() { } AA.prototype.foo = function () { }; + __names(AA.prototype, ["foo"]); return AA; }()); var BB = (function (_super) { @@ -59,6 +75,7 @@ var BB = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } BB.prototype.bar = function () { }; + __names(BB.prototype, ["bar"]); return BB; }(AA)); var CC = (function (_super) { @@ -74,5 +91,6 @@ var DD = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } DD.prototype.foo = function () { }; + __names(DD.prototype, ["foo"]); return DD; }(BB)); diff --git a/tests/baselines/reference/classAbstractSuperCalls.js b/tests/baselines/reference/classAbstractSuperCalls.js index 9bba784ca9360..fa99360fd1017 100644 --- a/tests/baselines/reference/classAbstractSuperCalls.js +++ b/tests/baselines/reference/classAbstractSuperCalls.js @@ -27,6 +27,20 @@ abstract class BB extends AA { //// [classAbstractSuperCalls.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -41,6 +55,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -50,6 +65,7 @@ var B = (function (_super) { } B.prototype.bar = function () { _super.prototype.foo.call(this); }; B.prototype.baz = function () { return this.foo; }; + __names(B.prototype, ["bar", "baz"]); return B; }(A)); var C = (function (_super) { @@ -60,6 +76,7 @@ var C = (function (_super) { C.prototype.foo = function () { return 2; }; C.prototype.qux = function () { return _super.prototype.foo.call(this) || _super.prototype.foo; }; // 2 errors, foo is abstract C.prototype.norf = function () { return _super.prototype.bar.call(this); }; + __names(C.prototype, ["foo", "qux", "norf"]); return C; }(B)); var AA = (function () { @@ -67,6 +84,7 @@ var AA = (function () { } AA.prototype.foo = function () { return 1; }; AA.prototype.bar = function () { return this.foo(); }; + __names(AA.prototype, ["foo", "bar"]); return AA; }()); var BB = (function (_super) { diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js index 8781fc6c05fc0..99715ee8e69f2 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js @@ -28,6 +28,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -39,6 +53,7 @@ var B = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } B.prototype.foo = function () { return 1; }; + __names(B.prototype, ["foo"]); return B; }(A)); var C = (function (_super) { diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js index 6016ab249f1a0..364cae47a9186 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js @@ -38,6 +38,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -63,6 +77,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.foo = function () { }; + __names(D.prototype, ["foo"]); return D; }(A)); var E = (function (_super) { @@ -71,6 +86,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo = function () { }; + __names(E.prototype, ["foo"]); return E; }(A)); var AA = (function () { @@ -98,5 +114,6 @@ var DD = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } DD.prototype.foo = function () { }; + __names(DD.prototype, ["foo"]); return DD; }(AA)); diff --git a/tests/baselines/reference/classBlockScoping.js b/tests/baselines/reference/classBlockScoping.js index 3cae2d3cb7d1b..1151a24ab72db 100644 --- a/tests/baselines/reference/classBlockScoping.js +++ b/tests/baselines/reference/classBlockScoping.js @@ -34,6 +34,20 @@ function f(b: boolean) { } //// [classBlockScoping.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f(b) { var Foo; if (b) { @@ -46,6 +60,7 @@ function f(b) { Foo.prototype.m = function () { new Foo(); }; + __names(Foo.prototype, ["m"]); return Foo; }()), _a.y = new _a(), @@ -62,6 +77,7 @@ function f(b) { Foo.prototype.m = function () { new Foo(); }; + __names(Foo.prototype, ["m"]); Foo.y = new Foo(); return Foo; }()); diff --git a/tests/baselines/reference/classConstructorAccessibility2.js b/tests/baselines/reference/classConstructorAccessibility2.js index 76c8ea1911031..63944ff2cd2f2 100644 --- a/tests/baselines/reference/classConstructorAccessibility2.js +++ b/tests/baselines/reference/classConstructorAccessibility2.js @@ -46,6 +46,20 @@ var dc = new DerivedC(1); //// [classConstructorAccessibility2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -61,6 +75,7 @@ var BaseA = (function () { this.x = x; } BaseA.prototype.createInstance = function () { new BaseA(1); }; + __names(BaseA.prototype, ["createInstance"]); return BaseA; }()); var BaseB = (function () { @@ -68,6 +83,7 @@ var BaseB = (function () { this.x = x; } BaseB.prototype.createInstance = function () { new BaseB(2); }; + __names(BaseB.prototype, ["createInstance"]); return BaseB; }()); var BaseC = (function () { @@ -76,6 +92,7 @@ var BaseC = (function () { } BaseC.prototype.createInstance = function () { new BaseC(3); }; BaseC.staticInstance = function () { new BaseC(4); }; + __names(BaseC.prototype, ["createInstance"]); return BaseC; }()); var DerivedA = (function (_super) { @@ -88,6 +105,7 @@ var DerivedA = (function (_super) { DerivedA.prototype.createInstance = function () { new DerivedA(5); }; DerivedA.prototype.createBaseInstance = function () { new BaseA(6); }; DerivedA.staticBaseInstance = function () { new BaseA(7); }; + __names(DerivedA.prototype, ["createInstance", "createBaseInstance"]); return DerivedA; }(BaseA)); var DerivedB = (function (_super) { @@ -100,6 +118,7 @@ var DerivedB = (function (_super) { DerivedB.prototype.createInstance = function () { new DerivedB(7); }; DerivedB.prototype.createBaseInstance = function () { new BaseB(8); }; // ok DerivedB.staticBaseInstance = function () { new BaseB(9); }; // ok + __names(DerivedB.prototype, ["createInstance", "createBaseInstance"]); return DerivedB; }(BaseB)); var DerivedC = (function (_super) { @@ -112,6 +131,7 @@ var DerivedC = (function (_super) { DerivedC.prototype.createInstance = function () { new DerivedC(9); }; DerivedC.prototype.createBaseInstance = function () { new BaseC(10); }; // error DerivedC.staticBaseInstance = function () { new BaseC(11); }; // error + __names(DerivedC.prototype, ["createInstance", "createBaseInstance"]); return DerivedC; }(BaseC)); var ba = new BaseA(1); diff --git a/tests/baselines/reference/classConstructorAccessibility4.js b/tests/baselines/reference/classConstructorAccessibility4.js index 032d4f8c13d7b..3efa4cbb2e871 100644 --- a/tests/baselines/reference/classConstructorAccessibility4.js +++ b/tests/baselines/reference/classConstructorAccessibility4.js @@ -30,6 +30,20 @@ class D { } //// [classConstructorAccessibility4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -50,6 +64,7 @@ var A = (function () { B.prototype.method = function () { new A(); // OK }; + __names(B.prototype, ["method"]); return B; }()); var C = (function (_super) { @@ -60,6 +75,7 @@ var A = (function () { return C; }(A)); }; + __names(A.prototype, ["method"]); return A; }()); var D = (function () { @@ -72,6 +88,7 @@ var D = (function () { E.prototype.method = function () { new D(); // OK }; + __names(E.prototype, ["method"]); return E; }()); var F = (function (_super) { @@ -82,6 +99,7 @@ var D = (function () { return F; }(D)); }; + __names(D.prototype, ["method"]); return D; }()); diff --git a/tests/baselines/reference/classExpression4.js b/tests/baselines/reference/classExpression4.js index 7bdc8bd06ef64..072f5ba0c2d6f 100644 --- a/tests/baselines/reference/classExpression4.js +++ b/tests/baselines/reference/classExpression4.js @@ -8,12 +8,27 @@ let x = (new C).foo(); //// [classExpression4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function class_1() { } class_1.prototype.foo = function () { return new C(); }; + __names(class_1.prototype, ["foo"]); return class_1; }()); var x = (new C).foo(); diff --git a/tests/baselines/reference/classExpression5.js b/tests/baselines/reference/classExpression5.js index fae615d3a553c..1685fdde3c11c 100644 --- a/tests/baselines/reference/classExpression5.js +++ b/tests/baselines/reference/classExpression5.js @@ -6,11 +6,26 @@ new class { }().hi(); //// [classExpression5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); new (function () { function class_1() { } class_1.prototype.hi = function () { return "Hi!"; }; + __names(class_1.prototype, ["hi"]); return class_1; }())().hi(); diff --git a/tests/baselines/reference/classExpressionTest1.js b/tests/baselines/reference/classExpressionTest1.js index 6b799c12f0413..c48c51b9401d4 100644 --- a/tests/baselines/reference/classExpressionTest1.js +++ b/tests/baselines/reference/classExpressionTest1.js @@ -13,6 +13,20 @@ function M() { } //// [classExpressionTest1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function M() { var C = (function () { function C() { @@ -22,6 +36,7 @@ function M() { var x; return { t: t, x: x }; }; + __names(C.prototype, ["f"]); return C; }()); var v = new C(); diff --git a/tests/baselines/reference/classExpressionTest2.js b/tests/baselines/reference/classExpressionTest2.js index 761af899759dd..742187bdcd33f 100644 --- a/tests/baselines/reference/classExpressionTest2.js +++ b/tests/baselines/reference/classExpressionTest2.js @@ -13,6 +13,20 @@ function M() { } //// [classExpressionTest2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function M() { var m = (function () { function C() { @@ -22,6 +36,7 @@ function M() { var x; return { t: t, x: x }; }; + __names(C.prototype, ["f"]); return C; }()); var v = new m(); diff --git a/tests/baselines/reference/classExpressions.js b/tests/baselines/reference/classExpressions.js index 3932fa5045b2c..ceab0fbda894f 100644 --- a/tests/baselines/reference/classExpressions.js +++ b/tests/baselines/reference/classExpressions.js @@ -9,6 +9,20 @@ let x = class B implements A { }; //// [classExpressions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var x = (function () { function B() { this.func = function () { @@ -16,5 +30,6 @@ var x = (function () { } B.prototype.onStart = function () { }; + __names(B.prototype, ["onStart"]); return B; }()); diff --git a/tests/baselines/reference/classExtendingClass.js b/tests/baselines/reference/classExtendingClass.js index 52b415ccb779d..6daaab5017685 100644 --- a/tests/baselines/reference/classExtendingClass.js +++ b/tests/baselines/reference/classExtendingClass.js @@ -32,6 +32,20 @@ var r7 = d2.thing(''); var r8 = D2.other(1); //// [classExtendingClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -47,6 +61,7 @@ var C = (function () { } C.prototype.thing = function () { }; C.other = function () { }; + __names(C.prototype, ["thing"]); return C; }()); var D = (function (_super) { @@ -66,6 +81,7 @@ var C2 = (function () { } C2.prototype.thing = function (x) { }; C2.other = function (x) { }; + __names(C2.prototype, ["thing"]); return C2; }()); var D2 = (function (_super) { diff --git a/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js b/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js index aab40d145c4d9..7e2a70655ab61 100644 --- a/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js +++ b/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js @@ -15,11 +15,26 @@ class D2 implements I { } //// [classExtendsInterfaceThatExtendsClassWithPrivates1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.x = 1; } C.prototype.foo = function (x) { return x; }; + __names(C.prototype, ["foo"]); return C; }()); var D2 = (function () { @@ -28,5 +43,6 @@ var D2 = (function () { } D2.prototype.foo = function (x) { return x; }; D2.prototype.other = function (x) { return x; }; + __names(D2.prototype, ["foo", "other"]); return D2; }()); diff --git a/tests/baselines/reference/classImplementsClass2.js b/tests/baselines/reference/classImplementsClass2.js index 330a9a7dece3c..0d9da36165f06 100644 --- a/tests/baselines/reference/classImplementsClass2.js +++ b/tests/baselines/reference/classImplementsClass2.js @@ -14,6 +14,20 @@ c = c2; c2 = c; //// [classImplementsClass2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var C = (function () { @@ -43,6 +58,7 @@ var C2 = (function (_super) { C2.prototype.foo = function () { return 1; }; + __names(C2.prototype, ["foo"]); return C2; }(A)); var c; diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js index 649afb528a39e..c788aeaf566e1 100644 --- a/tests/baselines/reference/classImplementsClass3.js +++ b/tests/baselines/reference/classImplementsClass3.js @@ -15,6 +15,20 @@ c = c2; c2 = c; //// [classImplementsClass3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -29,6 +43,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var C = (function () { @@ -37,6 +52,7 @@ var C = (function () { C.prototype.foo = function () { return 1; }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function (_super) { diff --git a/tests/baselines/reference/classImplementsClass4.js b/tests/baselines/reference/classImplementsClass4.js index 0d7a8661ed16a..6b00105152293 100644 --- a/tests/baselines/reference/classImplementsClass4.js +++ b/tests/baselines/reference/classImplementsClass4.js @@ -17,6 +17,20 @@ c = c2; c2 = c; //// [classImplementsClass4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -32,6 +46,7 @@ var A = (function () { this.x = 1; } A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var C = (function () { @@ -40,6 +55,7 @@ var C = (function () { C.prototype.foo = function () { return 1; }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function (_super) { diff --git a/tests/baselines/reference/classImplementsClass5.js b/tests/baselines/reference/classImplementsClass5.js index 4b5229bdfc6f8..3807c7a8654b0 100644 --- a/tests/baselines/reference/classImplementsClass5.js +++ b/tests/baselines/reference/classImplementsClass5.js @@ -18,6 +18,20 @@ c = c2; c2 = c; //// [classImplementsClass5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -33,6 +47,7 @@ var A = (function () { this.x = 1; } A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var C = (function () { @@ -42,6 +57,7 @@ var C = (function () { C.prototype.foo = function () { return 1; }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function (_super) { diff --git a/tests/baselines/reference/classImplementsClass6.js b/tests/baselines/reference/classImplementsClass6.js index fb42e9451a70a..720329f26f7fa 100644 --- a/tests/baselines/reference/classImplementsClass6.js +++ b/tests/baselines/reference/classImplementsClass6.js @@ -22,6 +22,20 @@ c.bar(); // error c2.bar(); // should error //// [classImplementsClass6.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -39,6 +53,7 @@ var A = (function () { return ""; }; A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var C = (function () { @@ -47,6 +62,7 @@ var C = (function () { C.prototype.foo = function () { return 1; }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function (_super) { diff --git a/tests/baselines/reference/classImplementsImportedInterface.js b/tests/baselines/reference/classImplementsImportedInterface.js index d9d7d9eed2e05..1fd42ebc163df 100644 --- a/tests/baselines/reference/classImplementsImportedInterface.js +++ b/tests/baselines/reference/classImplementsImportedInterface.js @@ -13,12 +13,27 @@ module M2 { } //// [classImplementsImportedInterface.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M2; (function (M2) { var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); })(M2 || (M2 = {})); diff --git a/tests/baselines/reference/classOrder1.js b/tests/baselines/reference/classOrder1.js index 0d6d47891ea60..9b8807a421c38 100644 --- a/tests/baselines/reference/classOrder1.js +++ b/tests/baselines/reference/classOrder1.js @@ -12,12 +12,27 @@ a.foo(); //// [classOrder1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { /*WScript.Echo("Here!");*/ }; + __names(A.prototype, ["foo"]); return A; }()); var a = new A(); diff --git a/tests/baselines/reference/classOrder2.js b/tests/baselines/reference/classOrder2.js index 13ddfd8ae8251..be1b21cca5f6b 100644 --- a/tests/baselines/reference/classOrder2.js +++ b/tests/baselines/reference/classOrder2.js @@ -29,18 +29,34 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function (_super) { __extends(A, _super); function A() { return _super !== null && _super.apply(this, arguments) || this; } A.prototype.foo = function () { this.bar(); }; + __names(A.prototype, ["foo"]); return A; }(B)); var B = (function () { function B() { } B.prototype.bar = function () { }; + __names(B.prototype, ["bar"]); return B; }()); var a = new A(); diff --git a/tests/baselines/reference/classPropertyAsPrivate.js b/tests/baselines/reference/classPropertyAsPrivate.js index 3db4b7acce430..0420dfc2e65e6 100644 --- a/tests/baselines/reference/classPropertyAsPrivate.js +++ b/tests/baselines/reference/classPropertyAsPrivate.js @@ -24,6 +24,20 @@ C.b = 1; C.foo(); //// [classPropertyAsPrivate.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -41,6 +55,7 @@ var C = (function () { configurable: true }); C.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/classPropertyAsProtected.js b/tests/baselines/reference/classPropertyAsProtected.js index da0e166513529..f5d0549d55a69 100644 --- a/tests/baselines/reference/classPropertyAsProtected.js +++ b/tests/baselines/reference/classPropertyAsProtected.js @@ -24,6 +24,20 @@ C.b = 1; C.foo(); //// [classPropertyAsProtected.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -41,6 +55,7 @@ var C = (function () { configurable: true }); C.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/classPropertyIsPublicByDefault.js b/tests/baselines/reference/classPropertyIsPublicByDefault.js index 5a5bfa7afe888..0e4b5bdc6d214 100644 --- a/tests/baselines/reference/classPropertyIsPublicByDefault.js +++ b/tests/baselines/reference/classPropertyIsPublicByDefault.js @@ -23,6 +23,20 @@ C.b = 1; C.foo(); //// [classPropertyIsPublicByDefault.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -40,6 +54,7 @@ var C = (function () { configurable: true }); C.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/classSideInheritance1.js b/tests/baselines/reference/classSideInheritance1.js index 549d945119927..783ea6a9c7fef 100644 --- a/tests/baselines/reference/classSideInheritance1.js +++ b/tests/baselines/reference/classSideInheritance1.js @@ -16,6 +16,20 @@ A.bar(); // valid C2.bar(); // valid //// [classSideInheritance1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -33,6 +47,7 @@ var A = (function () { return ""; }; A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var C2 = (function (_super) { diff --git a/tests/baselines/reference/classSideInheritance2.js b/tests/baselines/reference/classSideInheritance2.js index 9887472615f4d..49304de2dac76 100644 --- a/tests/baselines/reference/classSideInheritance2.js +++ b/tests/baselines/reference/classSideInheritance2.js @@ -31,6 +31,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var SubText = (function (_super) { __extends(SubText, _super); function SubText(text, span) { @@ -44,5 +58,6 @@ var TextBase = (function () { TextBase.prototype.subText = function (span) { return new SubText(this, span); }; + __names(TextBase.prototype, ["subText"]); return TextBase; }()); diff --git a/tests/baselines/reference/classWithDuplicateIdentifier.js b/tests/baselines/reference/classWithDuplicateIdentifier.js index 515b1749aa3d5..28d5d9ab917a9 100644 --- a/tests/baselines/reference/classWithDuplicateIdentifier.js +++ b/tests/baselines/reference/classWithDuplicateIdentifier.js @@ -14,16 +14,32 @@ class D { //// [classWithDuplicateIdentifier.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.a = function () { return 0; }; // error: duplicate identifier + __names(C.prototype, ["a"]); return C; }()); var K = (function () { function K() { } K.prototype.b = function () { return 0; }; + __names(K.prototype, ["b"]); return K; }()); var D = (function () { diff --git a/tests/baselines/reference/classWithMultipleBaseClasses.js b/tests/baselines/reference/classWithMultipleBaseClasses.js index 4f1170f000e75..67e782141b8e6 100644 --- a/tests/baselines/reference/classWithMultipleBaseClasses.js +++ b/tests/baselines/reference/classWithMultipleBaseClasses.js @@ -25,16 +25,32 @@ interface I extends A, B { } //// [classWithMultipleBaseClasses.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.bar = function () { }; + __names(B.prototype, ["bar"]); return B; }()); var D = (function () { @@ -42,5 +58,6 @@ var D = (function () { } D.prototype.baz = function () { }; D.prototype.bat = function () { }; + __names(D.prototype, ["baz", "bat"]); return D; }()); diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js index c2942b8571f39..a70ed7e2fb744 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js @@ -27,6 +27,20 @@ i = c; //// [classWithOnlyPublicMembersEquivalentToInterface.js] // no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -37,6 +51,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["y"]); return C; }()); var c; diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js index b97269527bee3..3b7f48fbf66f5 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js @@ -29,6 +29,20 @@ i = c; //// [classWithOnlyPublicMembersEquivalentToInterface2.js] // no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -39,6 +53,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["y"]); return C; }()); var c; diff --git a/tests/baselines/reference/classWithOptionalParameter.js b/tests/baselines/reference/classWithOptionalParameter.js index 53f6bcedd9966..1247164480138 100644 --- a/tests/baselines/reference/classWithOptionalParameter.js +++ b/tests/baselines/reference/classWithOptionalParameter.js @@ -13,15 +13,31 @@ class C2 { //// [classWithOptionalParameter.js] // classes do not permit optional parameters, these are errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.f = function () { }; + __names(C.prototype, ["f"]); return C; }()); var C2 = (function () { function C2() { } C2.prototype.f = function (x) { }; + __names(C2.prototype, ["f"]); return C2; }()); diff --git a/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js b/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js index 1bc9f197450db..95d3ed4e17872 100644 --- a/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js +++ b/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js @@ -6,9 +6,24 @@ class C { } //// [classWithOverloadImplementationOfWrongName.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function (x) { }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js index 8e3d9eee62cc7..45cd55a779a30 100644 --- a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js +++ b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js @@ -6,9 +6,24 @@ class C { } //// [classWithOverloadImplementationOfWrongName2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function (x) { }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/classWithPrivateProperty.js b/tests/baselines/reference/classWithPrivateProperty.js index 6e75797523fb3..eb0b0f30c2570 100644 --- a/tests/baselines/reference/classWithPrivateProperty.js +++ b/tests/baselines/reference/classWithPrivateProperty.js @@ -24,6 +24,20 @@ var r8: string = C.g(); //// [classWithPrivateProperty.js] // accessing any private outside the class is an error +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.a = ''; @@ -32,6 +46,7 @@ var C = (function () { } C.prototype.c = function () { return ''; }; C.f = function () { return ''; }; + __names(C.prototype, ["c"]); C.g = function () { return ''; }; return C; }()); diff --git a/tests/baselines/reference/classWithProtectedProperty.js b/tests/baselines/reference/classWithProtectedProperty.js index 2bc766cd99a7e..98c92cd3d6142 100644 --- a/tests/baselines/reference/classWithProtectedProperty.js +++ b/tests/baselines/reference/classWithProtectedProperty.js @@ -29,6 +29,20 @@ class D extends C { //// [classWithProtectedProperty.js] // accessing any protected outside the class is an error +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -47,6 +61,7 @@ var C = (function () { } C.prototype.c = function () { return ''; }; C.f = function () { return ''; }; + __names(C.prototype, ["c"]); C.g = function () { return ''; }; return C; }()); @@ -67,5 +82,6 @@ var D = (function (_super) { var r7 = C.f(); var r8 = C.g(); }; + __names(D.prototype, ["method"]); return D; }(C)); diff --git a/tests/baselines/reference/classWithPublicProperty.js b/tests/baselines/reference/classWithPublicProperty.js index 054713264bd01..4590324930e57 100644 --- a/tests/baselines/reference/classWithPublicProperty.js +++ b/tests/baselines/reference/classWithPublicProperty.js @@ -22,6 +22,20 @@ var r7: string = C.f(); var r8: string = C.g(); //// [classWithPublicProperty.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.a = ''; @@ -30,6 +44,7 @@ var C = (function () { } C.prototype.c = function () { return ''; }; C.f = function () { return ''; }; + __names(C.prototype, ["c"]); C.g = function () { return ''; }; return C; }()); diff --git a/tests/baselines/reference/classdecl.js b/tests/baselines/reference/classdecl.js index e1e1313dae29c..632553c70c831 100644 --- a/tests/baselines/reference/classdecl.js +++ b/tests/baselines/reference/classdecl.js @@ -94,6 +94,20 @@ class e { } //// [classdecl.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -136,6 +150,7 @@ var a = (function () { a.prototype.foo = function (ns) { return ns.toString(); }; + __names(a.prototype, ["pgF", "foo"]); return a; }()); var b = (function (_super) { @@ -197,6 +212,7 @@ var d = (function () { d.prototype.foo = function (ns) { return ns.toString(); }; + __names(d.prototype, ["foo"]); return d; }()); var e = (function () { @@ -205,6 +221,7 @@ var e = (function () { e.prototype.foo = function (ns) { return ns.toString(); }; + __names(e.prototype, ["foo"]); return e; }()); diff --git a/tests/baselines/reference/cloduleAcrossModuleDefinitions.js b/tests/baselines/reference/cloduleAcrossModuleDefinitions.js index ac3ff22852f3f..0398b28611776 100644 --- a/tests/baselines/reference/cloduleAcrossModuleDefinitions.js +++ b/tests/baselines/reference/cloduleAcrossModuleDefinitions.js @@ -16,6 +16,20 @@ var b: A.B; // ok //// [cloduleAcrossModuleDefinitions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var B = (function () { @@ -23,6 +37,7 @@ var A; } B.prototype.foo = function () { }; B.bar = function () { }; + __names(B.prototype, ["foo"]); return B; }()); A.B = B; diff --git a/tests/baselines/reference/collisionArgumentsClassMethod.js b/tests/baselines/reference/collisionArgumentsClassMethod.js index 85610926e350c..56bbd852ca4e2 100644 --- a/tests/baselines/reference/collisionArgumentsClassMethod.js +++ b/tests/baselines/reference/collisionArgumentsClassMethod.js @@ -49,6 +49,20 @@ class c3 { } //// [collisionArgumentsClassMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var c1 = (function () { function c1() { } @@ -86,6 +100,7 @@ var c1 = (function () { c1.prototype.f4NoError = function (arguments) { var arguments; // no error }; + __names(c1.prototype, ["foo", "foo1", "fooNoError", "f4", "f41", "f4NoError"]); return c1; }()); var c3 = (function () { @@ -101,5 +116,6 @@ var c3 = (function () { c3.prototype.fooNoError = function () { var arguments = 10; // no error }; + __names(c3.prototype, ["foo", "fooNoError"]); return c3; }()); diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js index 4ff4cb22668ba..f844db00c0df0 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js @@ -33,6 +33,20 @@ module M { // Shouldnt bn _M } //// [collisionCodeGenModuleWithMethodChildren.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M_1) { M_1.x = 3; @@ -42,6 +56,7 @@ var M; c.prototype.fn = function (M, p) { if (p === void 0) { p = M_1.x; } }; + __names(c.prototype, ["fn"]); return c; }()); })(M || (M = {})); @@ -53,6 +68,7 @@ var M; var M; var p = M_2.x; }; + __names(d.prototype, ["fn2"]); return d; }()); })(M || (M = {})); @@ -65,6 +81,7 @@ var M; var p = M_3.x; } }; + __names(e.prototype, ["fn3"]); return e; }()); })(M || (M = {})); @@ -74,6 +91,7 @@ var M; } f.prototype.M = function () { }; + __names(f.prototype, ["M"]); return f; }()); })(M || (M = {})); diff --git a/tests/baselines/reference/collisionRestParameterClassMethod.js b/tests/baselines/reference/collisionRestParameterClassMethod.js index cda717c79ab03..3aab32fe5a3c7 100644 --- a/tests/baselines/reference/collisionRestParameterClassMethod.js +++ b/tests/baselines/reference/collisionRestParameterClassMethod.js @@ -39,6 +39,20 @@ class c3 { } //// [collisionRestParameterClassMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var c1 = (function () { function c1() { } @@ -62,6 +76,7 @@ var c1 = (function () { c1.prototype.f4NoError = function (_i) { var _i; // no error }; + __names(c1.prototype, ["foo", "fooNoError", "f4", "f4NoError"]); return c1; }()); var c3 = (function () { @@ -77,5 +92,6 @@ var c3 = (function () { c3.prototype.fooNoError = function () { var _i = 10; // no error }; + __names(c3.prototype, ["foo", "fooNoError"]); return c3; }()); diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js index b211b3e4eacc7..7a2c8cc6c578f 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js @@ -29,6 +29,20 @@ class c extends Foo { } //// [collisionSuperAndLocalFunctionInMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -50,6 +64,7 @@ var Foo = (function () { }; Foo.prototype._super = function () { }; + __names(Foo.prototype, ["x", "_super"]); return Foo; }()); var b = (function (_super) { @@ -63,6 +78,7 @@ var b = (function (_super) { }; b.prototype._super = function () { }; + __names(b.prototype, ["foo", "_super"]); return b; }(Foo)); var c = (function (_super) { @@ -78,5 +94,6 @@ var c = (function (_super) { }; c.prototype._super = function () { }; + __names(c.prototype, ["foo", "_super"]); return c; }(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js index c6cce551d9326..c567ac3d5b901 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js @@ -19,6 +19,20 @@ class c extends Foo { } //// [collisionSuperAndLocalVarInMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -36,6 +50,7 @@ var Foo = (function () { Foo.prototype.x = function () { var _super = 10; // No error }; + __names(Foo.prototype, ["x"]); return Foo; }()); var b = (function (_super) { @@ -46,6 +61,7 @@ var b = (function (_super) { b.prototype.foo = function () { var _super = 10; // Should be error }; + __names(b.prototype, ["foo"]); return b; }(Foo)); var c = (function (_super) { @@ -58,5 +74,6 @@ var c = (function (_super) { var _super = 10; // Should be error }; }; + __names(c.prototype, ["foo"]); return c; }(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndNameResolution.js b/tests/baselines/reference/collisionSuperAndNameResolution.js index c35c30ec84e7e..39fe45fe6ddcc 100644 --- a/tests/baselines/reference/collisionSuperAndNameResolution.js +++ b/tests/baselines/reference/collisionSuperAndNameResolution.js @@ -22,6 +22,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var console; var _super = 10; // No error var base = (function () { @@ -37,5 +51,6 @@ var Foo = (function (_super) { Foo.prototype.x = function () { console.log(_super); // Error as this doesnt not resolve to user defined _super }; + __names(Foo.prototype, ["x"]); return Foo; }(base)); diff --git a/tests/baselines/reference/collisionSuperAndParameter.js b/tests/baselines/reference/collisionSuperAndParameter.js index e2771fadf1fa6..4340022352c18 100644 --- a/tests/baselines/reference/collisionSuperAndParameter.js +++ b/tests/baselines/reference/collisionSuperAndParameter.js @@ -63,6 +63,20 @@ class Foo4 extends Foo { } //// [collisionSuperAndParameter.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -94,6 +108,7 @@ var Foo = (function () { enumerable: true, configurable: true }); + __names(Foo.prototype, ["a", "b"]); return Foo; }()); var Foo2 = (function (_super) { @@ -124,6 +139,7 @@ var Foo2 = (function (_super) { enumerable: true, configurable: true }); + __names(Foo2.prototype, ["x", "y"]); return Foo2; }(Foo)); var Foo4 = (function (_super) { @@ -137,5 +153,6 @@ var Foo4 = (function (_super) { return function (x) { return _this; }; // New scope. So should inject new _this capture }; }; + __names(Foo4.prototype, ["y"]); return Foo4; }(Foo)); diff --git a/tests/baselines/reference/collisionSuperAndParameter1.js b/tests/baselines/reference/collisionSuperAndParameter1.js index 8bc3fc19b5bb0..c36e2f1ddb585 100644 --- a/tests/baselines/reference/collisionSuperAndParameter1.js +++ b/tests/baselines/reference/collisionSuperAndParameter1.js @@ -20,6 +20,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -34,5 +48,6 @@ var Foo2 = (function (_super) { var lambda = function (_super) { }; }; + __names(Foo2.prototype, ["x"]); return Foo2; }(Foo)); diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js index 7c71fd79ade1a..560bb4293e516 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js @@ -19,6 +19,20 @@ class a { } //// [collisionThisExpressionAndLocalVarInMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a = (function () { function a() { } @@ -40,5 +54,6 @@ var a = (function () { }; } }; }; + __names(a.prototype, ["method1", "method2"]); return a; }()); diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js index d0d5059adec07..90eff4333f1e8 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js @@ -19,6 +19,20 @@ class b2 extends a { } //// [collisionThisExpressionAndLocalVarWithSuperExperssion.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -34,6 +48,7 @@ var a = (function () { } a.prototype.foo = function () { }; + __names(a.prototype, ["foo"]); return a; }()); var b = (function (_super) { @@ -46,6 +61,7 @@ var b = (function (_super) { var _this = 10; var f = function () { return _super.prototype.foo.call(_this); }; }; + __names(b.prototype, ["foo"]); return b; }(a)); var b2 = (function (_super) { @@ -60,5 +76,6 @@ var b2 = (function (_super) { return _super.prototype.foo.call(_this); }; }; + __names(b2.prototype, ["foo"]); return b2; }(a)); diff --git a/tests/baselines/reference/collisionThisExpressionAndNameResolution.js b/tests/baselines/reference/collisionThisExpressionAndNameResolution.js index 130f99bcd9079..1ba2a0c4bb425 100644 --- a/tests/baselines/reference/collisionThisExpressionAndNameResolution.js +++ b/tests/baselines/reference/collisionThisExpressionAndNameResolution.js @@ -13,6 +13,20 @@ class Foo { } //// [collisionThisExpressionAndNameResolution.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var console; var Foo = (function () { function Foo() { @@ -25,5 +39,6 @@ var Foo = (function () { return function (x) { return _this; }; // New scope. So should inject new _this capture into function inner } }; + __names(Foo.prototype, ["x"]); return Foo; }()); diff --git a/tests/baselines/reference/collisionThisExpressionAndParameter.js b/tests/baselines/reference/collisionThisExpressionAndParameter.js index bc15e4b56b50a..a5047243da710 100644 --- a/tests/baselines/reference/collisionThisExpressionAndParameter.js +++ b/tests/baselines/reference/collisionThisExpressionAndParameter.js @@ -94,6 +94,20 @@ declare function f4(_this: number); // no code gen - no error declare function f4(_this: string); // no code gen - no error //// [collisionThisExpressionAndParameter.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -129,6 +143,7 @@ var Foo = (function () { var lambda = function () { }; }; + __names(Foo.prototype, ["x", "y", "z", "x1", "y1", "z1"]); return Foo; }()); var Foo1 = (function () { @@ -161,6 +176,7 @@ var Foo3 = (function () { return function (x) { return _this; }; // New scope. So should inject new _this capture }; }; + __names(Foo3.prototype, ["z"]); return Foo3; }()); function f3(_this) { diff --git a/tests/baselines/reference/commentOnClassMethod1.js b/tests/baselines/reference/commentOnClassMethod1.js index 4b909da55a44c..ff958b769826b 100644 --- a/tests/baselines/reference/commentOnClassMethod1.js +++ b/tests/baselines/reference/commentOnClassMethod1.js @@ -8,6 +8,20 @@ class WebControls { } //// [commentOnClassMethod1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var WebControls = (function () { function WebControls() { } @@ -16,5 +30,6 @@ var WebControls = (function () { */ WebControls.prototype.createControl = function () { }; + __names(WebControls.prototype, ["createControl"]); return WebControls; }()); diff --git a/tests/baselines/reference/commentOnSignature1.js b/tests/baselines/reference/commentOnSignature1.js index 38437d6fd1312..e281f8f660383 100644 --- a/tests/baselines/reference/commentOnSignature1.js +++ b/tests/baselines/reference/commentOnSignature1.js @@ -42,6 +42,20 @@ function foo2(a: any): void { Keep this pinned ================= */ +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(a) { } var c = (function () { @@ -49,6 +63,7 @@ var c = (function () { } c.prototype.foo = function (a) { }; + __names(c.prototype, ["foo"]); return c; }()); //// [b.js] diff --git a/tests/baselines/reference/commentsClassMembers.js b/tests/baselines/reference/commentsClassMembers.js index 9953e77ab7ec9..43f5758b96cc2 100644 --- a/tests/baselines/reference/commentsClassMembers.js +++ b/tests/baselines/reference/commentsClassMembers.js @@ -218,6 +218,20 @@ cProperties_i.nc_p2 = cProperties_i.nc_p1; //// [commentsClassMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /** This is comment for c1*/ var c1 = (function () { /** Constructor method*/ @@ -411,6 +425,7 @@ var c1 = (function () { enumerable: true, configurable: true }); + __names(c1.prototype, ["p2", "pp2", "nc_p2", "nc_pp2", "a_p2", "a_pp2", "b_p2", "b_pp2"]); return c1; }()); var i1 = new c1(); diff --git a/tests/baselines/reference/commentsInheritance.js b/tests/baselines/reference/commentsInheritance.js index e33a4244c037d..b088a6b08fdc4 100644 --- a/tests/baselines/reference/commentsInheritance.js +++ b/tests/baselines/reference/commentsInheritance.js @@ -151,6 +151,20 @@ i2_i = i3_i; //// [commentsInheritance.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -175,6 +189,7 @@ var c1 = (function () { /** c1_nc_f1*/ c1.prototype.nc_f1 = function () { }; + __names(c1.prototype, ["i1_f1", "i1_nc_f1", "f1", "nc_f1"]); return c1; }()); var i1_i; @@ -226,6 +241,7 @@ var c2 = (function () { enumerable: true, configurable: true }); + __names(c2.prototype, ["c2_f1", "c2_nc_f1", "f1", "nc_f1"]); return c2; }()); var c3 = (function (_super) { @@ -253,6 +269,7 @@ var c3 = (function (_super) { enumerable: true, configurable: true }); + __names(c3.prototype, ["f1", "nc_f1"]); return c3; }(c2)); var c2_i = new c2(10); diff --git a/tests/baselines/reference/commentsOverloads.js b/tests/baselines/reference/commentsOverloads.js index e711a9585ce28..c4a72f0cbfd97 100644 --- a/tests/baselines/reference/commentsOverloads.js +++ b/tests/baselines/reference/commentsOverloads.js @@ -175,6 +175,20 @@ var c5_i_2 = new c5("hello"); //// [commentsOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f1(aOrb) { return 10; } @@ -218,6 +232,7 @@ var c = (function () { c.prototype.prop5 = function (aorb) { return 10; }; + __names(c.prototype, ["prop1", "prop2", "prop3", "prop4", "prop5"]); return c; }()); var c1 = (function () { diff --git a/tests/baselines/reference/commentsTypeParameters.js b/tests/baselines/reference/commentsTypeParameters.js index 003cafe70adfb..c77583e3787bc 100644 --- a/tests/baselines/reference/commentsTypeParameters.js +++ b/tests/baselines/reference/commentsTypeParameters.js @@ -16,6 +16,20 @@ function compare(a: T, b: T) { } //// [commentsTypeParameters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -27,6 +41,7 @@ var C = (function () { }; C.privatestaticmethod = function (a) { }; + __names(C.prototype, ["method", "privatemethod"]); return C; }()); function compare(a, b) { diff --git a/tests/baselines/reference/commentsdoNotEmitComments.js b/tests/baselines/reference/commentsdoNotEmitComments.js index d4d57a7c35f84..ead5b5bc925f8 100644 --- a/tests/baselines/reference/commentsdoNotEmitComments.js +++ b/tests/baselines/reference/commentsdoNotEmitComments.js @@ -93,6 +93,20 @@ var shade: color = color.green; //// [commentsdoNotEmitComments.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var myVariable = 10; function foo(p) { } @@ -119,6 +133,7 @@ var c = (function () { c.prototype.foo1 = function (aOrb) { return aOrb.toString(); }; + __names(c.prototype, ["myFoo", "foo1"]); return c; }()); var i = new c(); diff --git a/tests/baselines/reference/commentsemitComments.js b/tests/baselines/reference/commentsemitComments.js index 6e0497fcf7fac..850ed9c226bac 100644 --- a/tests/baselines/reference/commentsemitComments.js +++ b/tests/baselines/reference/commentsemitComments.js @@ -88,6 +88,20 @@ declare var x; //// [commentsemitComments.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /** Variable comments*/ var myVariable = 10; /** function comments*/ @@ -124,6 +138,7 @@ var c = (function () { c.prototype.foo1 = function (aOrb) { return aOrb.toString(); }; + __names(c.prototype, ["myFoo", "foo1"]); return c; }()); /**instance comment*/ diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js index f017fe974bc89..a02c8278ed2a9 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js @@ -195,6 +195,20 @@ var r8b6 = b5 !== a5; var r8b7 = b6 !== a6; //// [comparisonOperatorWithIdenticalObjects.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -211,6 +225,7 @@ var A1 = (function () { A1.prototype.fn = function (a) { return null; }; + __names(A1.prototype, ["fn"]); return A1; }()); var B1 = (function () { @@ -219,6 +234,7 @@ var B1 = (function () { B1.prototype.fn = function (b) { return null; }; + __names(B1.prototype, ["fn"]); return B1; }()); var Base = (function () { @@ -227,6 +243,7 @@ var Base = (function () { Base.prototype.fn = function (b) { return null; }; + __names(Base.prototype, ["fn"]); return Base; }()); var A2 = (function (_super) { diff --git a/tests/baselines/reference/complexClassRelationships.js b/tests/baselines/reference/complexClassRelationships.js index 2bc345bd49980..8732e7863060a 100644 --- a/tests/baselines/reference/complexClassRelationships.js +++ b/tests/baselines/reference/complexClassRelationships.js @@ -58,6 +58,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // There should be no errors in this file var Derived = (function (_super) { __extends(Derived, _super); @@ -119,6 +133,7 @@ var Foo = (function () { enumerable: true, configurable: true }); + __names(Foo.prototype, ["populate"]); return Foo; }()); var GenericType = (function () { @@ -131,5 +146,6 @@ var FooBase = (function () { } FooBase.prototype.populate = function () { }; + __names(FooBase.prototype, ["populate"]); return FooBase; }()); diff --git a/tests/baselines/reference/complexNarrowingWithAny.js b/tests/baselines/reference/complexNarrowingWithAny.js index 4531cde9f3ed3..bac4d0363e2b3 100644 --- a/tests/baselines/reference/complexNarrowingWithAny.js +++ b/tests/baselines/reference/complexNarrowingWithAny.js @@ -562,6 +562,20 @@ export function viewFactory_AppComponent0(viewUtils:any,parentInjector:any,decla //// [complexNarrowingWithAny.js] "use strict"; // Repro from #10869 +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; /** * This file is generated by the Angular 2 template compiler. @@ -1020,6 +1034,7 @@ var _View_AppComponent0 = (function () { } return notFoundResult; }; + __names(_View_AppComponent0.prototype, ["injectorGetInternal"]); return _View_AppComponent0; }()); function viewFactory_AppComponent0(viewUtils, parentInjector, declarationEl) { diff --git a/tests/baselines/reference/complicatedPrivacy.js b/tests/baselines/reference/complicatedPrivacy.js index ffb328f2e94c3..9a36ad1589605 100644 --- a/tests/baselines/reference/complicatedPrivacy.js +++ b/tests/baselines/reference/complicatedPrivacy.js @@ -105,6 +105,20 @@ module mglo5 { //// [complicatedPrivacy.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m1; (function (m1) { var m2; @@ -130,6 +144,7 @@ var m1; C2.prototype.f55 = function () { return "Hello world"; }; + __names(C2.prototype, ["f55"]); return C2; }()); m2.C2 = C2; @@ -179,6 +194,7 @@ var m2; c_pr.prototype.f1 = function () { return "Hello"; }; + __names(c_pr.prototype, ["f1"]); return c_pr; }()); m3.c_pr = c_pr; diff --git a/tests/baselines/reference/compoundAssignmentLHSIsValue.js b/tests/baselines/reference/compoundAssignmentLHSIsValue.js index f5a0fc75da5cf..5623081a1358b 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundAssignmentLHSIsValue.js @@ -123,6 +123,20 @@ foo() += value; (foo()) += value; //// [compoundAssignmentLHSIsValue.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -149,6 +163,7 @@ var C = (function () { this *= value; this += value; }; + __names(C.prototype, ["foo"]); return C; }()); function foo() { @@ -214,6 +229,7 @@ var Derived = (function (_super) { _super. *= value; _super. += value; }; + __names(Derived.prototype, ["foo"]); return Derived; }(C)); // function expression diff --git a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js index bd152ea11ad75..ca2459a23e727 100644 --- a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js @@ -86,6 +86,20 @@ foo() **= value; (foo()) **= value; //// [compoundExponentiationAssignmentLHSIsValue.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -109,6 +123,7 @@ var C = (function () { C.sfoo = function () { this = Math.pow(this, value); }; + __names(C.prototype, ["foo"]); return C; }()); function foo() { @@ -157,6 +172,7 @@ var Derived = (function (_super) { (_a = _super). = Math.pow(_a., value); var _a; }; + __names(Derived.prototype, ["foo"]); return Derived; }(C)); // function expression diff --git a/tests/baselines/reference/computedPropertyNames10_ES5.js b/tests/baselines/reference/computedPropertyNames10_ES5.js index 302f9355be850..af70c23380470 100644 --- a/tests/baselines/reference/computedPropertyNames10_ES5.js +++ b/tests/baselines/reference/computedPropertyNames10_ES5.js @@ -17,20 +17,34 @@ var v = { } //// [computedPropertyNames10_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var s; var n; var a; var v = (_a = {}, - _a[s] = function () { }, - _a[n] = function () { }, - _a[s + s] = function () { }, - _a[s + n] = function () { }, - _a[+s] = function () { }, - _a[""] = function () { }, - _a[0] = function () { }, - _a[a] = function () { }, - _a[true] = function () { }, - _a["hello bye"] = function () { }, - _a["hello " + a + " bye"] = function () { }, + _a[_b = s] = function () { }, + _a[_c = n] = function () { }, + _a[_d = s + s] = function () { }, + _a[_e = s + n] = function () { }, + _a[_f = +s] = function () { }, + _a[_g = ""] = function () { }, + _a[_h = 0] = function () { }, + _a[_j = a] = function () { }, + _a[_k = true] = function () { }, + _a[_l = "hello bye"] = function () { }, + _a[_m = "hello " + a + " bye"] = function () { }, __names(_a, [_b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m]), _a); -var _a; +var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; diff --git a/tests/baselines/reference/computedPropertyNames13_ES5.js b/tests/baselines/reference/computedPropertyNames13_ES5.js index 0b713c5c8d78c..a3a1e6cc7790d 100644 --- a/tests/baselines/reference/computedPropertyNames13_ES5.js +++ b/tests/baselines/reference/computedPropertyNames13_ES5.js @@ -17,22 +17,38 @@ class C { } //// [computedPropertyNames13_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var s; var n; var a; var C = (function () { function C() { } - C.prototype[s] = function () { }; - C.prototype[n] = function () { }; + C.prototype[_a = s] = function () { }; + C.prototype[_b = n] = function () { }; C[s + s] = function () { }; - C.prototype[s + n] = function () { }; - C.prototype[+s] = function () { }; + C.prototype[_c = s + n] = function () { }; + C.prototype[_d = +s] = function () { }; C[""] = function () { }; - C.prototype[0] = function () { }; - C.prototype[a] = function () { }; + C.prototype[_e = 0] = function () { }; + C.prototype[_f = a] = function () { }; C[true] = function () { }; - C.prototype["hello bye"] = function () { }; + C.prototype[_g = "hello bye"] = function () { }; C["hello " + a + " bye"] = function () { }; + __names(C.prototype, [_a, _b, _c, _d, _e, _f, _g]); return C; + var _a, _b, _c, _d, _e, _f, _g; }()); diff --git a/tests/baselines/reference/computedPropertyNames14_ES5.js b/tests/baselines/reference/computedPropertyNames14_ES5.js index e08ae0fd640de..cb460e507a3df 100644 --- a/tests/baselines/reference/computedPropertyNames14_ES5.js +++ b/tests/baselines/reference/computedPropertyNames14_ES5.js @@ -10,15 +10,31 @@ class C { } //// [computedPropertyNames14_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var b; var C = (function () { function C() { } - C.prototype[b] = function () { }; + C.prototype[_a = b] = function () { }; C[true] = function () { }; - C.prototype[[]] = function () { }; + C.prototype[_b = []] = function () { }; C[{}] = function () { }; - C.prototype[undefined] = function () { }; + C.prototype[_c = undefined] = function () { }; C[null] = function () { }; + __names(C.prototype, [_a, _b, _c]); return C; + var _a, _b, _c; }()); diff --git a/tests/baselines/reference/computedPropertyNames15_ES5.js b/tests/baselines/reference/computedPropertyNames15_ES5.js index 91ec9332be8cc..f6cdaf4abce01 100644 --- a/tests/baselines/reference/computedPropertyNames15_ES5.js +++ b/tests/baselines/reference/computedPropertyNames15_ES5.js @@ -9,14 +9,30 @@ class C { } //// [computedPropertyNames15_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var p1; var p2; var p3; var C = (function () { function C() { } - C.prototype[p1] = function () { }; - C.prototype[p2] = function () { }; - C.prototype[p3] = function () { }; + C.prototype[_a = p1] = function () { }; + C.prototype[_b = p2] = function () { }; + C.prototype[_c = p3] = function () { }; + __names(C.prototype, [_a, _b, _c]); return C; + var _a, _b, _c; }()); diff --git a/tests/baselines/reference/computedPropertyNames21_ES5.js b/tests/baselines/reference/computedPropertyNames21_ES5.js index 655de136c349c..366b06bf9ce66 100644 --- a/tests/baselines/reference/computedPropertyNames21_ES5.js +++ b/tests/baselines/reference/computedPropertyNames21_ES5.js @@ -7,12 +7,28 @@ class C { } //// [computedPropertyNames21_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function () { return 0; }; - C.prototype[this.bar()] = function () { }; + C.prototype[_a = this.bar()] = function () { }; + __names(C.prototype, ["bar", _a]); return C; + var _a; }()); diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.js b/tests/baselines/reference/computedPropertyNames22_ES5.js index 721418ee930d4..fbfaf84111e3d 100644 --- a/tests/baselines/reference/computedPropertyNames22_ES5.js +++ b/tests/baselines/reference/computedPropertyNames22_ES5.js @@ -9,15 +9,30 @@ class C { } //// [computedPropertyNames22_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function () { var obj = (_a = {}, - _a[this.bar()] = function () { }, + _a[_b = this.bar()] = function () { }, __names(_a, [_b]), _a); return 0; - var _a; + var _a, _b; }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.js b/tests/baselines/reference/computedPropertyNames23_ES5.js index 666807f9f8ef6..f640239062130 100644 --- a/tests/baselines/reference/computedPropertyNames23_ES5.js +++ b/tests/baselines/reference/computedPropertyNames23_ES5.js @@ -9,13 +9,28 @@ class C { } //// [computedPropertyNames23_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function () { return 0; }; - C.prototype[(_a = {}, _a[this.bar()] = 1, _a)[0]] = function () { }; + C.prototype[_a = (_b = {}, _b[this.bar()] = 1, _b)[0]] = function () { }; + __names(C.prototype, ["bar", _a]); return C; - var _a; + var _b, _a; }()); diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.js b/tests/baselines/reference/computedPropertyNames24_ES5.js index dd229bdcae2ce..af40d6584858c 100644 --- a/tests/baselines/reference/computedPropertyNames24_ES5.js +++ b/tests/baselines/reference/computedPropertyNames24_ES5.js @@ -9,6 +9,20 @@ class C extends Base { } //// [computedPropertyNames24_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -25,6 +39,7 @@ var Base = (function () { Base.prototype.bar = function () { return 0; }; + __names(Base.prototype, ["bar"]); return Base; }()); var C = (function (_super) { @@ -32,6 +47,8 @@ var C = (function (_super) { function C() { return _super !== null && _super.apply(this, arguments) || this; } - C.prototype[_super.bar.call(this)] = function () { }; + C.prototype[_a = _super.bar.call(this)] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }(Base)); diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5.js index 18ee07301e717..7dd0db2b6bb0e 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES5.js +++ b/tests/baselines/reference/computedPropertyNames25_ES5.js @@ -14,6 +14,20 @@ class C extends Base { } //// [computedPropertyNames25_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -30,6 +44,7 @@ var Base = (function () { Base.prototype.bar = function () { return 0; }; + __names(Base.prototype, ["bar"]); return Base; }()); var C = (function (_super) { @@ -39,10 +54,11 @@ var C = (function (_super) { } C.prototype.foo = function () { var obj = (_a = {}, - _a[_super.prototype.bar.call(this)] = function () { }, + _a[_b = _super.prototype.bar.call(this)] = function () { }, __names(_a, [_b]), _a); return 0; - var _a; + var _a, _b; }; + __names(C.prototype, ["foo"]); return C; }(Base)); diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5.js index 78a7ef3af776b..7fe8eea00c281 100644 --- a/tests/baselines/reference/computedPropertyNames26_ES5.js +++ b/tests/baselines/reference/computedPropertyNames26_ES5.js @@ -11,6 +11,20 @@ class C extends Base { } //// [computedPropertyNames26_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -27,6 +41,7 @@ var Base = (function () { Base.prototype.bar = function () { return 0; }; + __names(Base.prototype, ["bar"]); return Base; }()); var C = (function (_super) { @@ -34,7 +49,8 @@ var C = (function (_super) { function C() { return _super !== null && _super.apply(this, arguments) || this; } - C.prototype[(_a = {}, _a[_super.bar.call(this)] = 1, _a)[0]] = function () { }; + C.prototype[_a = (_b = {}, _b[_super.bar.call(this)] = 1, _b)[0]] = function () { }; + __names(C.prototype, [_a]); return C; - var _a; + var _b, _a; }(Base)); diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.js b/tests/baselines/reference/computedPropertyNames27_ES5.js index 9af56a8835b1d..6c68f6ee19bdd 100644 --- a/tests/baselines/reference/computedPropertyNames27_ES5.js +++ b/tests/baselines/reference/computedPropertyNames27_ES5.js @@ -16,6 +16,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -26,6 +40,8 @@ var C = (function (_super) { function C() { return _super !== null && _super.apply(this, arguments) || this; } - C.prototype[(_this = _super.call(this) || this, "prop")] = function () { }; + C.prototype[_a = (_this = _super.call(this) || this, "prop")] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }(Base)); diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5.js index c6e2c5d77320f..a801e9b536b86 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES5.js +++ b/tests/baselines/reference/computedPropertyNames28_ES5.js @@ -21,6 +21,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -31,10 +45,10 @@ var C = (function (_super) { function C() { var _this = _super.call(this) || this; var obj = (_a = {}, - _a[(_this = _super.call(this) || this, "prop")] = function () { }, + _a[_b = (_this = _super.call(this) || this, "prop")] = function () { }, __names(_a, [_b]), _a); return _this; - var _a; + var _a, _b; } return C; }(Base)); diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.js b/tests/baselines/reference/computedPropertyNames29_ES5.js index 966081ae03501..3bd4238d16673 100644 --- a/tests/baselines/reference/computedPropertyNames29_ES5.js +++ b/tests/baselines/reference/computedPropertyNames29_ES5.js @@ -11,6 +11,20 @@ class C { } //// [computedPropertyNames29_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -18,12 +32,13 @@ var C = (function () { var _this = this; (function () { var obj = (_a = {}, - _a[_this.bar()] = function () { } // needs capture - , + _a[_b = _this.bar()] = function () { } // needs capture + , __names(_a, [_b]), _a); - var _a; + var _a, _b; }); return 0; }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/computedPropertyNames2_ES5.js b/tests/baselines/reference/computedPropertyNames2_ES5.js index 9211fccb530fd..4744a6c5175bc 100644 --- a/tests/baselines/reference/computedPropertyNames2_ES5.js +++ b/tests/baselines/reference/computedPropertyNames2_ES5.js @@ -11,12 +11,26 @@ class C { } //// [computedPropertyNames2_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var methodName = "method"; var accessorName = "accessor"; var C = (function () { function C() { } - C.prototype[methodName] = function () { }; + C.prototype[_a = methodName] = function () { }; C[methodName] = function () { }; Object.defineProperty(C.prototype, accessorName, { get: function () { }, @@ -38,5 +52,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, [_a]); return C; + var _a; }()); diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5.js index f029b9b865132..24741b44de518 100644 --- a/tests/baselines/reference/computedPropertyNames30_ES5.js +++ b/tests/baselines/reference/computedPropertyNames30_ES5.js @@ -26,6 +26,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -40,9 +54,9 @@ var C = (function (_super) { // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. - _a[(_this = _super.call(this) || this, "prop")] = function () { }, + _a[_b = (_this = _super.call(this) || this, "prop")] = function () { }, __names(_a, [_b]), _a); - var _a; + var _a, _b; }); return _this; } diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5.js index 95caabc4bda0a..2b0af1b947122 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES5.js +++ b/tests/baselines/reference/computedPropertyNames31_ES5.js @@ -16,6 +16,20 @@ class C extends Base { } //// [computedPropertyNames31_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -32,6 +46,7 @@ var Base = (function () { Base.prototype.bar = function () { return 0; }; + __names(Base.prototype, ["bar"]); return Base; }()); var C = (function (_super) { @@ -43,12 +58,13 @@ var C = (function (_super) { var _this = this; (function () { var obj = (_a = {}, - _a[_super.prototype.bar.call(_this)] = function () { } // needs capture - , + _a[_b = _super.prototype.bar.call(_this)] = function () { } // needs capture + , __names(_a, [_b]), _a); - var _a; + var _a, _b; }); return 0; }; + __names(C.prototype, ["foo"]); return C; }(Base)); diff --git a/tests/baselines/reference/computedPropertyNames32_ES5.js b/tests/baselines/reference/computedPropertyNames32_ES5.js index 1ae07d37e4237..2f109349d50a5 100644 --- a/tests/baselines/reference/computedPropertyNames32_ES5.js +++ b/tests/baselines/reference/computedPropertyNames32_ES5.js @@ -8,6 +8,20 @@ class C { } //// [computedPropertyNames32_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { return ''; } var C = (function () { function C() { @@ -15,6 +29,8 @@ var C = (function () { C.prototype.bar = function () { return 0; }; - C.prototype[foo()] = function () { }; + C.prototype[_a = foo()] = function () { }; + __names(C.prototype, ["bar", _a]); return C; + var _a; }()); diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.js b/tests/baselines/reference/computedPropertyNames33_ES5.js index e6d46b03c100e..9babd055223a1 100644 --- a/tests/baselines/reference/computedPropertyNames33_ES5.js +++ b/tests/baselines/reference/computedPropertyNames33_ES5.js @@ -10,16 +10,31 @@ class C { } //// [computedPropertyNames33_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { return ''; } var C = (function () { function C() { } C.prototype.bar = function () { var obj = (_a = {}, - _a[foo()] = function () { }, + _a[_b = foo()] = function () { }, __names(_a, [_b]), _a); return 0; - var _a; + var _a, _b; }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.js b/tests/baselines/reference/computedPropertyNames34_ES5.js index 3109c400422d0..0caee13fdde61 100644 --- a/tests/baselines/reference/computedPropertyNames34_ES5.js +++ b/tests/baselines/reference/computedPropertyNames34_ES5.js @@ -10,16 +10,30 @@ class C { } //// [computedPropertyNames34_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { return ''; } var C = (function () { function C() { } C.bar = function () { var obj = (_a = {}, - _a[foo()] = function () { }, + _a[_b = foo()] = function () { }, __names(_a, [_b]), _a); return 0; - var _a; + var _a, _b; }; return C; }()); diff --git a/tests/baselines/reference/computedPropertyNames3_ES5.js b/tests/baselines/reference/computedPropertyNames3_ES5.js index 94821a6597401..ae85b07a974e6 100644 --- a/tests/baselines/reference/computedPropertyNames3_ES5.js +++ b/tests/baselines/reference/computedPropertyNames3_ES5.js @@ -10,11 +10,25 @@ class C { } //// [computedPropertyNames3_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var id; var C = (function () { function C() { } - C.prototype[0 + 1] = function () { }; + C.prototype[_a = 0 + 1] = function () { }; C[function () { }] = function () { }; Object.defineProperty(C.prototype, delete id, { get: function () { }, @@ -36,5 +50,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, [_a]); return C; + var _a; }()); diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.js b/tests/baselines/reference/computedPropertyNames40_ES5.js index a291349d0cff9..1c08223b610a2 100644 --- a/tests/baselines/reference/computedPropertyNames40_ES5.js +++ b/tests/baselines/reference/computedPropertyNames40_ES5.js @@ -11,6 +11,20 @@ class C { } //// [computedPropertyNames40_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -25,7 +39,9 @@ var C = (function () { function C() { } // Computed properties - C.prototype[""] = function () { return new Foo; }; - C.prototype[""] = function () { return new Foo2; }; + C.prototype[_a = ""] = function () { return new Foo; }; + C.prototype[_b = ""] = function () { return new Foo2; }; + __names(C.prototype, [_a, _b]); return C; + var _a, _b; }()); diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js index 1ee8835115415..0059503531577 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js @@ -10,8 +10,22 @@ var o: I = { } //// [computedPropertyNamesContextualType1_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var o = (_a = {}, - _a["" + 0] = function (y) { return y.length; }, - _a["" + 1] = function (y) { return y.length; }, + _a[_b = "" + 0] = function (y) { return y.length; }, + _a["" + 1] = function (y) { return y.length; }, __names(_a, [_b]), _a); -var _a; +var _a, _b; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js index 6be09e4bef3f3..b1d59f8f30b4a 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js @@ -10,8 +10,22 @@ var o: I = { } //// [computedPropertyNamesContextualType2_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var o = (_a = {}, - _a[+"foo"] = function (y) { return y.length; }, - _a[+"bar"] = function (y) { return y.length; }, + _a[_b = +"foo"] = function (y) { return y.length; }, + _a[+"bar"] = function (y) { return y.length; }, __names(_a, [_b]), _a); -var _a; +var _a, _b; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js index b510cda2916f4..b2e2d969e993e 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js @@ -9,8 +9,22 @@ var o: I = { } //// [computedPropertyNamesContextualType3_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var o = (_a = {}, - _a[+"foo"] = function (y) { return y.length; }, - _a[+"bar"] = function (y) { return y.length; }, + _a[_b = +"foo"] = function (y) { return y.length; }, + _a[+"bar"] = function (y) { return y.length; }, __names(_a, [_b]), _a); -var _a; +var _a, _b; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js index 7becf285b2a28..af44f1aa05bcf 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js @@ -6,10 +6,24 @@ class C { } //// [computedPropertyNamesDeclarationEmit1_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } - C.prototype["" + ""] = function () { }; + C.prototype[_a = "" + ""] = function () { }; Object.defineProperty(C.prototype, "" + "", { get: function () { return 0; }, enumerable: true, @@ -20,7 +34,9 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, [_a]); return C; + var _a; }()); diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js index bf589768b727a..c41f85fad4f45 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js @@ -7,9 +7,23 @@ var v = { } //// [computedPropertyNamesDeclarationEmit5_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var v = (_a = {}, _a["" + ""] = 0, - _a["" + ""] = function () { }, + _a[_b = "" + ""] = function () { }, Object.defineProperty(_a, "" + "", { get: function () { return 0; }, enumerable: true, @@ -19,9 +33,9 @@ var v = (_a = {}, set: function (x) { }, enumerable: true, configurable: true - }), + }), __names(_a, [_b]), _a); -var _a; +var _a, _b; //// [computedPropertyNamesDeclarationEmit5_ES5.d.ts] diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js index 5562e1ea73c43..fdfba4a8e701b 100644 --- a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js @@ -8,11 +8,27 @@ class C { } //// [computedPropertyNamesOnOverloads_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var methodName = "method"; var accessorName = "accessor"; var C = (function () { function C() { } - C.prototype[methodName] = function (v) { }; + C.prototype[_a = methodName] = function (v) { }; + __names(C.prototype, [_a]); return C; + var _a; }()); diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js index b03f4d3696eb4..d5b036de58465 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js @@ -9,10 +9,24 @@ class C { } //// [computedPropertyNamesSourceMap1_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } - C.prototype["hello"] = function () { + C.prototype[_a = "hello"] = function () { debugger; }; Object.defineProperty(C.prototype, "goodbye", { @@ -22,6 +36,8 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, [_a]); return C; + var _a; }()); //# sourceMappingURL=computedPropertyNamesSourceMap1_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map index 114df45af46ff..4cf17a73112d8 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js.map @@ -1,2 +1,2 @@ //// [computedPropertyNamesSourceMap1_ES5.js.map] -{"version":3,"file":"computedPropertyNamesSourceMap1_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap1_ES5.ts"],"names":[],"mappings":"AAAA;IAAA;IAOA,CAAC;IANG,YAAC,OAAO,CAAC,GAAT;QACI,QAAQ,CAAC;IACb,CAAC;IACD,sBAAI,sBAAW;aAAf;YACF,MAAM,CAAC,CAAC,CAAC;QACP,CAAC;;;OAAA;IACL,QAAC;AAAD,CAAC,AAPD,IAOC"} \ No newline at end of file +{"version":3,"file":"computedPropertyNamesSourceMap1_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap1_ES5.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;IAAA;IAOA,CAAC;IANG,iBAAC,OAAO,CAAC,GAAT;QACI,QAAQ,CAAC;IACb,CAAC;IACD,sBAAI,sBAAW;aAAf;YACF,MAAM,CAAC,CAAC,CAAC;QACP,CAAC;;;OAAA;;IACL,QAAC;;AAAD,CAAC,AAPD,IAOC"} \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt index fc571a3140ebd..219efededfb2f 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt @@ -8,22 +8,36 @@ sources: computedPropertyNamesSourceMap1_ES5.ts emittedFile:tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap1_ES5.js sourceFile:computedPropertyNamesSourceMap1_ES5.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var C = (function () { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(2, 5) Source(1, 1) + SourceIndex(0) +1->Emitted(16, 5) Source(1, 1) + SourceIndex(0) --- >>> } 1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->class C { > ["hello"]() { > debugger; @@ -33,25 +47,25 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts > } > 2 > } -1->Emitted(3, 5) Source(8, 1) + SourceIndex(0) -2 >Emitted(3, 6) Source(8, 2) + SourceIndex(0) +1->Emitted(17, 5) Source(8, 1) + SourceIndex(0) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(0) --- ->>> C.prototype["hello"] = function () { +>>> C.prototype[_a = "hello"] = function () { 1->^^^^ -2 > ^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^ +2 > ^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^ 1-> 2 > [ -3 > "hello" -4 > ] -5 > -1->Emitted(4, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(4, 17) Source(2, 6) + SourceIndex(0) -3 >Emitted(4, 24) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 25) Source(2, 14) + SourceIndex(0) -5 >Emitted(4, 28) Source(2, 5) + SourceIndex(0) +3 > "hello" +4 > ] +5 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(18, 22) Source(2, 6) + SourceIndex(0) +3 >Emitted(18, 29) Source(2, 13) + SourceIndex(0) +4 >Emitted(18, 30) Source(2, 14) + SourceIndex(0) +5 >Emitted(18, 33) Source(2, 5) + SourceIndex(0) --- >>> debugger; 1 >^^^^^^^^ @@ -61,9 +75,9 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts > 2 > debugger 3 > ; -1 >Emitted(5, 9) Source(3, 9) + SourceIndex(0) -2 >Emitted(5, 17) Source(3, 17) + SourceIndex(0) -3 >Emitted(5, 18) Source(3, 18) + SourceIndex(0) +1 >Emitted(19, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(19, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(19, 18) Source(3, 18) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -72,8 +86,8 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts 1 > > 2 > } -1 >Emitted(6, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(4, 6) + SourceIndex(0) +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(0) --- >>> Object.defineProperty(C.prototype, "goodbye", { 1->^^^^ @@ -83,15 +97,15 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts > 2 > get 3 > ["goodbye"] -1->Emitted(7, 5) Source(5, 5) + SourceIndex(0) -2 >Emitted(7, 27) Source(5, 9) + SourceIndex(0) -3 >Emitted(7, 49) Source(5, 20) + SourceIndex(0) +1->Emitted(21, 5) Source(5, 5) + SourceIndex(0) +2 >Emitted(21, 27) Source(5, 9) + SourceIndex(0) +3 >Emitted(21, 49) Source(5, 20) + SourceIndex(0) --- >>> get: function () { 1 >^^^^^^^^^^^^^ 2 > ^^^^^^^^^-> 1 > -1 >Emitted(8, 14) Source(5, 5) + SourceIndex(0) +1 >Emitted(22, 14) Source(5, 5) + SourceIndex(0) --- >>> return 0; 1->^^^^^^^^^^^^ @@ -105,11 +119,11 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts 3 > 4 > 0 5 > ; -1->Emitted(9, 13) Source(6, 3) + SourceIndex(0) -2 >Emitted(9, 19) Source(6, 9) + SourceIndex(0) -3 >Emitted(9, 20) Source(6, 10) + SourceIndex(0) -4 >Emitted(9, 21) Source(6, 11) + SourceIndex(0) -5 >Emitted(9, 22) Source(6, 12) + SourceIndex(0) +1->Emitted(23, 13) Source(6, 3) + SourceIndex(0) +2 >Emitted(23, 19) Source(6, 9) + SourceIndex(0) +3 >Emitted(23, 20) Source(6, 10) + SourceIndex(0) +4 >Emitted(23, 21) Source(6, 11) + SourceIndex(0) +5 >Emitted(23, 22) Source(6, 12) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -118,26 +132,28 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts 1 > > 2 > } -1 >Emitted(10, 9) Source(7, 5) + SourceIndex(0) -2 >Emitted(10, 10) Source(7, 6) + SourceIndex(0) +1 >Emitted(24, 9) Source(7, 5) + SourceIndex(0) +2 >Emitted(24, 10) Source(7, 6) + SourceIndex(0) --- >>> enumerable: true, >>> configurable: true >>> }); 1->^^^^^^^ -2 > ^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(13, 8) Source(7, 6) + SourceIndex(0) +1->Emitted(27, 8) Source(7, 6) + SourceIndex(0) --- +>>> __names(C.prototype, [_a]); >>> return C; 1->^^^^ 2 > ^^^^^^^^ 1-> > 2 > } -1->Emitted(14, 5) Source(8, 1) + SourceIndex(0) -2 >Emitted(14, 13) Source(8, 2) + SourceIndex(0) +1->Emitted(29, 5) Source(8, 1) + SourceIndex(0) +2 >Emitted(29, 13) Source(8, 2) + SourceIndex(0) --- +>>> var _a; >>>}()); 1 > 2 >^ @@ -155,9 +171,9 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts > return 0; > } > } -1 >Emitted(15, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(15, 2) Source(8, 2) + SourceIndex(0) -3 >Emitted(15, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(15, 6) Source(8, 2) + SourceIndex(0) +1 >Emitted(31, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(31, 2) Source(8, 2) + SourceIndex(0) +3 >Emitted(31, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(31, 6) Source(8, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=computedPropertyNamesSourceMap1_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js index d214a1ef99dda..152418521d9ae 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js @@ -9,8 +9,22 @@ var v = { } //// [computedPropertyNamesSourceMap2_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var v = (_a = {}, - _a["hello"] = function () { + _a[_b = "hello"] = function () { debugger; }, Object.defineProperty(_a, "goodbye", { @@ -19,7 +33,7 @@ var v = (_a = {}, }, enumerable: true, configurable: true - }), + }), __names(_a, [_b]), _a); -var _a; +var _a, _b; //# sourceMappingURL=computedPropertyNamesSourceMap2_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map index 36259a4c7cb26..dd71afa6acd0e 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js.map @@ -1,2 +1,2 @@ //// [computedPropertyNamesSourceMap2_ES5.js.map] -{"version":3,"file":"computedPropertyNamesSourceMap2_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES5.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC;IACD,GAAC,OAAO,IAAR;QACI,QAAQ,CAAC;IAChB,CAAC;0BACM,aAAW;aAAf;YACF,MAAM,CAAC,CAAC,CAAC;QACV,CAAC;;;;OACD,CAAA"} \ No newline at end of file +{"version":3,"file":"computedPropertyNamesSourceMap2_ES5.js","sourceRoot":"","sources":["computedPropertyNamesSourceMap2_ES5.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAI,CAAC;IACD,QAAC,OAAO,IAAR;QACI,QAAQ,CAAC;IAChB,CAAC;0BACM,aAAW;aAAf;YACF,MAAM,CAAC,CAAC,CAAC;QACV,CAAC;;;;OACD,CAAA"} \ No newline at end of file diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt index aa20d1d7960ff..2c5eb32d0b181 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt @@ -8,32 +8,46 @@ sources: computedPropertyNamesSourceMap2_ES5.ts emittedFile:tests/cases/conformance/es6/computedProperties/computedPropertyNamesSourceMap2_ES5.js sourceFile:computedPropertyNamesSourceMap2_ES5.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var v = (_a = {}, 1 > 2 >^^^^ 3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >var 3 > v -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 5) + SourceIndex(0) -3 >Emitted(1, 6) Source(1, 6) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(15, 5) Source(1, 5) + SourceIndex(0) +3 >Emitted(15, 6) Source(1, 6) + SourceIndex(0) --- ->>> _a["hello"] = function () { +>>> _a[_b = "hello"] = function () { 1->^^^^ -2 > ^^^ -3 > ^^^^^^^ -4 > ^^^^ +2 > ^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^ 1-> = { > 2 > [ -3 > "hello" -4 > -1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 8) Source(2, 6) + SourceIndex(0) -3 >Emitted(2, 15) Source(2, 13) + SourceIndex(0) -4 >Emitted(2, 19) Source(2, 5) + SourceIndex(0) +3 > "hello" +4 > +1->Emitted(16, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(16, 13) Source(2, 6) + SourceIndex(0) +3 >Emitted(16, 20) Source(2, 13) + SourceIndex(0) +4 >Emitted(16, 24) Source(2, 5) + SourceIndex(0) --- >>> debugger; 1 >^^^^^^^^ @@ -43,9 +57,9 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts > 2 > debugger 3 > ; -1 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -2 >Emitted(3, 17) Source(3, 17) + SourceIndex(0) -3 >Emitted(3, 18) Source(3, 18) + SourceIndex(0) +1 >Emitted(17, 9) Source(3, 9) + SourceIndex(0) +2 >Emitted(17, 17) Source(3, 17) + SourceIndex(0) +3 >Emitted(17, 18) Source(3, 18) + SourceIndex(0) --- >>> }, 1 >^^^^ @@ -54,8 +68,8 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts 1 > > 2 > } -1 >Emitted(4, 5) Source(4, 2) + SourceIndex(0) -2 >Emitted(4, 6) Source(4, 3) + SourceIndex(0) +1 >Emitted(18, 5) Source(4, 2) + SourceIndex(0) +2 >Emitted(18, 6) Source(4, 3) + SourceIndex(0) --- >>> Object.defineProperty(_a, "goodbye", { 1->^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -63,14 +77,14 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts 1->, > get 2 > ["goodbye"] -1->Emitted(5, 27) Source(5, 9) + SourceIndex(0) -2 >Emitted(5, 40) Source(5, 20) + SourceIndex(0) +1->Emitted(19, 27) Source(5, 9) + SourceIndex(0) +2 >Emitted(19, 40) Source(5, 20) + SourceIndex(0) --- >>> get: function () { 1 >^^^^^^^^^^^^^ 2 > ^^^^^^^^^-> 1 > -1 >Emitted(6, 14) Source(5, 5) + SourceIndex(0) +1 >Emitted(20, 14) Source(5, 5) + SourceIndex(0) --- >>> return 0; 1->^^^^^^^^^^^^ @@ -84,11 +98,11 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts 3 > 4 > 0 5 > ; -1->Emitted(7, 13) Source(6, 3) + SourceIndex(0) -2 >Emitted(7, 19) Source(6, 9) + SourceIndex(0) -3 >Emitted(7, 20) Source(6, 10) + SourceIndex(0) -4 >Emitted(7, 21) Source(6, 11) + SourceIndex(0) -5 >Emitted(7, 22) Source(6, 12) + SourceIndex(0) +1->Emitted(21, 13) Source(6, 3) + SourceIndex(0) +2 >Emitted(21, 19) Source(6, 9) + SourceIndex(0) +3 >Emitted(21, 20) Source(6, 10) + SourceIndex(0) +4 >Emitted(21, 21) Source(6, 11) + SourceIndex(0) +5 >Emitted(21, 22) Source(6, 12) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -97,20 +111,21 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts 1 > > 2 > } -1 >Emitted(8, 9) Source(7, 2) + SourceIndex(0) -2 >Emitted(8, 10) Source(7, 3) + SourceIndex(0) +1 >Emitted(22, 9) Source(7, 2) + SourceIndex(0) +2 >Emitted(22, 10) Source(7, 3) + SourceIndex(0) --- >>> enumerable: true, >>> configurable: true ->>> }), +>>> }), __names(_a, [_b]), >>> _a); 1->^^^^^^^ 2 > ^ +3 > ^^^^-> 1-> >} 2 > -1->Emitted(12, 8) Source(8, 2) + SourceIndex(0) -2 >Emitted(12, 9) Source(8, 2) + SourceIndex(0) +1->Emitted(26, 8) Source(8, 2) + SourceIndex(0) +2 >Emitted(26, 9) Source(8, 2) + SourceIndex(0) --- ->>>var _a; +>>>var _a, _b; >>>//# sourceMappingURL=computedPropertyNamesSourceMap2_ES5.js.map \ No newline at end of file diff --git a/tests/baselines/reference/conflictMarkerDiff3Trivia2.js b/tests/baselines/reference/conflictMarkerDiff3Trivia2.js index 61a2273019b8a..6119862eb7ee2 100644 --- a/tests/baselines/reference/conflictMarkerDiff3Trivia2.js +++ b/tests/baselines/reference/conflictMarkerDiff3Trivia2.js @@ -17,6 +17,20 @@ class C { //// [conflictMarkerDiff3Trivia2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -24,5 +38,6 @@ var C = (function () { a(); }; C.prototype.bar = function () { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); diff --git a/tests/baselines/reference/conflictMarkerTrivia2.js b/tests/baselines/reference/conflictMarkerTrivia2.js index 1e58addf706de..6af12c6af847c 100644 --- a/tests/baselines/reference/conflictMarkerTrivia2.js +++ b/tests/baselines/reference/conflictMarkerTrivia2.js @@ -14,6 +14,20 @@ class C { //// [conflictMarkerTrivia2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -21,5 +35,6 @@ var C = (function () { a(); }; C.prototype.bar = function () { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); diff --git a/tests/baselines/reference/constantOverloadFunction.js b/tests/baselines/reference/constantOverloadFunction.js index f501623bae5e1..46b87c957f5be 100644 --- a/tests/baselines/reference/constantOverloadFunction.js +++ b/tests/baselines/reference/constantOverloadFunction.js @@ -14,6 +14,20 @@ function foo(tagName: any): Base { //// [constantOverloadFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived1 = (function (_super) { @@ -36,6 +51,7 @@ var Derived1 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived1.prototype.bar = function () { }; + __names(Derived1.prototype, ["bar"]); return Derived1; }(Base)); var Derived2 = (function (_super) { @@ -44,6 +60,7 @@ var Derived2 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived2.prototype.baz = function () { }; + __names(Derived2.prototype, ["baz"]); return Derived2; }(Base)); var Derived3 = (function (_super) { @@ -52,6 +69,7 @@ var Derived3 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived3.prototype.biz = function () { }; + __names(Derived3.prototype, ["biz"]); return Derived3; }(Base)); function foo(tagName) { diff --git a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js index 2a86fb0c9a3f4..6d9a2ccf9901a 100644 --- a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js +++ b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js @@ -15,6 +15,20 @@ function foo(tagName: any): Base { //// [constantOverloadFunctionNoSubtypeError.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -29,6 +43,7 @@ var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived1 = (function (_super) { @@ -37,6 +52,7 @@ var Derived1 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived1.prototype.bar = function () { }; + __names(Derived1.prototype, ["bar"]); return Derived1; }(Base)); var Derived2 = (function (_super) { @@ -45,6 +61,7 @@ var Derived2 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived2.prototype.baz = function () { }; + __names(Derived2.prototype, ["baz"]); return Derived2; }(Base)); var Derived3 = (function (_super) { @@ -53,6 +70,7 @@ var Derived3 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived3.prototype.biz = function () { }; + __names(Derived3.prototype, ["biz"]); return Derived3; }(Base)); function foo(tagName) { diff --git a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js index 5b69a2dfae1d5..a583aad5cac6e 100644 --- a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js +++ b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js @@ -20,6 +20,20 @@ class Container { } //// [constraintCheckInGenericBaseTypeReference.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -35,6 +49,7 @@ var Constraint = (function () { function Constraint() { } Constraint.prototype.method = function () { }; + __names(Constraint.prototype, ["method"]); return Constraint; }()); var GenericBase = (function () { @@ -55,6 +70,7 @@ var TypeArg = (function () { TypeArg.prototype.method = function () { Container.People.items; }; + __names(TypeArg.prototype, ["method"]); return TypeArg; }()); var Container = (function () { diff --git a/tests/baselines/reference/constructorOverloads1.js b/tests/baselines/reference/constructorOverloads1.js index 47906974f6ea5..d2bc81a0506a4 100644 --- a/tests/baselines/reference/constructorOverloads1.js +++ b/tests/baselines/reference/constructorOverloads1.js @@ -22,11 +22,26 @@ f1.bar2(); //// [constructorOverloads1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(x) { } Foo.prototype.bar1 = function () { }; Foo.prototype.bar2 = function () { }; + __names(Foo.prototype, ["bar1", "bar2"]); return Foo; }()); var f1 = new Foo("hey"); diff --git a/tests/baselines/reference/constructorOverloads2.js b/tests/baselines/reference/constructorOverloads2.js index 291ea54573393..482af5b193487 100644 --- a/tests/baselines/reference/constructorOverloads2.js +++ b/tests/baselines/reference/constructorOverloads2.js @@ -26,6 +26,20 @@ f1.bar1(); //// [constructorOverloads2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -40,6 +54,7 @@ var FooBase = (function () { function FooBase(x) { } FooBase.prototype.bar1 = function () { }; + __names(FooBase.prototype, ["bar1"]); return FooBase; }()); var Foo = (function (_super) { @@ -48,6 +63,7 @@ var Foo = (function (_super) { return _super.call(this, x) || this; } Foo.prototype.bar1 = function () { }; + __names(Foo.prototype, ["bar1"]); return Foo; }(FooBase)); var f1 = new Foo("hey"); diff --git a/tests/baselines/reference/constructorOverloads3.js b/tests/baselines/reference/constructorOverloads3.js index 94b29ad89ab01..36dbd7bfae5b5 100644 --- a/tests/baselines/reference/constructorOverloads3.js +++ b/tests/baselines/reference/constructorOverloads3.js @@ -33,6 +33,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function (_super) { __extends(Foo, _super); function Foo(x, y) { @@ -40,6 +54,7 @@ var Foo = (function (_super) { return _this; } Foo.prototype.bar1 = function () { }; + __names(Foo.prototype, ["bar1"]); return Foo; }(FooBase)); var f1 = new Foo("hey"); diff --git a/tests/baselines/reference/constructorReturnsInvalidType.js b/tests/baselines/reference/constructorReturnsInvalidType.js index 82c5cc4a76095..0f6b1637482e6 100644 --- a/tests/baselines/reference/constructorReturnsInvalidType.js +++ b/tests/baselines/reference/constructorReturnsInvalidType.js @@ -10,11 +10,26 @@ var x = new X(); //// [constructorReturnsInvalidType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var X = (function () { function X() { return 1; } X.prototype.foo = function () { }; + __names(X.prototype, ["foo"]); return X; }()); var x = new X(); diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js index 8e9dc6da68831..88c7569c62d60 100644 --- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js +++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js @@ -280,6 +280,20 @@ TypeScriptAllInOne.Program.Main(); //// [constructorWithIncompleteTypeAnnotation.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -334,6 +348,7 @@ var TypeScriptAllInOne; Program.prototype["catch"] = function (e) { console.log(e); }; + __names(Program.prototype, ["if", "catch"]); return Program; }()); TypeScriptAllInOne.Program = Program; @@ -487,6 +502,7 @@ var BasicFeatures = (function () { else return 1; }; + __names(BasicFeatures.prototype, ["VARIABLES", "STATEMENTS", "TYPES", "OPERATOR"]); return BasicFeatures; }()); var CLASS = (function () { @@ -510,6 +526,7 @@ var CLASS = (function () { else return false; }; + __names(CLASS.prototype, ["Member", "Foo"]); return CLASS; }()); // todo: use these @@ -534,6 +551,7 @@ var B = (function (_super) { B.prototype.method2 = function () { return this.method1(2); }; + __names(B.prototype, ["method2"]); return B; }(A)); var Overloading = (function () { diff --git a/tests/baselines/reference/contextualTypeAppliedToVarArgs.js b/tests/baselines/reference/contextualTypeAppliedToVarArgs.js index f8b271ba47cf6..6738556dcde99 100644 --- a/tests/baselines/reference/contextualTypeAppliedToVarArgs.js +++ b/tests/baselines/reference/contextualTypeAppliedToVarArgs.js @@ -17,6 +17,20 @@ class Foo{ //// [contextualTypeAppliedToVarArgs.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function delegate(instance, method, data) { return function () { }; } @@ -29,5 +43,6 @@ var Foo = (function () { var b = args2.node; }); }; + __names(Foo.prototype, ["Bar"]); return Foo; }()); diff --git a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js index 4f1305053826a..fc32a8fd12296 100644 --- a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js +++ b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js @@ -50,6 +50,20 @@ function getFoo3(): Foo { } //// [contextuallyTypedClassExpressionMethodDeclaration02.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function getFoo1() { return (function () { function class_1() { @@ -60,6 +74,7 @@ function getFoo1() { class_1.prototype.method2 = function (arg) { arg.strProp = "hello"; }; + __names(class_1.prototype, ["method1", "method2"]); return class_1; }()); } diff --git a/tests/baselines/reference/controlFlowSuperPropertyAccess.js b/tests/baselines/reference/controlFlowSuperPropertyAccess.js index c2f947d56878e..2776eeeee644b 100644 --- a/tests/baselines/reference/controlFlowSuperPropertyAccess.js +++ b/tests/baselines/reference/controlFlowSuperPropertyAccess.js @@ -20,6 +20,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function () { function B() { } @@ -33,5 +47,6 @@ var C = (function (_super) { C.prototype.body = function () { _super.prototype.m && _super.prototype.m.call(this); }; + __names(C.prototype, ["body"]); return C; }(B)); diff --git a/tests/baselines/reference/crashInresolveReturnStatement.js b/tests/baselines/reference/crashInresolveReturnStatement.js index be2e38ddf49c0..8607d636331d0 100644 --- a/tests/baselines/reference/crashInresolveReturnStatement.js +++ b/tests/baselines/reference/crashInresolveReturnStatement.js @@ -19,12 +19,27 @@ class WITDialogs { //// [crashInresolveReturnStatement.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var WorkItemToolbar = (function () { function WorkItemToolbar() { } WorkItemToolbar.prototype.onToolbarItemClick = function () { WITDialogs.createCopyOfWorkItem(); }; + __names(WorkItemToolbar.prototype, ["onToolbarItemClick"]); return WorkItemToolbar; }()); var CreateCopyOfWorkItemDialog = (function () { @@ -33,6 +48,7 @@ var CreateCopyOfWorkItemDialog = (function () { CreateCopyOfWorkItemDialog.prototype.getDialogResult = function () { return null; }; + __names(CreateCopyOfWorkItemDialog.prototype, ["getDialogResult"]); return CreateCopyOfWorkItemDialog; }()); function createWorkItemDialog(dialogType) { diff --git a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js index a115e7ab0a3aa..23649d763f64a 100644 --- a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js +++ b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js @@ -9,6 +9,20 @@ export class BuildWorkspaceService { //// [crashIntypeCheckObjectCreationExpression.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -20,6 +34,7 @@ define(["require", "exports"], function (require, exports) { }; BuildWorkspaceService.prototype.injectBuildService = function (service) { }; + __names(BuildWorkspaceService.prototype, ["injectRequestService", "injectBuildService"]); return BuildWorkspaceService; }()); exports.BuildWorkspaceService = BuildWorkspaceService; diff --git a/tests/baselines/reference/crashRegressionTest.js b/tests/baselines/reference/crashRegressionTest.js index 22efbf3fba4ab..17d491f70b049 100644 --- a/tests/baselines/reference/crashRegressionTest.js +++ b/tests/baselines/reference/crashRegressionTest.js @@ -26,6 +26,20 @@ module MsPortal.Util.TemplateEngine { //// [crashRegressionTest.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var MsPortal; (function (MsPortal) { var Util; @@ -40,6 +54,7 @@ var MsPortal; StringTemplate.prototype.text = function (value) { this._templateStorage.templateSources[this._name] = value; }; + __names(StringTemplate.prototype, ["text"]); return StringTemplate; }()); var TemplateStorage = (function () { diff --git a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js index a1d9f87d48358..f7b503b249fe0 100644 --- a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js +++ b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js @@ -27,16 +27,32 @@ interface I extends A, B { } //// [declFileForClassWithMultipleBaseClasses.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.bar = function () { }; + __names(B.prototype, ["bar"]); return B; }()); var D = (function () { @@ -46,6 +62,7 @@ var D = (function () { D.prototype.bat = function () { }; D.prototype.foo = function () { }; D.prototype.bar = function () { }; + __names(D.prototype, ["baz", "bat", "foo", "bar"]); return D; }()); diff --git a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js index cff015a8b29d0..9bc132115ab65 100644 --- a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js +++ b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js @@ -6,10 +6,25 @@ class C { } //// [declFileForClassWithPrivateOverloadedFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/declFileForTypeParameters.js b/tests/baselines/reference/declFileForTypeParameters.js index 4000e6301eb68..01c3b75bce6c2 100644 --- a/tests/baselines/reference/declFileForTypeParameters.js +++ b/tests/baselines/reference/declFileForTypeParameters.js @@ -7,12 +7,27 @@ class C { } //// [declFileForTypeParameters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (a) { return this.x; }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/declFileMethods.js b/tests/baselines/reference/declFileMethods.js index cc6d796e5cfc8..ad57603843b18 100644 --- a/tests/baselines/reference/declFileMethods.js +++ b/tests/baselines/reference/declFileMethods.js @@ -191,6 +191,20 @@ interface I2 { //// [declFileMethods_0.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var c1 = (function () { function c1() { @@ -271,10 +285,25 @@ var c1 = (function () { c1.privateStaticFooWithOverloads = function (a) { return a; }; + __names(c1.prototype, ["foo", "fooWithParameters", "fooWithRestParameters", "fooWithOverloads", "privateFoo", "privateFooWithParameters", "privateFooWithRestParameters", "privateFooWithOverloads"]); return c1; }()); exports.c1 = c1; //// [declFileMethods_1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var c2 = (function () { function c2() { } @@ -354,6 +383,7 @@ var c2 = (function () { c2.privateStaticFooWithOverloads = function (a) { return a; }; + __names(c2.prototype, ["foo", "fooWithParameters", "fooWithRestParameters", "fooWithOverloads", "privateFoo", "privateFooWithParameters", "privateFooWithRestParameters", "privateFooWithOverloads"]); return c2; }()); diff --git a/tests/baselines/reference/declFilePrivateMethodOverloads.js b/tests/baselines/reference/declFilePrivateMethodOverloads.js index f2203d8d770f4..d33fd007cf6ed 100644 --- a/tests/baselines/reference/declFilePrivateMethodOverloads.js +++ b/tests/baselines/reference/declFilePrivateMethodOverloads.js @@ -23,6 +23,20 @@ declare class c2 { } //// [declFilePrivateMethodOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var c1 = (function () { function c1() { } @@ -32,6 +46,7 @@ var c1 = (function () { c1.prototype.overloadWithArityDifference = function (context) { // Function here }; + __names(c1.prototype, ["_forEachBindingContext", "overloadWithArityDifference"]); return c1; }()); diff --git a/tests/baselines/reference/declInput-2.js b/tests/baselines/reference/declInput-2.js index eece6082356b2..7682e2e040562 100644 --- a/tests/baselines/reference/declInput-2.js +++ b/tests/baselines/reference/declInput-2.js @@ -22,6 +22,20 @@ module M { } //// [declInput-2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { @@ -44,6 +58,7 @@ var M; D.prototype.m26 = function (i) { }; D.prototype.m262 = function (i) { }; D.prototype.m3 = function () { return new C(); }; + __names(D.prototype, ["m232", "m242", "m252", "m26", "m262", "m3"]); return D; }()); M.D = D; diff --git a/tests/baselines/reference/declInput.js b/tests/baselines/reference/declInput.js index 1f29093d0a848..b5de6f0b988ed 100644 --- a/tests/baselines/reference/declInput.js +++ b/tests/baselines/reference/declInput.js @@ -11,6 +11,20 @@ class bar { //// [declInput.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var bar = (function () { function bar() { } @@ -22,6 +36,7 @@ var bar = (function () { if (z === void 0) { z = ''; } x++; }; + __names(bar.prototype, ["f", "g", "h"]); return bar; }()); diff --git a/tests/baselines/reference/declInput3.js b/tests/baselines/reference/declInput3.js index 292023270aec6..409becec7b5d8 100644 --- a/tests/baselines/reference/declInput3.js +++ b/tests/baselines/reference/declInput3.js @@ -11,6 +11,20 @@ class bar { //// [declInput3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var bar = (function () { function bar() { } @@ -22,6 +36,7 @@ var bar = (function () { if (z === void 0) { z = ''; } x++; }; + __names(bar.prototype, ["f", "g", "h"]); return bar; }()); diff --git a/tests/baselines/reference/declInput4.js b/tests/baselines/reference/declInput4.js index ec57bfaf3e840..a7e2e53dcbd14 100644 --- a/tests/baselines/reference/declInput4.js +++ b/tests/baselines/reference/declInput4.js @@ -16,6 +16,20 @@ module M { } //// [declInput4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { @@ -35,6 +49,7 @@ var M; D.prototype.m232 = function () { return null; }; D.prototype.m242 = function () { return null; }; D.prototype.m26 = function (i) { }; + __names(D.prototype, ["m232", "m242", "m26"]); return D; }()); M.D = D; diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict.js b/tests/baselines/reference/declarationEmitClassMemberNameConflict.js index 200ca70d79f47..a40f4bf5a584f 100644 --- a/tests/baselines/reference/declarationEmitClassMemberNameConflict.js +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict.js @@ -37,6 +37,20 @@ export class C4 { //// [declarationEmitClassMemberNameConflict.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var C1 = (function () { function C1() { @@ -46,6 +60,7 @@ var C1 = (function () { return function (t) { }; }; + __names(C1.prototype, ["C1", "bar"]); return C1; }()); exports.C1 = C1; @@ -56,6 +71,7 @@ var C2 = (function () { return function (t) { }; }; + __names(C2.prototype, ["bar"]); return C2; }()); exports.C2 = C2; @@ -72,6 +88,7 @@ var C3 = (function () { return function (t) { }; }; + __names(C3.prototype, ["bar"]); return C3; }()); exports.C3 = C3; @@ -88,6 +105,7 @@ var C4 = (function () { return function (t) { }; }; + __names(C4.prototype, ["bar"]); return C4; }()); exports.C4 = C4; diff --git a/tests/baselines/reference/declarationEmitProtectedMembers.js b/tests/baselines/reference/declarationEmitProtectedMembers.js index a31d74fbbb1a5..6158ff50ca14e 100644 --- a/tests/baselines/reference/declarationEmitProtectedMembers.js +++ b/tests/baselines/reference/declarationEmitProtectedMembers.js @@ -50,6 +50,20 @@ class C4 { } //// [declarationEmitProtectedMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -86,6 +100,7 @@ var C1 = (function () { enumerable: true, configurable: true }); + __names(C1.prototype, ["f"]); return C1; }()); // Derived class overriding protected members @@ -100,6 +115,7 @@ var C2 = (function (_super) { C2.sf = function () { return _super.sf.call(this) + this.sx; }; + __names(C2.prototype, ["f"]); return C2; }(C1)); // Derived class making protected members public @@ -119,6 +135,7 @@ var C3 = (function (_super) { enumerable: true, configurable: true }); + __names(C3.prototype, ["f"]); return C3; }(C2)); // Protected properties in constructors diff --git a/tests/baselines/reference/declarationEmitThisPredicates01.js b/tests/baselines/reference/declarationEmitThisPredicates01.js index 70ed3147a9e06..bc6aab26f7e06 100644 --- a/tests/baselines/reference/declarationEmitThisPredicates01.js +++ b/tests/baselines/reference/declarationEmitThisPredicates01.js @@ -10,6 +10,20 @@ export class D extends C { //// [declarationEmitThisPredicates01.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -27,6 +41,7 @@ var C = (function () { C.prototype.m = function () { return this instanceof D; }; + __names(C.prototype, ["m"]); return C; }()); exports.C = C; diff --git a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js index e7c4c9998b914..d398c181585d3 100644 --- a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js +++ b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js @@ -10,6 +10,20 @@ class D extends C { //// [declarationEmitThisPredicatesWithPrivateName01.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -27,6 +41,7 @@ var C = (function () { C.prototype.m = function () { return this instanceof D; }; + __names(C.prototype, ["m"]); return C; }()); exports.C = C; diff --git a/tests/baselines/reference/declarationFiles.js b/tests/baselines/reference/declarationFiles.js index 7ee2f344ea1bc..1b706a5c9b705 100644 --- a/tests/baselines/reference/declarationFiles.js +++ b/tests/baselines/reference/declarationFiles.js @@ -48,10 +48,25 @@ class C4 { //// [declarationFiles.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1(x) { } C1.prototype.f = function (x) { return undefined; }; + __names(C1.prototype, ["f"]); return C1; }()); var C2 = (function () { @@ -85,5 +100,6 @@ var C4 = (function () { var _this = this; return function () { return _this; }; }; + __names(C4.prototype, ["f1", "f2", "f3", "f4"]); return C4; }()); diff --git a/tests/baselines/reference/declarationMerging1.js b/tests/baselines/reference/declarationMerging1.js index 6b863def1c7c5..21cbc0d000560 100644 --- a/tests/baselines/reference/declarationMerging1.js +++ b/tests/baselines/reference/declarationMerging1.js @@ -12,10 +12,25 @@ interface A { } //// [file1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.getF = function () { return this._f; }; + __names(A.prototype, ["getF"]); return A; }()); //// [file2.js] diff --git a/tests/baselines/reference/declarationMerging2.js b/tests/baselines/reference/declarationMerging2.js index b360d9af3f770..586435bf50378 100644 --- a/tests/baselines/reference/declarationMerging2.js +++ b/tests/baselines/reference/declarationMerging2.js @@ -15,6 +15,20 @@ declare module "./a" { } //// [a.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -22,6 +36,7 @@ define(["require", "exports"], function (require, exports) { function A() { } A.prototype.getF = function () { return this._f; }; + __names(A.prototype, ["getF"]); return A; }()); exports.A = A; diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies.js b/tests/baselines/reference/decoratorChecksFunctionBodies.js index 562169078af86..df4c2c873ae3a 100644 --- a/tests/baselines/reference/decoratorChecksFunctionBodies.js +++ b/tests/baselines/reference/decoratorChecksFunctionBodies.js @@ -15,6 +15,20 @@ class A { } //// [decoratorChecksFunctionBodies.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -29,6 +43,7 @@ var A = (function () { } A.prototype.m = function () { }; + __names(A.prototype, ["m"]); __decorate([ (function (x, p) { var a = 3; diff --git a/tests/baselines/reference/decoratorMetadata.js b/tests/baselines/reference/decoratorMetadata.js index 93453ac4cf3c8..ec7d644f7ccf2 100644 --- a/tests/baselines/reference/decoratorMetadata.js +++ b/tests/baselines/reference/decoratorMetadata.js @@ -29,6 +29,20 @@ var Service = (function () { exports.default = Service; //// [component.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -46,6 +60,7 @@ var MyComponent = (function () { } MyComponent.prototype.method = function (x) { }; + __names(MyComponent.prototype, ["method"]); __decorate([ decorator, __metadata("design:type", Function), diff --git a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js index 9e8b4d5278ee7..a237a5942418b 100644 --- a/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js +++ b/tests/baselines/reference/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js @@ -19,6 +19,7 @@ var MyClass = (function () { } MyClass.prototype.doSomething = function () { }; + __names(MyClass.prototype, ["doSomething"]); __decorate([ decorator, __metadata("design:type", Function), diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js index f85bb4767210e..1bf8673e1c403 100644 --- a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js +++ b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js @@ -68,6 +68,20 @@ var SomeClass2 = (function () { exports.SomeClass2 = SomeClass2; //// [main.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -100,6 +114,7 @@ var ClassA = (function () { args[_i] = arguments[_i]; } }; + __names(ClassA.prototype, ["foo"]); __decorate([ annotation1(), __metadata("design:type", Function), diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js index f59e7f9ec13d2..920cd913584c9 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.db = db; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js index b3a5cded57190..3f8c82d002de4 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision2.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.db = db; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js index a3c170b24e678..920be77df3f7c 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision3.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.db = db; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js index d6ed8bde3eca1..68a03a90f1868 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.db = db; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js index a1cc10b7d3d0d..0766dbef36d26 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.default = db; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js index 572787b6f20d6..5c099b4b6eca8 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision6.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.default = db; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js index 6a45f5230bd00..3a948de3dcfdc 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision7.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.default = db; diff --git a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js index 6efdc7f26dbf9..0aaf2da887ae0 100644 --- a/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js +++ b/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision8.js @@ -31,6 +31,7 @@ var db = (function () { } db.prototype.doSomething = function () { }; + __names(db.prototype, ["doSomething"]); return db; }()); exports.db = db; diff --git a/tests/baselines/reference/decoratorOnClass9.js b/tests/baselines/reference/decoratorOnClass9.js index eac4dcf690af4..a3146727a3479 100644 --- a/tests/baselines/reference/decoratorOnClass9.js +++ b/tests/baselines/reference/decoratorOnClass9.js @@ -24,6 +24,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -45,6 +59,7 @@ var B = (function (_super) { B.prototype.m = function () { return B_1.x; }; + __names(B.prototype, ["m"]); B.x = 1; B.y = B_1.x; B = B_1 = __decorate([ diff --git a/tests/baselines/reference/decoratorOnClassMethod1.js b/tests/baselines/reference/decoratorOnClassMethod1.js index ef029b845431b..61c37558a81f7 100644 --- a/tests/baselines/reference/decoratorOnClassMethod1.js +++ b/tests/baselines/reference/decoratorOnClassMethod1.js @@ -6,6 +6,20 @@ class C { } //// [decoratorOnClassMethod1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -16,6 +30,7 @@ var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ dec ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod10.js b/tests/baselines/reference/decoratorOnClassMethod10.js index f90251d619694..550ec8e67bbb9 100644 --- a/tests/baselines/reference/decoratorOnClassMethod10.js +++ b/tests/baselines/reference/decoratorOnClassMethod10.js @@ -6,6 +6,20 @@ class C { } //// [decoratorOnClassMethod10.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -16,6 +30,7 @@ var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ dec ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod11.js b/tests/baselines/reference/decoratorOnClassMethod11.js index f1589a39286fa..4f3fd9d1ea9b7 100644 --- a/tests/baselines/reference/decoratorOnClassMethod11.js +++ b/tests/baselines/reference/decoratorOnClassMethod11.js @@ -9,6 +9,20 @@ module M { } //// [decoratorOnClassMethod11.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -22,6 +36,7 @@ var M; } C.prototype.decorator = function (target, key) { }; C.prototype.method = function () { }; + __names(C.prototype, ["decorator", "method"]); __decorate([ this.decorator ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod12.js b/tests/baselines/reference/decoratorOnClassMethod12.js index 089f5961d9ca5..1a3fce78c32a9 100644 --- a/tests/baselines/reference/decoratorOnClassMethod12.js +++ b/tests/baselines/reference/decoratorOnClassMethod12.js @@ -10,6 +10,20 @@ module M { } //// [decoratorOnClassMethod12.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -32,6 +46,7 @@ var M; function S() { } S.prototype.decorator = function (target, key) { }; + __names(S.prototype, ["decorator"]); return S; }()); var C = (function (_super) { @@ -40,6 +55,7 @@ var M; return _super !== null && _super.apply(this, arguments) || this; } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ _super.decorator ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod2.js b/tests/baselines/reference/decoratorOnClassMethod2.js index 5db2922ed7187..78395182d5843 100644 --- a/tests/baselines/reference/decoratorOnClassMethod2.js +++ b/tests/baselines/reference/decoratorOnClassMethod2.js @@ -6,6 +6,20 @@ class C { } //// [decoratorOnClassMethod2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -16,6 +30,7 @@ var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ dec ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod3.js b/tests/baselines/reference/decoratorOnClassMethod3.js index 30f527368f28b..d692b49453849 100644 --- a/tests/baselines/reference/decoratorOnClassMethod3.js +++ b/tests/baselines/reference/decoratorOnClassMethod3.js @@ -6,6 +6,20 @@ class C { } //// [decoratorOnClassMethod3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -16,6 +30,7 @@ var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ dec ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethod8.js b/tests/baselines/reference/decoratorOnClassMethod8.js index bf8c06d9b90f6..e3c9382d43bef 100644 --- a/tests/baselines/reference/decoratorOnClassMethod8.js +++ b/tests/baselines/reference/decoratorOnClassMethod8.js @@ -6,6 +6,20 @@ class C { } //// [decoratorOnClassMethod8.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -16,6 +30,7 @@ var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ dec ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1.js b/tests/baselines/reference/decoratorOnClassMethodOverload1.js index cb2e29b3d0003..f904faf6b099a 100644 --- a/tests/baselines/reference/decoratorOnClassMethodOverload1.js +++ b/tests/baselines/reference/decoratorOnClassMethodOverload1.js @@ -8,9 +8,24 @@ class C { } //// [decoratorOnClassMethodOverload1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); return C; }()); diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2.js b/tests/baselines/reference/decoratorOnClassMethodOverload2.js index eafa5da711097..ccc1c4bf8b3bc 100644 --- a/tests/baselines/reference/decoratorOnClassMethodOverload2.js +++ b/tests/baselines/reference/decoratorOnClassMethodOverload2.js @@ -8,6 +8,20 @@ class C { } //// [decoratorOnClassMethodOverload2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -18,6 +32,7 @@ var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ dec ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1.js b/tests/baselines/reference/decoratorOnClassMethodParameter1.js index efb1e4abff2cb..d75b3d6d01d3f 100644 --- a/tests/baselines/reference/decoratorOnClassMethodParameter1.js +++ b/tests/baselines/reference/decoratorOnClassMethodParameter1.js @@ -6,6 +6,20 @@ class C { } //// [decoratorOnClassMethodParameter1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -19,6 +33,7 @@ var C = (function () { function C() { } C.prototype.method = function (p) { }; + __names(C.prototype, ["method"]); __decorate([ __param(0, dec) ], C.prototype, "method", null); diff --git a/tests/baselines/reference/decoratorWithUnderscoreMethod.js b/tests/baselines/reference/decoratorWithUnderscoreMethod.js index ace73ccf5953e..e4268118f84e8 100644 --- a/tests/baselines/reference/decoratorWithUnderscoreMethod.js +++ b/tests/baselines/reference/decoratorWithUnderscoreMethod.js @@ -29,6 +29,7 @@ var A = (function () { A.prototype.__foo = function (bar) { // do something with bar }; + __names(A.prototype, ["__foo"]); __decorate([ dec() ], A.prototype, "__foo"); diff --git a/tests/baselines/reference/defaultArgsInOverloads.js b/tests/baselines/reference/defaultArgsInOverloads.js index 1b4c65db6533b..e802062b17b5e 100644 --- a/tests/baselines/reference/defaultArgsInOverloads.js +++ b/tests/baselines/reference/defaultArgsInOverloads.js @@ -20,6 +20,20 @@ interface I { var f: (a = 3) => number; //// [defaultArgsInOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function fun(a) { if (a === void 0) { a = null; } } @@ -32,6 +46,7 @@ var C = (function () { C.fun = function (a) { if (a === void 0) { a = null; } }; + __names(C.prototype, ["fun"]); return C; }()); var f; diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js index d41542e90c0f4..b8fcab9401687 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js @@ -34,6 +34,20 @@ class D extends C { } //// [derivedClassConstructorWithExplicitReturns01.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -55,6 +69,7 @@ var C = (function () { }; } C.prototype.foo = function () { return "this never gets used."; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map index 4075fca49c9ed..1c2631732bb94 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,MAAM,CAAC;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,MAAM,CAAC,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,MAAM,CAAC,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,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;YACtB,UAAU,CAAA;YACV,MAAM,CAAC;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,MAAM,CAAC,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;QACN,CAAC;QACD,IAAI;YACA,MAAM,CAAC,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,MAAM,CAAC;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,MAAM,CAAC,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,MAAM,CAAC,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,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;YACtB,UAAU,CAAA;YACV,MAAM,CAAC;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,MAAM,CAAC,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;QACN,CAAC;QACD,IAAI;YACA,MAAM,CAAC,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 76da9ac8a5a99..12d005b9a5fa7 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt @@ -8,6 +8,20 @@ sources: derivedClassConstructorWithExplicitReturns01.ts emittedFile:tests/cases/compiler/derivedClassConstructorWithExplicitReturns01.js sourceFile:derivedClassConstructorWithExplicitReturns01.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var __extends = (this && this.__extends) || (function () { >>> var extendStatics = Object.setPrototypeOf || >>> ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -22,7 +36,7 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0) +1 >Emitted(25, 1) Source(1, 1) + SourceIndex(0) --- >>> function C(value) { 1->^^^^ @@ -37,9 +51,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > constructor( 3 > value: number -1->Emitted(12, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(12, 16) Source(6, 17) + SourceIndex(0) -3 >Emitted(12, 21) Source(6, 30) + SourceIndex(0) +1->Emitted(26, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(26, 16) Source(6, 17) + SourceIndex(0) +3 >Emitted(26, 21) Source(6, 30) + SourceIndex(0) --- >>> this.cProp = 10; 1->^^^^^^^^ @@ -52,11 +66,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 3 > = 4 > 10 5 > ; -1->Emitted(13, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(13, 19) Source(2, 10) + SourceIndex(0) -3 >Emitted(13, 22) Source(2, 13) + SourceIndex(0) -4 >Emitted(13, 24) Source(2, 15) + SourceIndex(0) -5 >Emitted(13, 25) Source(2, 16) + SourceIndex(0) +1->Emitted(27, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(27, 19) Source(2, 10) + SourceIndex(0) +3 >Emitted(27, 22) Source(2, 13) + SourceIndex(0) +4 >Emitted(27, 24) Source(2, 15) + SourceIndex(0) +5 >Emitted(27, 25) Source(2, 16) + SourceIndex(0) --- >>> return { 1 >^^^^^^^^ @@ -71,9 +85,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > return 3 > -1 >Emitted(14, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(14, 15) Source(7, 15) + SourceIndex(0) -3 >Emitted(14, 16) Source(7, 16) + SourceIndex(0) +1 >Emitted(28, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(28, 15) Source(7, 15) + SourceIndex(0) +3 >Emitted(28, 16) Source(7, 16) + SourceIndex(0) --- >>> cProp: value, 1->^^^^^^^^^^^^ @@ -86,10 +100,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > cProp 3 > : 4 > value -1->Emitted(15, 13) Source(8, 13) + SourceIndex(0) -2 >Emitted(15, 18) Source(8, 18) + SourceIndex(0) -3 >Emitted(15, 20) Source(8, 20) + SourceIndex(0) -4 >Emitted(15, 25) Source(8, 25) + SourceIndex(0) +1->Emitted(29, 13) Source(8, 13) + SourceIndex(0) +2 >Emitted(29, 18) Source(8, 18) + SourceIndex(0) +3 >Emitted(29, 20) Source(8, 20) + SourceIndex(0) +4 >Emitted(29, 25) Source(8, 25) + SourceIndex(0) --- >>> foo: function () { 1->^^^^^^^^^^^^ @@ -98,8 +112,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1->, > 2 > foo -1->Emitted(16, 13) Source(9, 13) + SourceIndex(0) -2 >Emitted(16, 16) Source(9, 16) + SourceIndex(0) +1->Emitted(30, 13) Source(9, 13) + SourceIndex(0) +2 >Emitted(30, 16) Source(9, 16) + SourceIndex(0) --- >>> return "well this looks kinda C-ish."; 1->^^^^^^^^^^^^^^^^ @@ -113,11 +127,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 3 > 4 > "well this looks kinda C-ish." 5 > ; -1->Emitted(17, 17) Source(10, 17) + SourceIndex(0) -2 >Emitted(17, 23) Source(10, 23) + SourceIndex(0) -3 >Emitted(17, 24) Source(10, 24) + SourceIndex(0) -4 >Emitted(17, 54) Source(10, 54) + SourceIndex(0) -5 >Emitted(17, 55) Source(10, 55) + SourceIndex(0) +1->Emitted(31, 17) Source(10, 17) + SourceIndex(0) +2 >Emitted(31, 23) Source(10, 23) + SourceIndex(0) +3 >Emitted(31, 24) Source(10, 24) + SourceIndex(0) +4 >Emitted(31, 54) Source(10, 54) + SourceIndex(0) +5 >Emitted(31, 55) Source(10, 55) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -125,8 +139,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(18, 13) Source(11, 13) + SourceIndex(0) -2 >Emitted(18, 14) Source(11, 14) + SourceIndex(0) +1 >Emitted(32, 13) Source(11, 13) + SourceIndex(0) +2 >Emitted(32, 14) Source(11, 14) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^ @@ -134,8 +148,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > } 2 > -1 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) -2 >Emitted(19, 11) Source(12, 10) + SourceIndex(0) +1 >Emitted(33, 10) Source(12, 10) + SourceIndex(0) +2 >Emitted(33, 11) Source(12, 10) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -144,8 +158,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(13, 5) + SourceIndex(0) -2 >Emitted(20, 6) Source(13, 6) + SourceIndex(0) +1 >Emitted(34, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(34, 6) Source(13, 6) + SourceIndex(0) --- >>> C.prototype.foo = function () { return "this never gets used."; }; 1->^^^^ @@ -168,17 +182,18 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 8 > ; 9 > 10> } -1->Emitted(21, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(21, 20) Source(4, 8) + SourceIndex(0) -3 >Emitted(21, 23) Source(4, 5) + SourceIndex(0) -4 >Emitted(21, 37) Source(4, 13) + SourceIndex(0) -5 >Emitted(21, 43) Source(4, 19) + SourceIndex(0) -6 >Emitted(21, 44) Source(4, 20) + SourceIndex(0) -7 >Emitted(21, 67) Source(4, 43) + SourceIndex(0) -8 >Emitted(21, 68) Source(4, 44) + SourceIndex(0) -9 >Emitted(21, 69) Source(4, 45) + SourceIndex(0) -10>Emitted(21, 70) Source(4, 46) + SourceIndex(0) ---- +1->Emitted(35, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(35, 20) Source(4, 8) + SourceIndex(0) +3 >Emitted(35, 23) Source(4, 5) + SourceIndex(0) +4 >Emitted(35, 37) Source(4, 13) + SourceIndex(0) +5 >Emitted(35, 43) Source(4, 19) + SourceIndex(0) +6 >Emitted(35, 44) Source(4, 20) + SourceIndex(0) +7 >Emitted(35, 67) Source(4, 43) + SourceIndex(0) +8 >Emitted(35, 68) Source(4, 44) + SourceIndex(0) +9 >Emitted(35, 69) Source(4, 45) + SourceIndex(0) +10>Emitted(35, 70) Source(4, 46) + SourceIndex(0) +--- +>>> __names(C.prototype, ["foo"]); >>> return C; 1 >^^^^ 2 > ^^^^^^^^ @@ -194,8 +209,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > } > 2 > } -1 >Emitted(22, 5) Source(14, 1) + SourceIndex(0) -2 >Emitted(22, 13) Source(14, 2) + SourceIndex(0) +1 >Emitted(37, 5) Source(14, 1) + SourceIndex(0) +2 >Emitted(37, 13) Source(14, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -220,10 +235,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > } > } > } -1 >Emitted(23, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(23, 2) Source(14, 2) + SourceIndex(0) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(23, 6) Source(14, 2) + SourceIndex(0) +1 >Emitted(38, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(38, 2) Source(14, 2) + SourceIndex(0) +3 >Emitted(38, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(38, 6) Source(14, 2) + SourceIndex(0) --- >>>var D = (function (_super) { 1-> @@ -231,15 +246,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1-> > > -1->Emitted(24, 1) Source(16, 1) + SourceIndex(0) +1->Emitted(39, 1) Source(16, 1) + SourceIndex(0) --- >>> __extends(D, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^ 1->class D extends 2 > C -1->Emitted(25, 5) Source(16, 17) + SourceIndex(0) -2 >Emitted(25, 26) Source(16, 18) + SourceIndex(0) +1->Emitted(40, 5) Source(16, 17) + SourceIndex(0) +2 >Emitted(40, 26) Source(16, 18) + SourceIndex(0) --- >>> function D(a) { 1 >^^^^ @@ -252,9 +267,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > constructor( 3 > a = 100 -1 >Emitted(26, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(26, 16) Source(19, 17) + SourceIndex(0) -3 >Emitted(26, 17) Source(19, 24) + SourceIndex(0) +1 >Emitted(41, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(41, 16) Source(19, 17) + SourceIndex(0) +3 >Emitted(41, 17) Source(19, 24) + SourceIndex(0) --- >>> if (a === void 0) { a = 100; } 1->^^^^^^^^ @@ -266,10 +281,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > 3 > 4 > a = 100 -1->Emitted(27, 9) Source(19, 17) + SourceIndex(0) -2 >Emitted(27, 27) Source(19, 17) + SourceIndex(0) -3 >Emitted(27, 29) Source(19, 17) + SourceIndex(0) -4 >Emitted(27, 36) Source(19, 24) + SourceIndex(0) +1->Emitted(42, 9) Source(19, 17) + SourceIndex(0) +2 >Emitted(42, 27) Source(19, 17) + SourceIndex(0) +3 >Emitted(42, 29) Source(19, 17) + SourceIndex(0) +4 >Emitted(42, 36) Source(19, 24) + SourceIndex(0) --- >>> var _this = _super.call(this, a) || this; 1->^^^^^^^^ @@ -298,12 +313,12 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > else > return null; > } -1->Emitted(28, 9) Source(19, 5) + SourceIndex(0) -2 >Emitted(28, 21) Source(20, 9) + SourceIndex(0) -3 >Emitted(28, 39) Source(20, 15) + SourceIndex(0) -4 >Emitted(28, 40) Source(20, 16) + SourceIndex(0) -5 >Emitted(28, 41) Source(20, 17) + SourceIndex(0) -6 >Emitted(28, 50) Source(32, 6) + SourceIndex(0) +1->Emitted(43, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(43, 21) Source(20, 9) + SourceIndex(0) +3 >Emitted(43, 39) Source(20, 15) + SourceIndex(0) +4 >Emitted(43, 40) Source(20, 16) + SourceIndex(0) +5 >Emitted(43, 41) Source(20, 17) + SourceIndex(0) +6 >Emitted(43, 50) Source(32, 6) + SourceIndex(0) --- >>> _this.dProp = function () { return _this; }; 1->^^^^^^^^ @@ -324,15 +339,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 7 > 8 > this 9 > ; -1->Emitted(29, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(29, 20) Source(17, 10) + SourceIndex(0) -3 >Emitted(29, 23) Source(17, 13) + SourceIndex(0) -4 >Emitted(29, 37) Source(17, 19) + SourceIndex(0) -5 >Emitted(29, 44) Source(17, 19) + SourceIndex(0) -6 >Emitted(29, 49) Source(17, 23) + SourceIndex(0) -7 >Emitted(29, 51) Source(17, 19) + SourceIndex(0) -8 >Emitted(29, 52) Source(17, 23) + SourceIndex(0) -9 >Emitted(29, 53) Source(17, 24) + SourceIndex(0) +1->Emitted(44, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(44, 20) Source(17, 10) + SourceIndex(0) +3 >Emitted(44, 23) Source(17, 13) + SourceIndex(0) +4 >Emitted(44, 37) Source(17, 19) + SourceIndex(0) +5 >Emitted(44, 44) Source(17, 19) + SourceIndex(0) +6 >Emitted(44, 49) Source(17, 23) + SourceIndex(0) +7 >Emitted(44, 51) Source(17, 19) + SourceIndex(0) +8 >Emitted(44, 52) Source(17, 23) + SourceIndex(0) +9 >Emitted(44, 53) Source(17, 24) + SourceIndex(0) --- >>> if (Math.random() < 0.5) { 1 >^^^^^^^^ @@ -366,19 +381,19 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 11> ) 12> 13> { -1 >Emitted(30, 9) Source(22, 9) + SourceIndex(0) -2 >Emitted(30, 11) Source(22, 11) + SourceIndex(0) -3 >Emitted(30, 12) Source(22, 12) + SourceIndex(0) -4 >Emitted(30, 13) Source(22, 13) + SourceIndex(0) -5 >Emitted(30, 17) Source(22, 17) + SourceIndex(0) -6 >Emitted(30, 18) Source(22, 18) + SourceIndex(0) -7 >Emitted(30, 24) Source(22, 24) + SourceIndex(0) -8 >Emitted(30, 26) Source(22, 26) + SourceIndex(0) -9 >Emitted(30, 29) Source(22, 29) + SourceIndex(0) -10>Emitted(30, 32) Source(22, 32) + SourceIndex(0) -11>Emitted(30, 33) Source(22, 33) + SourceIndex(0) -12>Emitted(30, 34) Source(22, 34) + SourceIndex(0) -13>Emitted(30, 35) Source(22, 35) + SourceIndex(0) +1 >Emitted(45, 9) Source(22, 9) + SourceIndex(0) +2 >Emitted(45, 11) Source(22, 11) + SourceIndex(0) +3 >Emitted(45, 12) Source(22, 12) + SourceIndex(0) +4 >Emitted(45, 13) Source(22, 13) + SourceIndex(0) +5 >Emitted(45, 17) Source(22, 17) + SourceIndex(0) +6 >Emitted(45, 18) Source(22, 18) + SourceIndex(0) +7 >Emitted(45, 24) Source(22, 24) + SourceIndex(0) +8 >Emitted(45, 26) Source(22, 26) + SourceIndex(0) +9 >Emitted(45, 29) Source(22, 29) + SourceIndex(0) +10>Emitted(45, 32) Source(22, 32) + SourceIndex(0) +11>Emitted(45, 33) Source(22, 33) + SourceIndex(0) +12>Emitted(45, 34) Source(22, 34) + SourceIndex(0) +13>Emitted(45, 35) Source(22, 35) + SourceIndex(0) --- >>> "You win!"; 1 >^^^^^^^^^^^^ @@ -388,9 +403,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > "You win!" 3 > -1 >Emitted(31, 13) Source(23, 13) + SourceIndex(0) -2 >Emitted(31, 23) Source(23, 23) + SourceIndex(0) -3 >Emitted(31, 24) Source(23, 23) + SourceIndex(0) +1 >Emitted(46, 13) Source(23, 13) + SourceIndex(0) +2 >Emitted(46, 23) Source(23, 23) + SourceIndex(0) +3 >Emitted(46, 24) Source(23, 23) + SourceIndex(0) --- >>> return { 1 >^^^^^^^^^^^^ @@ -401,9 +416,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > 2 > return 3 > -1 >Emitted(32, 13) Source(24, 13) + SourceIndex(0) -2 >Emitted(32, 19) Source(24, 19) + SourceIndex(0) -3 >Emitted(32, 20) Source(24, 20) + SourceIndex(0) +1 >Emitted(47, 13) Source(24, 13) + SourceIndex(0) +2 >Emitted(47, 19) Source(24, 19) + SourceIndex(0) +3 >Emitted(47, 20) Source(24, 20) + SourceIndex(0) --- >>> cProp: 1, 1->^^^^^^^^^^^^^^^^ @@ -416,10 +431,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 2 > cProp 3 > : 4 > 1 -1->Emitted(33, 17) Source(25, 17) + SourceIndex(0) -2 >Emitted(33, 22) Source(25, 22) + SourceIndex(0) -3 >Emitted(33, 24) Source(25, 24) + SourceIndex(0) -4 >Emitted(33, 25) Source(25, 25) + SourceIndex(0) +1->Emitted(48, 17) Source(25, 17) + SourceIndex(0) +2 >Emitted(48, 22) Source(25, 22) + SourceIndex(0) +3 >Emitted(48, 24) Source(25, 24) + SourceIndex(0) +4 >Emitted(48, 25) Source(25, 25) + SourceIndex(0) --- >>> dProp: function () { return _this; }, 1->^^^^^^^^^^^^^^^^ @@ -440,14 +455,14 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 6 > this 7 > 8 > this -1->Emitted(34, 17) Source(26, 17) + SourceIndex(0) -2 >Emitted(34, 22) Source(26, 22) + SourceIndex(0) -3 >Emitted(34, 24) Source(26, 24) + SourceIndex(0) -4 >Emitted(34, 38) Source(26, 30) + SourceIndex(0) -5 >Emitted(34, 45) Source(26, 30) + SourceIndex(0) -6 >Emitted(34, 50) Source(26, 34) + SourceIndex(0) -7 >Emitted(34, 52) Source(26, 30) + SourceIndex(0) -8 >Emitted(34, 53) Source(26, 34) + SourceIndex(0) +1->Emitted(49, 17) Source(26, 17) + SourceIndex(0) +2 >Emitted(49, 22) Source(26, 22) + SourceIndex(0) +3 >Emitted(49, 24) Source(26, 24) + SourceIndex(0) +4 >Emitted(49, 38) Source(26, 30) + SourceIndex(0) +5 >Emitted(49, 45) Source(26, 30) + SourceIndex(0) +6 >Emitted(49, 50) Source(26, 34) + SourceIndex(0) +7 >Emitted(49, 52) Source(26, 30) + SourceIndex(0) +8 >Emitted(49, 53) Source(26, 34) + SourceIndex(0) --- >>> foo: function () { return "You win!!!!!"; } 1->^^^^^^^^^^^^^^^^ @@ -469,15 +484,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 7 > 8 > 9 > } -1->Emitted(35, 17) Source(27, 17) + SourceIndex(0) -2 >Emitted(35, 20) Source(27, 20) + SourceIndex(0) -3 >Emitted(35, 36) Source(27, 25) + SourceIndex(0) -4 >Emitted(35, 42) Source(27, 31) + SourceIndex(0) -5 >Emitted(35, 43) Source(27, 32) + SourceIndex(0) -6 >Emitted(35, 57) Source(27, 46) + SourceIndex(0) -7 >Emitted(35, 58) Source(27, 46) + SourceIndex(0) -8 >Emitted(35, 59) Source(27, 47) + SourceIndex(0) -9 >Emitted(35, 60) Source(27, 48) + SourceIndex(0) +1->Emitted(50, 17) Source(27, 17) + SourceIndex(0) +2 >Emitted(50, 20) Source(27, 20) + SourceIndex(0) +3 >Emitted(50, 36) Source(27, 25) + SourceIndex(0) +4 >Emitted(50, 42) Source(27, 31) + SourceIndex(0) +5 >Emitted(50, 43) Source(27, 32) + SourceIndex(0) +6 >Emitted(50, 57) Source(27, 46) + SourceIndex(0) +7 >Emitted(50, 58) Source(27, 46) + SourceIndex(0) +8 >Emitted(50, 59) Source(27, 47) + SourceIndex(0) +9 >Emitted(50, 60) Source(27, 48) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^ @@ -485,8 +500,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > } 2 > ; -1 >Emitted(36, 14) Source(28, 14) + SourceIndex(0) -2 >Emitted(36, 15) Source(28, 15) + SourceIndex(0) +1 >Emitted(51, 14) Source(28, 14) + SourceIndex(0) +2 >Emitted(51, 15) Source(28, 15) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -495,8 +510,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(37, 9) Source(29, 9) + SourceIndex(0) -2 >Emitted(37, 10) Source(29, 10) + SourceIndex(0) +1 >Emitted(52, 9) Source(29, 9) + SourceIndex(0) +2 >Emitted(52, 10) Source(29, 10) + SourceIndex(0) --- >>> else 1->^^^^^^^^ @@ -505,8 +520,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1-> > 2 > else -1->Emitted(38, 9) Source(30, 9) + SourceIndex(0) -2 >Emitted(38, 13) Source(30, 13) + SourceIndex(0) +1->Emitted(53, 9) Source(30, 9) + SourceIndex(0) +2 >Emitted(53, 13) Source(30, 13) + SourceIndex(0) --- >>> return null; 1->^^^^^^^^^^^^ @@ -520,11 +535,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 3 > 4 > null 5 > ; -1->Emitted(39, 13) Source(31, 13) + SourceIndex(0) -2 >Emitted(39, 19) Source(31, 19) + SourceIndex(0) -3 >Emitted(39, 20) Source(31, 20) + SourceIndex(0) -4 >Emitted(39, 24) Source(31, 24) + SourceIndex(0) -5 >Emitted(39, 25) Source(31, 25) + SourceIndex(0) +1->Emitted(54, 13) Source(31, 13) + SourceIndex(0) +2 >Emitted(54, 19) Source(31, 19) + SourceIndex(0) +3 >Emitted(54, 20) Source(31, 20) + SourceIndex(0) +4 >Emitted(54, 24) Source(31, 24) + SourceIndex(0) +5 >Emitted(54, 25) Source(31, 25) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -533,8 +548,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1 > > 2 > } -1 >Emitted(40, 5) Source(32, 5) + SourceIndex(0) -2 >Emitted(40, 6) Source(32, 6) + SourceIndex(0) +1 >Emitted(55, 5) Source(32, 5) + SourceIndex(0) +2 >Emitted(55, 6) Source(32, 6) + SourceIndex(0) --- >>> return D; 1->^^^^ @@ -542,8 +557,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts 1-> > 2 > } -1->Emitted(41, 5) Source(33, 1) + SourceIndex(0) -2 >Emitted(41, 13) Source(33, 2) + SourceIndex(0) +1->Emitted(56, 5) Source(33, 1) + SourceIndex(0) +2 >Emitted(56, 13) Source(33, 2) + SourceIndex(0) --- >>>}(C)); 1 > @@ -576,11 +591,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts > return null; > } > } -1 >Emitted(42, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(42, 2) Source(33, 2) + SourceIndex(0) -3 >Emitted(42, 2) Source(16, 1) + SourceIndex(0) -4 >Emitted(42, 3) Source(16, 17) + SourceIndex(0) -5 >Emitted(42, 4) Source(16, 18) + SourceIndex(0) -6 >Emitted(42, 7) Source(33, 2) + SourceIndex(0) +1 >Emitted(57, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(57, 2) Source(33, 2) + SourceIndex(0) +3 >Emitted(57, 2) Source(16, 1) + SourceIndex(0) +4 >Emitted(57, 3) Source(16, 17) + SourceIndex(0) +5 >Emitted(57, 4) Source(16, 18) + SourceIndex(0) +6 >Emitted(57, 7) Source(33, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=derivedClassConstructorWithExplicitReturns01.js.map \ No newline at end of file diff --git a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js index 23a4233d1241c..5fc6f693f2c4f 100644 --- a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js +++ b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -48,5 +62,6 @@ var Derived = (function (_super) { Derived.prototype.x = function () { return 1; }; + __names(Derived.prototype, ["x"]); return Derived; }(Base)); diff --git a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js index 8d2010b3346d9..941eea28ed2f1 100644 --- a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js +++ b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js @@ -41,6 +41,20 @@ var r8 = d2[1]; //// [derivedClassIncludesInheritedMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -68,6 +82,7 @@ var Base = (function () { enumerable: true, configurable: true }); + __names(Base.prototype, ["b"]); return Base; }()); var Derived = (function (_super) { diff --git a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js index a7c35a96ac385..e9b0a050bee05 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js +++ b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js @@ -16,6 +16,20 @@ class DerivedClass extends BaseClass { new DerivedClass(); //// [derivedClassOverridesPrivateFunction1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -32,6 +46,7 @@ var BaseClass = (function () { } BaseClass.prototype._init = function () { }; + __names(BaseClass.prototype, ["_init"]); return BaseClass; }()); var DerivedClass = (function (_super) { @@ -41,6 +56,7 @@ var DerivedClass = (function (_super) { } DerivedClass.prototype._init = function () { }; + __names(DerivedClass.prototype, ["_init"]); return DerivedClass; }(BaseClass)); new DerivedClass(); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js index 7369354ffd96d..afe13ab98b389 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js @@ -36,6 +36,20 @@ class Derived extends Base { //// [derivedClassOverridesProtectedMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -65,6 +79,7 @@ var Base = (function () { enumerable: true, configurable: true }); + __names(Base.prototype, ["b"]); return Base; }()); var Derived = (function (_super) { @@ -86,5 +101,6 @@ var Derived = (function (_super) { enumerable: true, configurable: true }); + __names(Derived.prototype, ["b"]); return Derived; }(Base)); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js index 6eef011e0f430..79642066777a5 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js @@ -64,6 +64,20 @@ var r8 = d2[1]; //// [derivedClassOverridesProtectedMembers2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -93,6 +107,7 @@ var Base = (function () { enumerable: true, configurable: true }); + __names(Base.prototype, ["b"]); return Base; }()); // Increase visibility of all protected members to public @@ -115,6 +130,7 @@ var Derived = (function (_super) { enumerable: true, configurable: true }); + __names(Derived.prototype, ["b"]); return Derived; }(Base)); var d = new Derived(y); diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js index c1fcf54d66358..e0d58d6683746 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js @@ -71,6 +71,20 @@ class Derived10 extends Base { } //// [derivedClassOverridesProtectedMembers3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -100,6 +114,7 @@ var Base = (function () { enumerable: true, configurable: true }); + __names(Base.prototype, ["b"]); return Base; }()); // Errors @@ -117,6 +132,7 @@ var Derived2 = (function (_super) { return _super.call(this, a) || this; } Derived2.prototype.b = function (a) { }; + __names(Derived2.prototype, ["b"]); return Derived2; }(Base)); var Derived3 = (function (_super) { diff --git a/tests/baselines/reference/derivedClassOverridesPublicMembers.js b/tests/baselines/reference/derivedClassOverridesPublicMembers.js index af9a013a3d829..234e35958ce5c 100644 --- a/tests/baselines/reference/derivedClassOverridesPublicMembers.js +++ b/tests/baselines/reference/derivedClassOverridesPublicMembers.js @@ -63,6 +63,20 @@ var r8 = d2[1]; //// [derivedClassOverridesPublicMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -92,6 +106,7 @@ var Base = (function () { enumerable: true, configurable: true }); + __names(Base.prototype, ["b"]); return Base; }()); var Derived = (function (_super) { @@ -113,6 +128,7 @@ var Derived = (function (_super) { enumerable: true, configurable: true }); + __names(Derived.prototype, ["b"]); return Derived; }(Base)); var d = new Derived(y); diff --git a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js index 3ca0d13e6713e..fc152c0b7c659 100644 --- a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js +++ b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js @@ -43,6 +43,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -83,6 +97,7 @@ var Derived = (function (_super) { enumerable: true, configurable: true }); + __names(Derived.prototype, ["b"]); Derived.a = _this = _super.call(this) || this; return Derived; }(Base)); diff --git a/tests/baselines/reference/derivedClassTransitivity.js b/tests/baselines/reference/derivedClassTransitivity.js index 83a750c707d12..33aa61db48174 100644 --- a/tests/baselines/reference/derivedClassTransitivity.js +++ b/tests/baselines/reference/derivedClassTransitivity.js @@ -22,6 +22,20 @@ var r2 = e.foo(''); //// [derivedClassTransitivity.js] // subclassing is not transitive when you can remove required parameters and add optional parameters +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -36,6 +50,7 @@ var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -44,6 +59,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.foo = function () { }; // ok to drop parameters + __names(D.prototype, ["foo"]); return D; }(C)); var E = (function (_super) { @@ -52,6 +68,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo = function (x) { }; // ok to add optional parameters + __names(E.prototype, ["foo"]); return E; }(D)); var c; diff --git a/tests/baselines/reference/derivedClassTransitivity2.js b/tests/baselines/reference/derivedClassTransitivity2.js index 7cd7d73d60418..39a9d91866564 100644 --- a/tests/baselines/reference/derivedClassTransitivity2.js +++ b/tests/baselines/reference/derivedClassTransitivity2.js @@ -22,6 +22,20 @@ var r2 = e.foo(1, ''); //// [derivedClassTransitivity2.js] // subclassing is not transitive when you can remove required parameters and add optional parameters +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -36,6 +50,7 @@ var C = (function () { function C() { } C.prototype.foo = function (x, y) { }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -44,6 +59,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.foo = function (x) { }; // ok to drop parameters + __names(D.prototype, ["foo"]); return D; }(C)); var E = (function (_super) { @@ -52,6 +68,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo = function (x, y) { }; // ok to add optional parameters + __names(E.prototype, ["foo"]); return E; }(D)); var c; diff --git a/tests/baselines/reference/derivedClassTransitivity3.js b/tests/baselines/reference/derivedClassTransitivity3.js index 35a080f180044..5b6f72f5eaeda 100644 --- a/tests/baselines/reference/derivedClassTransitivity3.js +++ b/tests/baselines/reference/derivedClassTransitivity3.js @@ -22,6 +22,20 @@ var r2 = e.foo('', 1); //// [derivedClassTransitivity3.js] // subclassing is not transitive when you can remove required parameters and add optional parameters +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -36,6 +50,7 @@ var C = (function () { function C() { } C.prototype.foo = function (x, y) { }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -44,6 +59,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.foo = function (x) { }; // ok to drop parameters + __names(D.prototype, ["foo"]); return D; }(C)); var E = (function (_super) { @@ -52,6 +68,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo = function (x, y) { }; // ok to add optional parameters + __names(E.prototype, ["foo"]); return E; }(D)); var c; diff --git a/tests/baselines/reference/derivedClassTransitivity4.js b/tests/baselines/reference/derivedClassTransitivity4.js index e0f82d55a7c79..68162bb8a6324 100644 --- a/tests/baselines/reference/derivedClassTransitivity4.js +++ b/tests/baselines/reference/derivedClassTransitivity4.js @@ -22,6 +22,20 @@ var r2 = e.foo(''); //// [derivedClassTransitivity4.js] // subclassing is not transitive when you can remove required parameters and add optional parameters on protected members +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -36,6 +50,7 @@ var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -44,6 +59,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.foo = function () { }; // ok to drop parameters + __names(D.prototype, ["foo"]); return D; }(C)); var E = (function (_super) { @@ -52,6 +68,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo = function (x) { }; // ok to add optional parameters + __names(E.prototype, ["foo"]); return E; }(D)); var c; diff --git a/tests/baselines/reference/derivedClassWithAny.js b/tests/baselines/reference/derivedClassWithAny.js index c8ed8ce5cad26..75dbf8c61c682 100644 --- a/tests/baselines/reference/derivedClassWithAny.js +++ b/tests/baselines/reference/derivedClassWithAny.js @@ -60,6 +60,20 @@ var r = c.foo(); // e.foo would return string //// [derivedClassWithAny.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -91,6 +105,7 @@ var C = (function () { C.bar = function () { return 1; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -118,6 +133,7 @@ var D = (function (_super) { D.bar = function () { return null; }; + __names(D.prototype, ["foo"]); return D; }(C)); // if D is a valid class definition than E is now not safe tranisitively through C @@ -144,6 +160,7 @@ var E = (function (_super) { E.bar = function () { return ''; }; + __names(E.prototype, ["foo"]); return E; }(D)); var c; diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js index c92a192a86416..51b82b3f7848a 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js @@ -22,6 +22,20 @@ class Derived extends Base { //// [derivedClassWithPrivateInstanceShadowingProtectedInstance.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -44,6 +58,7 @@ var Base = (function () { enumerable: true, configurable: true }); + __names(Base.prototype, ["fn"]); return Base; }()); // error, not a subtype @@ -61,5 +76,6 @@ var Derived = (function (_super) { enumerable: true, configurable: true }); + __names(Derived.prototype, ["fn"]); return Derived; }(Base)); diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js index 36c6cb56563b4..db82dcdc6da3e 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js @@ -33,6 +33,20 @@ var r6 = Derived.a; // error Derived.a = 2; // error //// [derivedClassWithPrivateInstanceShadowingPublicInstance.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -55,6 +69,7 @@ var Base = (function () { enumerable: true, configurable: true }); + __names(Base.prototype, ["fn"]); return Base; }()); // error, not a subtype @@ -72,6 +87,7 @@ var Derived = (function (_super) { enumerable: true, configurable: true }); + __names(Derived.prototype, ["fn"]); return Derived; }(Base)); var r = Base.x; // ok diff --git a/tests/baselines/reference/derivedClasses.js b/tests/baselines/reference/derivedClasses.js index b23161d00d2c5..1631e9b97066a 100644 --- a/tests/baselines/reference/derivedClasses.js +++ b/tests/baselines/reference/derivedClasses.js @@ -41,6 +41,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Red = (function (_super) { __extends(Red, _super); function Red() { @@ -51,6 +65,7 @@ var Red = (function (_super) { var getHue = function () { return _this.hue(); }; return getHue() + " red"; }; + __names(Red.prototype, ["shade"]); return Red; }(Color)); var Color = (function () { @@ -58,6 +73,7 @@ var Color = (function () { } Color.prototype.shade = function () { return "some shade"; }; Color.prototype.hue = function () { return "some hue"; }; + __names(Color.prototype, ["shade", "hue"]); return Color; }()); var Blue = (function (_super) { @@ -70,6 +86,7 @@ var Blue = (function (_super) { var getHue = function () { return _this.hue(); }; return getHue() + " blue"; }; + __names(Blue.prototype, ["shade"]); return Blue; }(Color)); var r = new Red(); diff --git a/tests/baselines/reference/derivedGenericClassWithAny.js b/tests/baselines/reference/derivedGenericClassWithAny.js index 0cf4c316a44bd..7d352e5a571b3 100644 --- a/tests/baselines/reference/derivedGenericClassWithAny.js +++ b/tests/baselines/reference/derivedGenericClassWithAny.js @@ -43,6 +43,20 @@ c = e; var r = c.foo(); // e.foo would return string //// [derivedGenericClassWithAny.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -64,6 +78,7 @@ var C = (function () { C.prototype.foo = function () { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -91,6 +106,7 @@ var D = (function (_super) { D.bar = function () { return null; }; + __names(D.prototype, ["foo"]); return D; }(C)); // if D is a valid class definition than E is now not safe tranisitively through C @@ -108,6 +124,7 @@ var E = (function (_super) { E.prototype.foo = function () { return ''; // error }; + __names(E.prototype, ["foo"]); return E; }(D)); var c; diff --git a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js index a190b26901c9e..0ef964991ef2a 100644 --- a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js +++ b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js @@ -18,6 +18,20 @@ class Derived extends Base { } //// [derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -34,6 +48,7 @@ var Base = (function () { Base.prototype.foo = function (x) { return null; }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived = (function (_super) { @@ -49,5 +64,6 @@ var Derived = (function (_super) { var r2 = _super.prototype.foo.call(this, { a: 1, b: 2 }); // { a: number } var r3 = this.foo({ a: 1, b: 2 }); // { a: number; b: number; } }; + __names(Derived.prototype, ["foo", "bar"]); return Derived; }(Base)); diff --git a/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js b/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js index f9982a7bfe9ca..7981a31b3665e 100644 --- a/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js +++ b/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js @@ -14,11 +14,26 @@ var y: MyClass = new MyClass(); y.myMethod(); // error //// [derivedTypeCallingBaseImplWithOptionalParams.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var MyClass = (function () { function MyClass() { } MyClass.prototype.myMethod = function (myList) { }; + __names(MyClass.prototype, ["myMethod"]); return MyClass; }()); var x = new MyClass(); diff --git a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js index 28e6429fb7fa0..79213b521ee4e 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js +++ b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js @@ -101,6 +101,20 @@ function e5({x: [a, b, c]}: { x: [number, number, number] }) { } // x has type // A parameter declaration may specify either an identifier or a binding pattern. // The identifiers specified in parameter declarations and binding patterns // in a parameter list must be unique within that parameter list. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // If the declaration includes a type annotation, the parameter is of that type function a1(_a) { var a = _a[0], b = _a[1], c = _a[2][0][0]; @@ -186,6 +200,7 @@ var C2 = (function () { C2.prototype.e0 = function (_a) { var a = _a[0], b = _a[1], c = _a[2]; }; + __names(C2.prototype, ["d3", "d4", "e0"]); return C2; }()); var C3 = (function () { @@ -200,6 +215,7 @@ var C3 = (function () { C3.prototype.e0 = function (_a) { var a = _a[0], b = _a[1], c = _a[2]; }; + __names(C3.prototype, ["d3", "d4", "e0"]); return C3; }()); function d5(_a) { diff --git a/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js b/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js index d903618603586..c30fbffb1114a 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js +++ b/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js @@ -101,6 +101,20 @@ function e5({x: [a, b, c]}: { x: [number, number, number] }) { } // x has type // A parameter declaration may specify either an identifier or a binding pattern. // The identifiers specified in parameter declarations and binding patterns // in a parameter list must be unique within that parameter list. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -202,6 +216,7 @@ var C2 = (function () { C2.prototype.e0 = function (_a) { var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; }; + __names(C2.prototype, ["d3", "d4", "e0"]); return C2; }()); var C3 = (function () { @@ -216,6 +231,7 @@ var C3 = (function () { C3.prototype.e0 = function (_a) { var _b = __read(_a, 3), a = _b[0], b = _b[1], c = _b[2]; }; + __names(C3.prototype, ["d3", "d4", "e0"]); return C3; }()); function d5(_a) { diff --git a/tests/baselines/reference/destructuringParameterDeclaration2.js b/tests/baselines/reference/destructuringParameterDeclaration2.js index 7cc2cb52318c8..5523945b259f4 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration2.js +++ b/tests/baselines/reference/destructuringParameterDeclaration2.js @@ -72,6 +72,20 @@ function e0({x: [number, number, number]}) { } // error, duplicate identifier; // A parameter declaration may specify either an identifier or a binding pattern. // The identifiers specified in parameter declarations and binding patterns // in a parameter list must be unique within that parameter list. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // If the declaration includes a type annotation, the parameter is of that type function a0(_a) { var a = _a[0], b = _a[1], c = _a[2][0][0]; @@ -139,6 +153,7 @@ var C4 = (function () { C4.prototype.e0 = function (_a) { var a = _a[0], b = _a[1], q = _a[2]; }; + __names(C4.prototype, ["d3", "d4", "e0"]); return C4; }()); // Destructuring parameter declarations do not permit type annotations on the individual binding patterns, diff --git a/tests/baselines/reference/destructuringParameterProperties2.js b/tests/baselines/reference/destructuringParameterProperties2.js index 4dd12bdc317a4..31e41d091c932 100644 --- a/tests/baselines/reference/destructuringParameterProperties2.js +++ b/tests/baselines/reference/destructuringParameterProperties2.js @@ -30,6 +30,20 @@ var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()]; //// [destructuringParameterProperties2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1(k, _a) { var a = _a[0], b = _a[1], c = _a[2]; @@ -47,6 +61,7 @@ var C1 = (function () { C1.prototype.getC = function () { return this.c; }; + __names(C1.prototype, ["getA", "getB", "getC"]); return C1; }()); var x = new C1(undefined, [0, undefined, ""]); diff --git a/tests/baselines/reference/destructuringParameterProperties3.js b/tests/baselines/reference/destructuringParameterProperties3.js index d9b0c5aebf6f1..98284a97bc42e 100644 --- a/tests/baselines/reference/destructuringParameterProperties3.js +++ b/tests/baselines/reference/destructuringParameterProperties3.js @@ -33,6 +33,20 @@ var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()]; //// [destructuringParameterProperties3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1(k, _a) { var a = _a[0], b = _a[1], c = _a[2]; @@ -50,6 +64,7 @@ var C1 = (function () { C1.prototype.getC = function () { return this.c; }; + __names(C1.prototype, ["getA", "getB", "getC"]); return C1; }()); var x = new C1(undefined, [0, true, ""]); diff --git a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js index 1b459bbe06203..27926bb2b9dc0 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js +++ b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js @@ -9,6 +9,20 @@ class TestFile { } //// [detachedCommentAtStartOfFunctionBody1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TestFile = (function () { function TestFile() { } @@ -19,5 +33,6 @@ var TestFile = (function () { /// return function () { return message + _this.name; }; }; + __names(TestFile.prototype, ["foo"]); return TestFile; }()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js index 8b33b737bebb2..93358d1abfe0e 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js +++ b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js @@ -10,6 +10,20 @@ class TestFile { } //// [detachedCommentAtStartOfFunctionBody2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TestFile = (function () { function TestFile() { } @@ -20,5 +34,6 @@ var TestFile = (function () { var _this = this; return function () { return message + _this.name; }; }; + __names(TestFile.prototype, ["foo"]); return TestFile; }()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js index 495ac29f26980..2a4b23bd30239 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js @@ -11,6 +11,20 @@ class TestFile { } //// [detachedCommentAtStartOfLambdaFunction1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TestFile = (function () { function TestFile() { } @@ -27,5 +41,6 @@ var TestFile = (function () { return message + _this.name; }; }; + __names(TestFile.prototype, ["foo"]); return TestFile; }()); diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js index e6ced9a8a420c..034674da0a97a 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js @@ -12,6 +12,20 @@ class TestFile { } //// [detachedCommentAtStartOfLambdaFunction2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TestFile = (function () { function TestFile() { } @@ -28,5 +42,6 @@ var TestFile = (function () { return message + _this.name; }; }; + __names(TestFile.prototype, ["foo"]); return TestFile; }()); diff --git a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js index a18eac74cdbcf..e16d8cc16240a 100644 --- a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js +++ b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js @@ -11,10 +11,25 @@ var x = 10; declare var OData: any; //// [file1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x, y) { }; + __names(C.prototype, ["foo"]); return C; }()); var x = 10; diff --git a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js index a93a9911c4de9..ff43f4a7ccd00 100644 --- a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js +++ b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js @@ -9,9 +9,24 @@ class C { declare var OData: any; //// [doNotEmitPinnedCommentOnNotEmittedNodets.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x, y) { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/dottedSymbolResolution1.js b/tests/baselines/reference/dottedSymbolResolution1.js index 956968761aec0..87a4bfe8fc7c7 100644 --- a/tests/baselines/reference/dottedSymbolResolution1.js +++ b/tests/baselines/reference/dottedSymbolResolution1.js @@ -26,10 +26,25 @@ function _setBarAndText(): void { } //// [dottedSymbolResolution1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); function each(collection, callback) { diff --git a/tests/baselines/reference/downlevelLetConst16.js b/tests/baselines/reference/downlevelLetConst16.js index 944bb192e906c..56f230b67e6ae 100644 --- a/tests/baselines/reference/downlevelLetConst16.js +++ b/tests/baselines/reference/downlevelLetConst16.js @@ -229,6 +229,20 @@ function foo12() { //// [downlevelLetConst16.js] 'use strict'; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var x = 10; var y; var z; @@ -276,6 +290,7 @@ var A = (function () { } use(x); }; + __names(A.prototype, ["m1", "m2"]); return A; }()); var B = (function () { @@ -300,6 +315,7 @@ var B = (function () { } use(x); }; + __names(B.prototype, ["m1", "m2"]); return B; }()); function bar1() { diff --git a/tests/baselines/reference/duplicateClassElements.js b/tests/baselines/reference/duplicateClassElements.js index ed47c532a76a0..58727cb755053 100644 --- a/tests/baselines/reference/duplicateClassElements.js +++ b/tests/baselines/reference/duplicateClassElements.js @@ -45,6 +45,20 @@ class a { } //// [duplicateClassElements.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a = (function () { function a() { } @@ -101,5 +115,6 @@ var a = (function () { }); a.prototype.z2 = function () { }; + __names(a.prototype, ["b", "b", "z", "z2"]); return a; }()); diff --git a/tests/baselines/reference/duplicateLocalVariable1.js b/tests/baselines/reference/duplicateLocalVariable1.js index 61e8dcd02f872..f59969ed30f66 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.js +++ b/tests/baselines/reference/duplicateLocalVariable1.js @@ -346,6 +346,20 @@ export var tests: TestRunner = (function () { //// [duplicateLocalVariable1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; / /; commonjs; @@ -406,6 +420,7 @@ var TestRunner = (function () { else { } }; + __names(TestRunner.prototype, ["addTest", "run"]); return TestRunner; }()); exports.TestRunner = TestRunner; diff --git a/tests/baselines/reference/duplicateLocalVariable2.js b/tests/baselines/reference/duplicateLocalVariable2.js index 2962e544b9b94..c5155b033a6e7 100644 --- a/tests/baselines/reference/duplicateLocalVariable2.js +++ b/tests/baselines/reference/duplicateLocalVariable2.js @@ -36,6 +36,20 @@ export var tests: TestRunner = (function () { })(); //// [duplicateLocalVariable2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -56,6 +70,7 @@ define(["require", "exports"], function (require, exports) { }; TestRunner.prototype.addTest = function (test) { }; + __names(TestRunner.prototype, ["addTest"]); return TestRunner; }()); exports.TestRunner = TestRunner; diff --git a/tests/baselines/reference/duplicatePropertyNames.js b/tests/baselines/reference/duplicatePropertyNames.js index d4dfe612fc54a..db3ce57366b5a 100644 --- a/tests/baselines/reference/duplicatePropertyNames.js +++ b/tests/baselines/reference/duplicatePropertyNames.js @@ -50,6 +50,20 @@ var b = { //// [duplicatePropertyNames.js] // duplicate property names are an error in all types +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.baz = function () { }; @@ -57,6 +71,7 @@ var C = (function () { } C.prototype.bar = function (x) { }; C.prototype.bar = function (x) { }; + __names(C.prototype, ["bar", "bar"]); return C; }()); var a; diff --git a/tests/baselines/reference/duplicateTypeParameters2.js b/tests/baselines/reference/duplicateTypeParameters2.js index 63910fa175830..50ec7c7c72f15 100644 --- a/tests/baselines/reference/duplicateTypeParameters2.js +++ b/tests/baselines/reference/duplicateTypeParameters2.js @@ -5,15 +5,31 @@ class B { public bar() { } } interface I {} //// [duplicateTypeParameters2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.bar = function () { }; + __names(B.prototype, ["bar"]); return B; }()); diff --git a/tests/baselines/reference/duplicateVariablesByScope.js b/tests/baselines/reference/duplicateVariablesByScope.js index ed6b7834a1d25..7e21154755551 100644 --- a/tests/baselines/reference/duplicateVariablesByScope.js +++ b/tests/baselines/reference/duplicateVariablesByScope.js @@ -33,6 +33,20 @@ class C { //// [duplicateVariablesByScope.js] // duplicate local variables are only reported at global scope +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { for (var j = 0; j < 10; j++) { @@ -61,5 +75,6 @@ var C = (function () { var x = 2; } }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js index 5ee0724634785..53eff83d7448b 100644 --- a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js @@ -6,11 +6,26 @@ class C { } //// [emitArrowFunctionWhenUsingArguments12.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.f = function (arguments) { var a = function () { return arguments; }; }; + __names(C.prototype, ["f"]); return C; }()); diff --git a/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js b/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js index 890b9d4c9b843..9bac87c157d21 100644 --- a/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js +++ b/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js @@ -11,6 +11,20 @@ class B { } //// [emitCapturingThisInTupleDestructuring2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var array1 = [1, 2]; var B = (function () { function B() { @@ -19,5 +33,6 @@ var B = (function () { var _this = this; (function () { return _this.test = array1[0], _this.test1 = array1[1], _this.test2 = array1[2], array1; }); // even though there is a compiler error, we should still emit lexical capture for "this" }; + __names(B.prototype, ["method"]); return B; }()); diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js index ab64fe003be76..4c937f4299377 100644 --- a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js +++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js @@ -32,6 +32,20 @@ test.tags(); //// [emitClassExpressionInDeclarationFile.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -48,6 +62,7 @@ exports.simpleExample = (function () { } class_1.getTags = function () { }; class_1.prototype.tags = function () { }; + __names(class_1.prototype, ["tags"]); return class_1; }()); exports.circularReference = (function () { @@ -55,6 +70,7 @@ exports.circularReference = (function () { } C.getTags = function (c) { return c; }; C.prototype.tags = function (c) { return c; }; + __names(C.prototype, ["tags"]); return C; }()); // repro from #15066 @@ -62,6 +78,7 @@ var FooItem = (function () { function FooItem() { } FooItem.prototype.foo = function () { }; + __names(FooItem.prototype, ["foo"]); return FooItem; }()); exports.FooItem = FooItem; @@ -73,6 +90,7 @@ function WithTags(Base) { } class_2.getTags = function () { }; class_2.prototype.tags = function () { }; + __names(class_2.prototype, ["tags"]); return class_2; }(Base)); } diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js index e3a0aa4cb9949..e9ee74a63e62e 100644 --- a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js +++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js @@ -31,6 +31,20 @@ test.tags(); //// [emitClassExpressionInDeclarationFile2.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -48,6 +62,7 @@ exports.noPrivates = (_a = (function () { } class_1.getTags = function () { }; class_1.prototype.tags = function () { }; + __names(class_1.prototype, ["tags"]); return class_1; }()), _a.ps = -1, @@ -58,6 +73,7 @@ var FooItem = (function () { this.property = "capitalism"; } FooItem.prototype.foo = function () { }; + __names(FooItem.prototype, ["foo"]); return FooItem; }()); exports.FooItem = FooItem; @@ -69,6 +85,7 @@ function WithTags(Base) { } class_2.getTags = function () { }; class_2.prototype.tags = function () { }; + __names(class_2.prototype, ["tags"]); return class_2; }(Base)); } diff --git a/tests/baselines/reference/emitDecoratorMetadata_object.js b/tests/baselines/reference/emitDecoratorMetadata_object.js index ff4a65710a792..7a3552f86ff68 100644 --- a/tests/baselines/reference/emitDecoratorMetadata_object.js +++ b/tests/baselines/reference/emitDecoratorMetadata_object.js @@ -11,6 +11,20 @@ class A { //// [emitDecoratorMetadata_object.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -24,6 +38,7 @@ var A = (function () { function A(hi) { } A.prototype.method = function (there) { }; + __names(A.prototype, ["method"]); __decorate([ MyMethodDecorator, __metadata("design:type", Function), diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs.js b/tests/baselines/reference/emitDecoratorMetadata_restArgs.js index 3f1ffd54bce75..4c2aebbd23f64 100644 --- a/tests/baselines/reference/emitDecoratorMetadata_restArgs.js +++ b/tests/baselines/reference/emitDecoratorMetadata_restArgs.js @@ -18,6 +18,20 @@ class B { //// [emitDecoratorMetadata_restArgs.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -40,6 +54,7 @@ var A = (function () { args[_i] = arguments[_i]; } }; + __names(A.prototype, ["method"]); __decorate([ MyMethodDecorator, __metadata("design:type", Function), @@ -65,6 +80,7 @@ var B = (function () { args[_i] = arguments[_i]; } }; + __names(B.prototype, ["method"]); __decorate([ MyMethodDecorator, __metadata("design:type", Function), diff --git a/tests/baselines/reference/emitDefaultParametersMethod.js b/tests/baselines/reference/emitDefaultParametersMethod.js index 1048926a187b0..58a34d9509228 100644 --- a/tests/baselines/reference/emitDefaultParametersMethod.js +++ b/tests/baselines/reference/emitDefaultParametersMethod.js @@ -18,6 +18,20 @@ class E { //// [emitDefaultParametersMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(t, z, x, y) { if (y === void 0) { y = "hello"; } @@ -42,6 +56,7 @@ var C = (function () { rest[_i - 1] = arguments[_i]; } }; + __names(C.prototype, ["foo", "foo1", "bar", "boo"]); return C; }()); var D = (function () { diff --git a/tests/baselines/reference/emitMemberAccessExpression.js b/tests/baselines/reference/emitMemberAccessExpression.js index f242f0903c419..d3a05ce0afb3b 100644 --- a/tests/baselines/reference/emitMemberAccessExpression.js +++ b/tests/baselines/reference/emitMemberAccessExpression.js @@ -27,6 +27,20 @@ module Microsoft.PeopleAtWork.Model { //// [emitMemberAccessExpression_file2.js] /// "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Microsoft; (function (Microsoft) { var PeopleAtWork; @@ -39,6 +53,7 @@ var Microsoft; _Person.prototype.populate = function (raw) { var res = Model.KnockoutExtentions; }; + __names(_Person.prototype, ["populate"]); return _Person; }()); Model._Person = _Person; diff --git a/tests/baselines/reference/emitRestParametersMethod.js b/tests/baselines/reference/emitRestParametersMethod.js index fed2138f36be1..9cbffe48f0a26 100644 --- a/tests/baselines/reference/emitRestParametersMethod.js +++ b/tests/baselines/reference/emitRestParametersMethod.js @@ -14,6 +14,20 @@ class D { } //// [emitRestParametersMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(name) { var rest = []; @@ -33,6 +47,7 @@ var C = (function () { rest[_i - 1] = arguments[_i]; } }; + __names(C.prototype, ["bar", "foo"]); return C; }()); var D = (function () { @@ -54,5 +69,6 @@ var D = (function () { rest[_i - 1] = arguments[_i]; } }; + __names(D.prototype, ["bar", "foo"]); return D; }()); diff --git a/tests/baselines/reference/emitThisInSuperMethodCall.js b/tests/baselines/reference/emitThisInSuperMethodCall.js index 2d800d562c292..9a6984e704ac5 100644 --- a/tests/baselines/reference/emitThisInSuperMethodCall.js +++ b/tests/baselines/reference/emitThisInSuperMethodCall.js @@ -28,6 +28,20 @@ class RegisteredUser extends User { //// [emitThisInSuperMethodCall.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -43,6 +57,7 @@ var User = (function () { } User.prototype.sayHello = function () { }; + __names(User.prototype, ["sayHello"]); return User; }()); var RegisteredUser = (function (_super) { @@ -70,5 +85,6 @@ var RegisteredUser = (function (_super) { _super.sayHello.call(this); } }; + __names(RegisteredUser.prototype, ["f", "g", "h"]); return RegisteredUser; }(User)); diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js index cfd7c9725e4e8..81b4109059d06 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js @@ -61,6 +61,20 @@ class C9 extends B9 { //// [C1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -110,9 +124,24 @@ var C1 = (function () { }); }); }; + __names(C1.prototype, ["f"]); return C1; }()); //// [C2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -168,9 +197,24 @@ var C2 = (function () { }); }); }; + __names(C2.prototype, ["f"]); return C2; }()); //// [C3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -226,9 +270,24 @@ var C3 = (function () { }); }); }; + __names(C3.prototype, ["f"]); return C3; }()); //// [C4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -305,9 +364,24 @@ var C4 = (function () { }); }); }; + __names(C4.prototype, ["f"]); return C4; }()); //// [C5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -391,9 +465,24 @@ var C5 = (function () { }); }); }; + __names(C5.prototype, ["f"]); return C5; }()); //// [C6.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -449,9 +538,24 @@ var C6 = (function () { }); }); }; + __names(C6.prototype, ["f"]); return C6; }()); //// [C7.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -501,9 +605,24 @@ var C7 = (function () { }); }); }; + __names(C7.prototype, ["f"]); return C7; }()); //// [C8.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -556,9 +675,24 @@ var C8 = (function () { }); }); }; + __names(C8.prototype, ["g", "f"]); return C8; }()); //// [C9.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -612,6 +746,7 @@ var B9 = (function () { function B9() { } B9.prototype.g = function () { }; + __names(B9.prototype, ["g"]); return B9; }()); var C9 = (function (_super) { @@ -627,5 +762,6 @@ var C9 = (function (_super) { }); }); }; + __names(C9.prototype, ["f"]); return C9; }(B9)); diff --git a/tests/baselines/reference/errorRecoveryInClassDeclaration.js b/tests/baselines/reference/errorRecoveryInClassDeclaration.js index cfe274c34bf30..1c9a761269e87 100644 --- a/tests/baselines/reference/errorRecoveryInClassDeclaration.js +++ b/tests/baselines/reference/errorRecoveryInClassDeclaration.js @@ -8,11 +8,26 @@ class C { } //// [errorRecoveryInClassDeclaration.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function () { var v = foo(public, blaz(), {}); }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/errorSuperCalls.js b/tests/baselines/reference/errorSuperCalls.js index db4f0ac1798ff..e4e192ff77243 100644 --- a/tests/baselines/reference/errorSuperCalls.js +++ b/tests/baselines/reference/errorSuperCalls.js @@ -75,6 +75,20 @@ class OtherDerived extends OtherBase { //// [errorSuperCalls.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -124,6 +138,7 @@ var NoBase = (function () { enumerable: true, configurable: true }); + __names(NoBase.prototype, ["fn"]); //super call in static class member initializer with no base type NoBase.k = _this = _super.call(this) || this; return NoBase; @@ -173,5 +188,6 @@ var OtherDerived = (function (_super) { enumerable: true, configurable: true }); + __names(OtherDerived.prototype, ["fn"]); return OtherDerived; }(OtherBase)); diff --git a/tests/baselines/reference/errorSuperPropertyAccess.js b/tests/baselines/reference/errorSuperPropertyAccess.js index 3163007e742bd..92cc81eed0baa 100644 --- a/tests/baselines/reference/errorSuperPropertyAccess.js +++ b/tests/baselines/reference/errorSuperPropertyAccess.js @@ -129,6 +129,20 @@ var obj = { n: super.wat, p: super.foo() }; //// [errorSuperPropertyAccess.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -169,6 +183,7 @@ var NoBase = (function () { enumerable: true, configurable: true }); + __names(NoBase.prototype, ["fn"]); return NoBase; }()); var SomeBase = (function () { @@ -180,6 +195,7 @@ var SomeBase = (function () { SomeBase.prototype.publicFunc = function () { }; SomeBase.privateStaticFunc = function () { }; SomeBase.publicStaticFunc = function () { }; + __names(SomeBase.prototype, ["privateFunc", "publicFunc"]); SomeBase.privateStaticMember = 0; SomeBase.publicStaticMember = 0; return SomeBase; @@ -217,6 +233,7 @@ var SomeDerived1 = (function (_super) { test: function () { return _super.publicFunc.call(this); } }; }; + __names(SomeDerived1.prototype, ["fn", "fn2"]); return SomeDerived1; }(SomeBase)); //super.privateProperty in constructor of derived class @@ -243,6 +260,7 @@ var SomeDerived2 = (function (_super) { enumerable: true, configurable: true }); + __names(SomeDerived2.prototype, ["fn"]); return SomeDerived2; }(SomeBase)); //super.publicStaticMemberNotFunction in static member function of derived class diff --git a/tests/baselines/reference/errorsInGenericTypeReference.js b/tests/baselines/reference/errorsInGenericTypeReference.js index ad999dcb913e4..a4a3e3d8f3c96 100644 --- a/tests/baselines/reference/errorsInGenericTypeReference.js +++ b/tests/baselines/reference/errorsInGenericTypeReference.js @@ -72,6 +72,20 @@ interface testInterface2 { //// [errorsInGenericTypeReference.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -92,6 +106,7 @@ var testClass1 = (function () { function testClass1() { } testClass1.prototype.method = function () { }; + __names(testClass1.prototype, ["method"]); return testClass1; }()); var tc1 = new testClass1(); @@ -115,6 +130,7 @@ var testClass3 = (function () { enumerable: true, configurable: true }); + __names(testClass3.prototype, ["testMethod1"]); return testClass3; }()); // in function return type annotation @@ -133,6 +149,7 @@ var testClass6 = (function () { function testClass6() { } testClass6.prototype.method = function () { }; // error: could not find symbol V + __names(testClass6.prototype, ["method"]); return testClass6; }()); // in extends clause diff --git a/tests/baselines/reference/es3-amd.js b/tests/baselines/reference/es3-amd.js index caa9552c3f0ad..4c68ada569bba 100644 --- a/tests/baselines/reference/es3-amd.js +++ b/tests/baselines/reference/es3-amd.js @@ -13,11 +13,26 @@ class A } //// [es3-amd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); diff --git a/tests/baselines/reference/es3-declaration-amd.js b/tests/baselines/reference/es3-declaration-amd.js index 0c447ff25b7d3..99814c9e3f9fd 100644 --- a/tests/baselines/reference/es3-declaration-amd.js +++ b/tests/baselines/reference/es3-declaration-amd.js @@ -13,12 +13,27 @@ class A } //// [es3-declaration-amd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); diff --git a/tests/baselines/reference/es3-sourcemap-amd.js b/tests/baselines/reference/es3-sourcemap-amd.js index d135a0cad7fff..ecf68f3c7e1ce 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.js +++ b/tests/baselines/reference/es3-sourcemap-amd.js @@ -13,12 +13,27 @@ class A } //// [es3-sourcemap-amd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); //# sourceMappingURL=es3-sourcemap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es3-sourcemap-amd.js.map b/tests/baselines/reference/es3-sourcemap-amd.js.map index ea5ed85a88ea8..4d62437527201 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.js.map +++ b/tests/baselines/reference/es3-sourcemap-amd.js.map @@ -1,2 +1,2 @@ //// [es3-sourcemap-amd.js.map] -{"version":3,"file":"es3-sourcemap-amd.js","sourceRoot":"","sources":["es3-sourcemap-amd.ts"],"names":[],"mappings":"AAAA;IAEI;IAGA,CAAC;IAEM,aAAC,GAAR;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IACL,QAAC;AAAD,CAAC,AAXD,IAWC"} \ No newline at end of file +{"version":3,"file":"es3-sourcemap-amd.js","sourceRoot":"","sources":["es3-sourcemap-amd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;IAEI;IAGA,CAAC;IAEM,aAAC,GAAR;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;;IACL,QAAC;AAAD,CAAC,AAXD,IAWC"} \ No newline at end of file diff --git a/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt b/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt index d3b9d665ade40..d7f6ca493ac07 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt +++ b/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt @@ -8,11 +8,25 @@ sources: es3-sourcemap-amd.ts emittedFile:tests/cases/compiler/es3-sourcemap-amd.js sourceFile:es3-sourcemap-amd.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var A = (function () { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) --- >>> function A() { 1->^^^^ @@ -20,7 +34,7 @@ sourceFile:es3-sourcemap-amd.ts 1->class A >{ > -1->Emitted(2, 5) Source(3, 5) + SourceIndex(0) +1->Emitted(16, 5) Source(3, 5) + SourceIndex(0) --- >>> } 1->^^^^ @@ -31,8 +45,8 @@ sourceFile:es3-sourcemap-amd.ts > > 2 > } -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 6) Source(6, 6) + SourceIndex(0) +1->Emitted(17, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(17, 6) Source(6, 6) + SourceIndex(0) --- >>> A.prototype.B = function () { 1->^^^^ @@ -43,9 +57,9 @@ sourceFile:es3-sourcemap-amd.ts > public 2 > B 3 > -1->Emitted(4, 5) Source(8, 12) + SourceIndex(0) -2 >Emitted(4, 18) Source(8, 13) + SourceIndex(0) -3 >Emitted(4, 21) Source(8, 5) + SourceIndex(0) +1->Emitted(18, 5) Source(8, 12) + SourceIndex(0) +2 >Emitted(18, 18) Source(8, 13) + SourceIndex(0) +3 >Emitted(18, 21) Source(8, 5) + SourceIndex(0) --- >>> return 42; 1 >^^^^^^^^ @@ -60,30 +74,31 @@ sourceFile:es3-sourcemap-amd.ts 3 > 4 > 42 5 > ; -1 >Emitted(5, 9) Source(10, 9) + SourceIndex(0) -2 >Emitted(5, 15) Source(10, 15) + SourceIndex(0) -3 >Emitted(5, 16) Source(10, 16) + SourceIndex(0) -4 >Emitted(5, 18) Source(10, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(10, 19) + SourceIndex(0) +1 >Emitted(19, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(19, 15) Source(10, 15) + SourceIndex(0) +3 >Emitted(19, 16) Source(10, 16) + SourceIndex(0) +4 >Emitted(19, 18) Source(10, 18) + SourceIndex(0) +5 >Emitted(19, 19) Source(10, 19) + SourceIndex(0) --- >>> }; 1 >^^^^ 2 > ^ -3 > ^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(6, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(11, 6) + SourceIndex(0) +1 >Emitted(20, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(20, 6) Source(11, 6) + SourceIndex(0) --- +>>> __names(A.prototype, ["B"]); >>> return A; 1->^^^^ 2 > ^^^^^^^^ 1-> > 2 > } -1->Emitted(7, 5) Source(12, 1) + SourceIndex(0) -2 >Emitted(7, 13) Source(12, 2) + SourceIndex(0) +1->Emitted(22, 5) Source(12, 1) + SourceIndex(0) +2 >Emitted(22, 13) Source(12, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -106,9 +121,9 @@ sourceFile:es3-sourcemap-amd.ts > return 42; > } > } -1 >Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(8, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(8, 6) Source(12, 2) + SourceIndex(0) +1 >Emitted(23, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(23, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(23, 6) Source(12, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=es3-sourcemap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es5-amd.js b/tests/baselines/reference/es5-amd.js index 23314c78e1fed..2620ba51f9eb6 100644 --- a/tests/baselines/reference/es5-amd.js +++ b/tests/baselines/reference/es5-amd.js @@ -13,11 +13,26 @@ class A } //// [es5-amd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); diff --git a/tests/baselines/reference/es5-commonjs.js b/tests/baselines/reference/es5-commonjs.js index e0f56796ef1da..f0024afbc9df7 100644 --- a/tests/baselines/reference/es5-commonjs.js +++ b/tests/baselines/reference/es5-commonjs.js @@ -15,6 +15,20 @@ export default class A //// [es5-commonjs.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var A = (function () { function A() { @@ -22,6 +36,7 @@ var A = (function () { A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports.default = A; diff --git a/tests/baselines/reference/es5-commonjs4.js b/tests/baselines/reference/es5-commonjs4.js index 23ca56e442dc9..8615128f270b6 100644 --- a/tests/baselines/reference/es5-commonjs4.js +++ b/tests/baselines/reference/es5-commonjs4.js @@ -16,6 +16,20 @@ export var __esModule = 1; //// [es5-commonjs4.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var A = (function () { function A() { @@ -23,6 +37,7 @@ var A = (function () { A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports.default = A; diff --git a/tests/baselines/reference/es5-declaration-amd.js b/tests/baselines/reference/es5-declaration-amd.js index 618553ec0cf8d..8d08794b7cc87 100644 --- a/tests/baselines/reference/es5-declaration-amd.js +++ b/tests/baselines/reference/es5-declaration-amd.js @@ -13,12 +13,27 @@ class A } //// [es5-declaration-amd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); diff --git a/tests/baselines/reference/es5-souremap-amd.js b/tests/baselines/reference/es5-souremap-amd.js index a4ac83a37af57..988a5329aca38 100644 --- a/tests/baselines/reference/es5-souremap-amd.js +++ b/tests/baselines/reference/es5-souremap-amd.js @@ -13,12 +13,27 @@ class A } //// [es5-souremap-amd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); //# sourceMappingURL=es5-souremap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd.js.map b/tests/baselines/reference/es5-souremap-amd.js.map index 111d19c26fcf6..de22612961d06 100644 --- a/tests/baselines/reference/es5-souremap-amd.js.map +++ b/tests/baselines/reference/es5-souremap-amd.js.map @@ -1,2 +1,2 @@ //// [es5-souremap-amd.js.map] -{"version":3,"file":"es5-souremap-amd.js","sourceRoot":"","sources":["es5-souremap-amd.ts"],"names":[],"mappings":"AAAA;IAEI;IAGA,CAAC;IAEM,aAAC,GAAR;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IACL,QAAC;AAAD,CAAC,AAXD,IAWC"} \ No newline at end of file +{"version":3,"file":"es5-souremap-amd.js","sourceRoot":"","sources":["es5-souremap-amd.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;IAEI;IAGA,CAAC;IAEM,aAAC,GAAR;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;;IACL,QAAC;AAAD,CAAC,AAXD,IAWC"} \ No newline at end of file diff --git a/tests/baselines/reference/es5-souremap-amd.sourcemap.txt b/tests/baselines/reference/es5-souremap-amd.sourcemap.txt index b57cfc577154b..3166b74211c74 100644 --- a/tests/baselines/reference/es5-souremap-amd.sourcemap.txt +++ b/tests/baselines/reference/es5-souremap-amd.sourcemap.txt @@ -8,11 +8,25 @@ sources: es5-souremap-amd.ts emittedFile:tests/cases/compiler/es5-souremap-amd.js sourceFile:es5-souremap-amd.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var A = (function () { 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) --- >>> function A() { 1->^^^^ @@ -20,7 +34,7 @@ sourceFile:es5-souremap-amd.ts 1->class A >{ > -1->Emitted(2, 5) Source(3, 5) + SourceIndex(0) +1->Emitted(16, 5) Source(3, 5) + SourceIndex(0) --- >>> } 1->^^^^ @@ -31,8 +45,8 @@ sourceFile:es5-souremap-amd.ts > > 2 > } -1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(3, 6) Source(6, 6) + SourceIndex(0) +1->Emitted(17, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(17, 6) Source(6, 6) + SourceIndex(0) --- >>> A.prototype.B = function () { 1->^^^^ @@ -43,9 +57,9 @@ sourceFile:es5-souremap-amd.ts > public 2 > B 3 > -1->Emitted(4, 5) Source(8, 12) + SourceIndex(0) -2 >Emitted(4, 18) Source(8, 13) + SourceIndex(0) -3 >Emitted(4, 21) Source(8, 5) + SourceIndex(0) +1->Emitted(18, 5) Source(8, 12) + SourceIndex(0) +2 >Emitted(18, 18) Source(8, 13) + SourceIndex(0) +3 >Emitted(18, 21) Source(8, 5) + SourceIndex(0) --- >>> return 42; 1 >^^^^^^^^ @@ -60,30 +74,31 @@ sourceFile:es5-souremap-amd.ts 3 > 4 > 42 5 > ; -1 >Emitted(5, 9) Source(10, 9) + SourceIndex(0) -2 >Emitted(5, 15) Source(10, 15) + SourceIndex(0) -3 >Emitted(5, 16) Source(10, 16) + SourceIndex(0) -4 >Emitted(5, 18) Source(10, 18) + SourceIndex(0) -5 >Emitted(5, 19) Source(10, 19) + SourceIndex(0) +1 >Emitted(19, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(19, 15) Source(10, 15) + SourceIndex(0) +3 >Emitted(19, 16) Source(10, 16) + SourceIndex(0) +4 >Emitted(19, 18) Source(10, 18) + SourceIndex(0) +5 >Emitted(19, 19) Source(10, 19) + SourceIndex(0) --- >>> }; 1 >^^^^ 2 > ^ -3 > ^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(6, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(6, 6) Source(11, 6) + SourceIndex(0) +1 >Emitted(20, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(20, 6) Source(11, 6) + SourceIndex(0) --- +>>> __names(A.prototype, ["B"]); >>> return A; 1->^^^^ 2 > ^^^^^^^^ 1-> > 2 > } -1->Emitted(7, 5) Source(12, 1) + SourceIndex(0) -2 >Emitted(7, 13) Source(12, 2) + SourceIndex(0) +1->Emitted(22, 5) Source(12, 1) + SourceIndex(0) +2 >Emitted(22, 13) Source(12, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -106,9 +121,9 @@ sourceFile:es5-souremap-amd.ts > return 42; > } > } -1 >Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(8, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(8, 6) Source(12, 2) + SourceIndex(0) +1 >Emitted(23, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(23, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(23, 6) Source(12, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=es5-souremap-amd.js.map \ No newline at end of file diff --git a/tests/baselines/reference/es5-system.js b/tests/baselines/reference/es5-system.js index 4a62c429840d4..8253b2391f0f9 100644 --- a/tests/baselines/reference/es5-system.js +++ b/tests/baselines/reference/es5-system.js @@ -16,6 +16,20 @@ export default class A //// [es5-system.js] System.register([], function (exports_1, context_1) { "use strict"; + var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; + })(); var __moduleName = context_1 && context_1.id; var A; return { @@ -27,6 +41,7 @@ System.register([], function (exports_1, context_1) { A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports_1("default", A); diff --git a/tests/baselines/reference/es5-umd.js b/tests/baselines/reference/es5-umd.js index 9ade8c259c02d..4ab99de13c111 100644 --- a/tests/baselines/reference/es5-umd.js +++ b/tests/baselines/reference/es5-umd.js @@ -14,11 +14,26 @@ class A //// [es5-umd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); diff --git a/tests/baselines/reference/es5-umd2.js b/tests/baselines/reference/es5-umd2.js index 335c0efa925ee..491ff70fc3516 100644 --- a/tests/baselines/reference/es5-umd2.js +++ b/tests/baselines/reference/es5-umd2.js @@ -14,6 +14,20 @@ export class A //// [es5-umd2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); @@ -31,6 +45,7 @@ export class A A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports.A = A; diff --git a/tests/baselines/reference/es5-umd3.js b/tests/baselines/reference/es5-umd3.js index 48f9971bdd13f..23d83f18acb7d 100644 --- a/tests/baselines/reference/es5-umd3.js +++ b/tests/baselines/reference/es5-umd3.js @@ -14,6 +14,20 @@ export default class A //// [es5-umd3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); @@ -31,6 +45,7 @@ export default class A A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports.default = A; diff --git a/tests/baselines/reference/es5-umd4.js b/tests/baselines/reference/es5-umd4.js index 71fdcc6f9b9b6..1872dbc3b1ebd 100644 --- a/tests/baselines/reference/es5-umd4.js +++ b/tests/baselines/reference/es5-umd4.js @@ -16,6 +16,20 @@ export = A; //// [es5-umd4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); @@ -32,6 +46,7 @@ export = A; A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); return A; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration.js index 39fc9336e911a..ff3b48174024f 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration.js @@ -6,11 +6,26 @@ export default class C { //// [es5ExportDefaultClassDeclaration.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); return C; }()); exports.default = C; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js index fae48029e6b53..0ad182f670c7a 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js @@ -6,11 +6,26 @@ export default class { //// [es5ExportDefaultClassDeclaration2.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var default_1 = (function () { function default_1() { } default_1.prototype.method = function () { }; + __names(default_1.prototype, ["method"]); return default_1; }()); exports.default = default_1; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js index 5c256022032fe..3799302bc1a9d 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js @@ -15,6 +15,20 @@ var t: typeof C = C; //// [es5ExportDefaultClassDeclaration3.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var before = new C(); var C = (function () { @@ -23,6 +37,7 @@ var C = (function () { C.prototype.method = function () { return new C(); }; + __names(C.prototype, ["method"]); return C; }()); exports.default = C; diff --git a/tests/baselines/reference/es5ExportEqualsDts.js b/tests/baselines/reference/es5ExportEqualsDts.js index b8d79efef94ef..7160e9849ae03 100644 --- a/tests/baselines/reference/es5ExportEqualsDts.js +++ b/tests/baselines/reference/es5ExportEqualsDts.js @@ -14,6 +14,20 @@ export = A //// [es5ExportEqualsDts.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -21,6 +35,7 @@ var A = (function () { var aVal; return aVal; }; + __names(A.prototype, ["foo"]); return A; }()); module.exports = A; diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.js b/tests/baselines/reference/es5ModuleWithModuleGenAmd.js index dc55545617d1f..a8e01c9889484 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenAmd.js +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd.js @@ -12,6 +12,20 @@ export class A } //// [es5ModuleWithModuleGenAmd.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -21,6 +35,7 @@ define(["require", "exports"], function (require, exports) { A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports.A = A; diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js index 93056203f9b4e..c404174ff47e7 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js +++ b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js @@ -13,6 +13,20 @@ export class A //// [es5ModuleWithModuleGenCommonjs.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var A = (function () { function A() { @@ -20,6 +34,7 @@ var A = (function () { A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports.A = A; diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js index 89d11045ddac2..c5a273bb1a626 100644 --- a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js +++ b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js @@ -13,6 +13,20 @@ export class A //// [es5ModuleWithoutModuleGenTarget.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var A = (function () { function A() { @@ -20,6 +34,7 @@ var A = (function () { A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); exports.A = A; diff --git a/tests/baselines/reference/es5andes6module.js b/tests/baselines/reference/es5andes6module.js index bfa260eaa3ca4..8cc74caacc73b 100644 --- a/tests/baselines/reference/es5andes6module.js +++ b/tests/baselines/reference/es5andes6module.js @@ -14,12 +14,27 @@ export default class A //// [es5andes6module.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.B = function () { return 42; }; + __names(A.prototype, ["B"]); return A; }()); export default A; diff --git a/tests/baselines/reference/es6ClassTest.js b/tests/baselines/reference/es6ClassTest.js index d727ab49a341a..a2845ab2b77d2 100644 --- a/tests/baselines/reference/es6ClassTest.js +++ b/tests/baselines/reference/es6ClassTest.js @@ -85,6 +85,20 @@ declare module AmbientMod { //// [es6ClassTest.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -101,6 +115,7 @@ var Bar = (function () { Bar.prototype.prop1 = function (x) { return x; }; + __names(Bar.prototype, ["prop1"]); return Bar; }()); // new-style class @@ -119,6 +134,7 @@ var Foo = (function (_super) { } Foo.prototype.bar = function () { return 0; }; Foo.prototype.boo = function (x) { return x; }; + __names(Foo.prototype, ["bar", "boo"]); Foo.statVal = 0; return Foo; }(Bar)); diff --git a/tests/baselines/reference/es6ClassTest2.js b/tests/baselines/reference/es6ClassTest2.js index 216a05ac2eb0b..bd2f40e2a631a 100644 --- a/tests/baselines/reference/es6ClassTest2.js +++ b/tests/baselines/reference/es6ClassTest2.js @@ -159,6 +159,20 @@ var ccwc = new ChildClassWithoutConstructor(1, "s"); //// [es6ClassTest2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -178,6 +192,7 @@ var BasicMonster = (function () { BasicMonster.prototype.attack = function (target) { // WScript.Echo("Attacks " + target); }; + __names(BasicMonster.prototype, ["attack"]); return BasicMonster; }()); var m1 = new BasicMonster("1", 100); @@ -214,6 +229,7 @@ var GetSetMonster = (function () { enumerable: true, configurable: true }); + __names(GetSetMonster.prototype, ["attack"]); return GetSetMonster; }()); var m3 = new BasicMonster("1", 100); @@ -230,6 +246,7 @@ var OverloadedMonster = (function () { OverloadedMonster.prototype.attack = function (target) { //WScript.Echo("Attacks " + target); }; + __names(OverloadedMonster.prototype, ["attack"]); return OverloadedMonster; }()); var m5 = new OverloadedMonster("1"); @@ -250,6 +267,7 @@ var SplatMonster = (function () { args[_i - 1] = arguments[_i]; } }; + __names(SplatMonster.prototype, ["roar"]); return SplatMonster; }()); function foo() { return true; } @@ -267,6 +285,7 @@ var SuperParent = (function () { }; SuperParent.prototype.c = function () { }; + __names(SuperParent.prototype, ["b", "c"]); return SuperParent; }()); var SuperChild = (function (_super) { @@ -280,6 +299,7 @@ var SuperChild = (function (_super) { SuperChild.prototype.c = function () { _super.prototype.c.call(this); }; + __names(SuperChild.prototype, ["b", "c"]); return SuperChild; }(SuperParent)); var Statics = (function () { @@ -306,6 +326,7 @@ var Visibility = (function () { } Visibility.prototype.foo = function () { }; Visibility.prototype.bar = function () { }; + __names(Visibility.prototype, ["foo", "bar"]); return Visibility; }()); var BaseClassWithConstructor = (function () { diff --git a/tests/baselines/reference/es6ClassTest3.js b/tests/baselines/reference/es6ClassTest3.js index daf6f63a2c18f..de7c83e590ee4 100644 --- a/tests/baselines/reference/es6ClassTest3.js +++ b/tests/baselines/reference/es6ClassTest3.js @@ -15,6 +15,20 @@ module M { } //// [es6ClassTest3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var Visibility = (function () { @@ -26,6 +40,7 @@ var M; ; Visibility.prototype.bar = function () { }; ; + __names(Visibility.prototype, ["foo", "bar"]); return Visibility; }()); })(M || (M = {})); diff --git a/tests/baselines/reference/es6DeclOrdering.js b/tests/baselines/reference/es6DeclOrdering.js index b5dc55ebc9c72..eb3ebce16f4bc 100644 --- a/tests/baselines/reference/es6DeclOrdering.js +++ b/tests/baselines/reference/es6DeclOrdering.js @@ -17,6 +17,20 @@ class Bar { //// [es6DeclOrdering.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Bar = (function () { function Bar(store) { this._store = store; // this is an error for some reason? Unresolved symbol store @@ -25,5 +39,6 @@ var Bar = (function () { Bar.prototype.foo = function () { return this._store.length; }; + __names(Bar.prototype, ["foo"]); return Bar; }()); diff --git a/tests/baselines/reference/es6MemberScoping.js b/tests/baselines/reference/es6MemberScoping.js index de442616dc3ae..46966bf9d149d 100644 --- a/tests/baselines/reference/es6MemberScoping.js +++ b/tests/baselines/reference/es6MemberScoping.js @@ -16,6 +16,20 @@ class Foo2 { //// [es6MemberScoping.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(store) { this._store = store; // should be an error. @@ -23,6 +37,7 @@ var Foo = (function () { Foo.prototype.foo = function () { return this._store.length; }; + __names(Foo.prototype, ["foo"]); return Foo; }()); var Foo2 = (function () { diff --git a/tests/baselines/reference/es6modulekindWithES5Target.js b/tests/baselines/reference/es6modulekindWithES5Target.js index b813bc01992b6..8e8ace8a7146e 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target.js +++ b/tests/baselines/reference/es6modulekindWithES5Target.js @@ -20,6 +20,20 @@ export {E}; //// [es6modulekindWithES5Target.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -31,6 +45,7 @@ var C = (function () { this.p = 1; } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); C.s = 0; return C; }()); @@ -41,6 +56,7 @@ var D = (function () { this.p = 1; } D.prototype.method = function () { }; + __names(D.prototype, ["method"]); D.s = 0; D = __decorate([ foo diff --git a/tests/baselines/reference/es6modulekindWithES5Target11.js b/tests/baselines/reference/es6modulekindWithES5Target11.js index a89da173951f6..7a1d5908897ca 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target11.js +++ b/tests/baselines/reference/es6modulekindWithES5Target11.js @@ -9,6 +9,20 @@ export default class C { } //// [es6modulekindWithES5Target11.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -22,6 +36,7 @@ var C = (function () { C_1 = C; C.x = function () { return C_1.y; }; C.prototype.method = function () { }; + __names(C.prototype, ["method"]); C.y = 1; C = C_1 = __decorate([ foo diff --git a/tests/baselines/reference/es6modulekindWithES5Target2.js b/tests/baselines/reference/es6modulekindWithES5Target2.js index a67bba11e2359..bf4537a66693e 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target2.js +++ b/tests/baselines/reference/es6modulekindWithES5Target2.js @@ -7,11 +7,26 @@ export default class C { //// [es6modulekindWithES5Target2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.p = 1; } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); C.s = 0; return C; }()); diff --git a/tests/baselines/reference/es6modulekindWithES5Target3.js b/tests/baselines/reference/es6modulekindWithES5Target3.js index 2a9778691a691..c30069cfedd18 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target3.js +++ b/tests/baselines/reference/es6modulekindWithES5Target3.js @@ -8,6 +8,20 @@ export default class D { } //// [es6modulekindWithES5Target3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -19,6 +33,7 @@ var D = (function () { this.p = 1; } D.prototype.method = function () { }; + __names(D.prototype, ["method"]); D.s = 0; D = __decorate([ foo diff --git a/tests/baselines/reference/escapedIdentifiers.js b/tests/baselines/reference/escapedIdentifiers.js index 37dcb2f7798c6..f81e10040d8f7 100644 --- a/tests/baselines/reference/escapedIdentifiers.js +++ b/tests/baselines/reference/escapedIdentifiers.js @@ -130,6 +130,20 @@ l\u0061bel4: a .. \u0061 z .. \u00za */ +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // var decl var \u0061 = 1; a++; @@ -185,6 +199,7 @@ var testClass = (function () { arg\u0033 = true; arg4 = 2; }; + __names(testClass.prototype, ["func"]); return testClass; }()); // constructors diff --git a/tests/baselines/reference/exportPrivateType.js b/tests/baselines/reference/exportPrivateType.js index efdd7cb8e6ee8..96ced78ac85b3 100644 --- a/tests/baselines/reference/exportPrivateType.js +++ b/tests/baselines/reference/exportPrivateType.js @@ -31,6 +31,20 @@ var y = foo.g; // Exported variable 'y' has or is using private type 'foo.C2'. //// [exportPrivateType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var foo; (function (foo) { var C1 = (function () { @@ -42,6 +56,7 @@ var foo; function C2() { } C2.prototype.test = function () { return true; }; + __names(C2.prototype, ["test"]); return C2; }()); })(foo || (foo = {})); diff --git a/tests/baselines/reference/expressionTypeNodeShouldError.js b/tests/baselines/reference/expressionTypeNodeShouldError.js index 80f9f82145af1..c4f9180eb733c 100644 --- a/tests/baselines/reference/expressionTypeNodeShouldError.js +++ b/tests/baselines/reference/expressionTypeNodeShouldError.js @@ -48,6 +48,20 @@ type ItemType3 = true.typeof(nodes.item(0)); //// [string.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -55,11 +69,26 @@ var C = (function () { var x; typeof (this.foo); }; + __names(C.prototype, ["foo"]); return C; }()); var nodes = document.getElementsByTagName("li"); typeof (nodes.item(0)); //// [number.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C2 = (function () { function C2() { } @@ -67,11 +96,26 @@ var C2 = (function () { var x; typeof (this.foo); }; + __names(C2.prototype, ["foo"]); return C2; }()); var nodes2 = document.getElementsByTagName("li"); typeof (nodes.item(0)); //// [boolean.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C3 = (function () { function C3() { } @@ -79,6 +123,7 @@ var C3 = (function () { var x; typeof (this.foo); }; + __names(C3.prototype, ["foo"]); return C3; }()); var nodes3 = document.getElementsByTagName("li"); diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType.js b/tests/baselines/reference/extendAndImplementTheSameBaseType.js index d2942220bf122..1a75cec7113bf 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType.js @@ -14,6 +14,20 @@ d.baz(); d.foo; //// [extendAndImplementTheSameBaseType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var C = (function () { function C() { } C.prototype.bar = function () { }; + __names(C.prototype, ["bar"]); return C; }()); var D = (function (_super) { @@ -36,6 +51,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.baz = function () { }; + __names(D.prototype, ["baz"]); return D; }(C)); var c; diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js index 40b3425966e89..eba1970df050a 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js @@ -17,6 +17,20 @@ var r3: string = d.bar(); var r4: number = d.bar(); //// [extendAndImplementTheSameBaseType2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -33,6 +47,7 @@ var C = (function () { C.prototype.bar = function () { return null; }; + __names(C.prototype, ["bar"]); return C; }()); var D = (function (_super) { @@ -41,6 +56,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.baz = function () { }; + __names(D.prototype, ["baz"]); return D; }(C)); var d = new D(); diff --git a/tests/baselines/reference/extendNonClassSymbol1.js b/tests/baselines/reference/extendNonClassSymbol1.js index b4e59aa97115e..b0aee22cdfb6e 100644 --- a/tests/baselines/reference/extendNonClassSymbol1.js +++ b/tests/baselines/reference/extendNonClassSymbol1.js @@ -4,6 +4,20 @@ var x = A; class C extends x { } // error, could not find symbol xs //// [extendNonClassSymbol1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -18,6 +32,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var x = A; diff --git a/tests/baselines/reference/extendsClauseAlreadySeen.js b/tests/baselines/reference/extendsClauseAlreadySeen.js index f6e43d5ddc66a..3c4a9ea2b2f90 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen.js @@ -17,6 +17,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -28,5 +42,6 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.baz = function () { }; + __names(D.prototype, ["baz"]); return D; }(C)); diff --git a/tests/baselines/reference/extendsClauseAlreadySeen2.js b/tests/baselines/reference/extendsClauseAlreadySeen2.js index 99bccf4447981..d5ad5ba5a9883 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen2.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen2.js @@ -17,6 +17,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -28,5 +42,6 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.baz = function () { }; + __names(D.prototype, ["baz"]); return D; }(C)); diff --git a/tests/baselines/reference/externalModuleQualification.js b/tests/baselines/reference/externalModuleQualification.js index 0402847a13a93..ca7d872918841 100644 --- a/tests/baselines/reference/externalModuleQualification.js +++ b/tests/baselines/reference/externalModuleQualification.js @@ -13,6 +13,20 @@ class NavigateAction { //// [externalModuleQualification.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; exports.ID = "test"; var DiffEditor = (function () { @@ -27,5 +41,6 @@ var NavigateAction = (function () { } NavigateAction.prototype.f = function (editor) { }; + __names(NavigateAction.prototype, ["f"]); return NavigateAction; }()); diff --git a/tests/baselines/reference/fatArrowSelf.js b/tests/baselines/reference/fatArrowSelf.js index db9aaa347dc39..ca49966076eda 100644 --- a/tests/baselines/reference/fatArrowSelf.js +++ b/tests/baselines/reference/fatArrowSelf.js @@ -25,6 +25,20 @@ module Consumer { } //// [fatArrowSelf.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Events; (function (Events) { var EventEmitter = (function () { @@ -32,6 +46,7 @@ var Events; } EventEmitter.prototype.addListener = function (type, listener) { }; + __names(EventEmitter.prototype, ["addListener"]); return EventEmitter; }()); Events.EventEmitter = EventEmitter; @@ -50,6 +65,7 @@ var Consumer; }; EventEmitterConsummer.prototype.changed = function () { }; + __names(EventEmitterConsummer.prototype, ["register", "changed"]); return EventEmitterConsummer; }()); })(Consumer || (Consumer = {})); diff --git a/tests/baselines/reference/flowInFinally1.js b/tests/baselines/reference/flowInFinally1.js index 76769342c0191..a01f5db7f507e 100644 --- a/tests/baselines/reference/flowInFinally1.js +++ b/tests/baselines/reference/flowInFinally1.js @@ -15,10 +15,25 @@ try { } //// [flowInFinally1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.method = function () { }; + __names(A.prototype, ["method"]); return A; }()); var a = null; diff --git a/tests/baselines/reference/fluentClasses.js b/tests/baselines/reference/fluentClasses.js index f9c8181aa494a..72b4f8f1a425a 100644 --- a/tests/baselines/reference/fluentClasses.js +++ b/tests/baselines/reference/fluentClasses.js @@ -19,6 +19,20 @@ var z = c.foo().bar().baz(); // Fluent pattern //// [fluentClasses.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -35,6 +49,7 @@ var A = (function () { A.prototype.foo = function () { return this; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -45,6 +60,7 @@ var B = (function (_super) { B.prototype.bar = function () { return this; }; + __names(B.prototype, ["bar"]); return B; }(A)); var C = (function (_super) { @@ -55,6 +71,7 @@ var C = (function (_super) { C.prototype.baz = function () { return this; }; + __names(C.prototype, ["baz"]); return C; }(B)); var c; diff --git a/tests/baselines/reference/for-inStatements.js b/tests/baselines/reference/for-inStatements.js index 18ccb37b4169c..29e87cef0ab86 100644 --- a/tests/baselines/reference/for-inStatements.js +++ b/tests/baselines/reference/for-inStatements.js @@ -81,6 +81,20 @@ for (var x in Color.Blue) { } //// [for-inStatements.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -126,6 +140,7 @@ var A = (function () { for (var x in this.baz()) { } return null; }; + __names(A.prototype, ["biz"]); return A; }()); var B = (function (_super) { @@ -141,6 +156,7 @@ var B = (function (_super) { for (var x in _super.prototype.biz.call(this)) { } return null; }; + __names(B.prototype, ["boz"]); return B; }(A)); var i; diff --git a/tests/baselines/reference/for-inStatementsInvalid.js b/tests/baselines/reference/for-inStatementsInvalid.js index d70da450f08cf..a83897717f3c6 100644 --- a/tests/baselines/reference/for-inStatementsInvalid.js +++ b/tests/baselines/reference/for-inStatementsInvalid.js @@ -64,6 +64,20 @@ for (var x in i[42]) { } //// [for-inStatementsInvalid.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -107,6 +121,7 @@ var A = (function () { for (var x in this.baz()) { } return null; }; + __names(A.prototype, ["biz"]); return A; }()); var B = (function (_super) { @@ -122,6 +137,7 @@ var B = (function (_super) { for (var x in _super.prototype.biz.call(this)) { } return null; }; + __names(B.prototype, ["boz"]); return B; }(A)); var i; diff --git a/tests/baselines/reference/forwardRefInClassProperties.js b/tests/baselines/reference/forwardRefInClassProperties.js index 424d950055d2d..50e4251023803 100644 --- a/tests/baselines/reference/forwardRefInClassProperties.js +++ b/tests/baselines/reference/forwardRefInClassProperties.js @@ -16,6 +16,20 @@ class Test //// [forwardRefInClassProperties.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test = (function () { function Test() { this._b = this._a; // undefined, no error/warning @@ -25,6 +39,7 @@ var Test = (function () { var a = b; // Block-scoped variable 'b' used before its declaration var b = 3; }; + __names(Test.prototype, ["method"]); Test._B = Test._A; // undefined, no error/warning Test._A = 3; return Test; diff --git a/tests/baselines/reference/functionAndPropertyNameConflict.js b/tests/baselines/reference/functionAndPropertyNameConflict.js index bd3b5b7243d8e..707a0287fd07c 100644 --- a/tests/baselines/reference/functionAndPropertyNameConflict.js +++ b/tests/baselines/reference/functionAndPropertyNameConflict.js @@ -7,6 +7,20 @@ class C65 { } //// [functionAndPropertyNameConflict.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C65 = (function () { function C65() { } @@ -18,5 +32,6 @@ var C65 = (function () { enumerable: true, configurable: true }); + __names(C65.prototype, ["aaaaa"]); return C65; }()); diff --git a/tests/baselines/reference/functionArgShadowing.js b/tests/baselines/reference/functionArgShadowing.js index bae1365a789d9..8c2d0caf39f1a 100644 --- a/tests/baselines/reference/functionArgShadowing.js +++ b/tests/baselines/reference/functionArgShadowing.js @@ -15,16 +15,32 @@ class C { } //// [functionArgShadowing.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.bar = function () { }; + __names(B.prototype, ["bar"]); return B; }()); function foo(x) { diff --git a/tests/baselines/reference/functionExpressionContextualTyping1.js b/tests/baselines/reference/functionExpressionContextualTyping1.js index 9592af7138c43..849611a002337 100644 --- a/tests/baselines/reference/functionExpressionContextualTyping1.js +++ b/tests/baselines/reference/functionExpressionContextualTyping1.js @@ -59,6 +59,20 @@ class C { //// [functionExpressionContextualTyping1.js] // When a function expression with no type parameters and no parameter type annotations // is contextually typed (section 4.19) by a type T and a contextual signature S can be extracted from T +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var E; (function (E) { E[E["red"] = 0] = "red"; @@ -74,6 +88,7 @@ var Class = (function () { function Class() { } Class.prototype.foo = function () { }; + __names(Class.prototype, ["foo"]); return Class; }()); var a1 = function (a1) { diff --git a/tests/baselines/reference/functionOverloadErrors.js b/tests/baselines/reference/functionOverloadErrors.js index a07f04ae9a8be..f6d100d8a705c 100644 --- a/tests/baselines/reference/functionOverloadErrors.js +++ b/tests/baselines/reference/functionOverloadErrors.js @@ -119,6 +119,20 @@ function initExpr() { } //// [functionOverloadErrors.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function fn1() { } function fn2a() { } @@ -140,6 +154,7 @@ var cls = (function () { } cls.prototype.f = function () { }; cls.prototype.g = function () { }; + __names(cls.prototype, ["f", "g"]); return cls; }()); //Function overloads with differing export diff --git a/tests/baselines/reference/functionOverloads5.js b/tests/baselines/reference/functionOverloads5.js index f23c66f3bebef..0813b01dd6be3 100644 --- a/tests/baselines/reference/functionOverloads5.js +++ b/tests/baselines/reference/functionOverloads5.js @@ -6,9 +6,24 @@ class baz { //// [functionOverloads5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var baz = (function () { function baz() { } baz.prototype.foo = function (bar) { }; + __names(baz.prototype, ["foo"]); return baz; }()); diff --git a/tests/baselines/reference/functionOverloads7.js b/tests/baselines/reference/functionOverloads7.js index 4d807d57548ce..96789228b511f 100644 --- a/tests/baselines/reference/functionOverloads7.js +++ b/tests/baselines/reference/functionOverloads7.js @@ -11,6 +11,20 @@ class foo { //// [functionOverloads7.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var foo = (function () { function foo() { } @@ -19,5 +33,6 @@ var foo = (function () { var foo = this.bar(); foo = this.bar("test"); }; + __names(foo.prototype, ["bar", "n"]); return foo; }()); diff --git a/tests/baselines/reference/functionOverloadsOutOfOrder.js b/tests/baselines/reference/functionOverloadsOutOfOrder.js index f675646fed76f..a1390f72d5b78 100644 --- a/tests/baselines/reference/functionOverloadsOutOfOrder.js +++ b/tests/baselines/reference/functionOverloadsOutOfOrder.js @@ -16,12 +16,27 @@ class e { } //// [functionOverloadsOutOfOrder.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var d = (function () { function d() { } d.prototype.foo = function (ns) { return ns.toString(); }; + __names(d.prototype, ["foo"]); return d; }()); var e = (function () { @@ -30,5 +45,6 @@ var e = (function () { e.prototype.foo = function (ns) { return ns.toString(); }; + __names(e.prototype, ["foo"]); return e; }()); diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs.js b/tests/baselines/reference/functionSubtypingOfVarArgs.js index a4b43c3a1a1b9..9f6911f65f1d3 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs.js @@ -15,6 +15,20 @@ class StringEvent extends EventBase { // should work //// [functionSubtypingOfVarArgs.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -32,6 +46,7 @@ var EventBase = (function () { EventBase.prototype.add = function (listener) { this._listeners.push(listener); }; + __names(EventBase.prototype, ["add"]); return EventBase; }()); var StringEvent = (function (_super) { @@ -42,5 +57,6 @@ var StringEvent = (function (_super) { StringEvent.prototype.add = function (listener) { _super.prototype.add.call(this, listener); }; + __names(StringEvent.prototype, ["add"]); return StringEvent; }(EventBase)); diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs2.js b/tests/baselines/reference/functionSubtypingOfVarArgs2.js index 829440c12d43d..e1d89699ab9d5 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs2.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs2.js @@ -15,6 +15,20 @@ class StringEvent extends EventBase { //// [functionSubtypingOfVarArgs2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -32,6 +46,7 @@ var EventBase = (function () { EventBase.prototype.add = function (listener) { this._listeners.push(listener); }; + __names(EventBase.prototype, ["add"]); return EventBase; }()); var StringEvent = (function (_super) { @@ -42,5 +57,6 @@ var StringEvent = (function (_super) { StringEvent.prototype.add = function (listener) { _super.prototype.add.call(this, listener); }; + __names(StringEvent.prototype, ["add"]); return StringEvent; }(EventBase)); diff --git a/tests/baselines/reference/functionWithSameNameAsField.js b/tests/baselines/reference/functionWithSameNameAsField.js index f4b328e4c5b5f..7a2d236d38af4 100644 --- a/tests/baselines/reference/functionWithSameNameAsField.js +++ b/tests/baselines/reference/functionWithSameNameAsField.js @@ -9,6 +9,20 @@ class TestProgressBar { //// [functionWithSameNameAsField.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TestProgressBar = (function () { function TestProgressBar() { } @@ -16,5 +30,6 @@ var TestProgressBar = (function () { this.total = total; return this; }; + __names(TestProgressBar.prototype, ["total"]); return TestProgressBar; }()); diff --git a/tests/baselines/reference/functionsInClassExpressions.js b/tests/baselines/reference/functionsInClassExpressions.js index 616e6a3251ca2..e2340728ee616 100644 --- a/tests/baselines/reference/functionsInClassExpressions.js +++ b/tests/baselines/reference/functionsInClassExpressions.js @@ -11,6 +11,20 @@ let Foo = class { } //// [functionsInClassExpressions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function class_1() { var _this = this; @@ -21,5 +35,6 @@ var Foo = (function () { this.bar++; } class_1.prototype.m = function () { return this.bar; }; + __names(class_1.prototype, ["m"]); return class_1; }()); diff --git a/tests/baselines/reference/fuzzy.js b/tests/baselines/reference/fuzzy.js index af2bda7433902..021a6366c4b59 100644 --- a/tests/baselines/reference/fuzzy.js +++ b/tests/baselines/reference/fuzzy.js @@ -31,6 +31,20 @@ module M { //// [fuzzy.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { @@ -46,6 +60,7 @@ var M; C.prototype.worksToo = function () { return ({ oneI: this }); }; + __names(C.prototype, ["works", "doesntWork", "worksToo"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js b/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js index 2a5177ca25566..534052822d084 100644 --- a/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js +++ b/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js @@ -8,10 +8,25 @@ class Bar { //// [genericArrayWithoutTypeAnnotation.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Bar = (function () { function Bar() { } Bar.prototype.getBar = function (foo) { }; + __names(Bar.prototype, ["getBar"]); return Bar; }()); diff --git a/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js b/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js index 81d65dbbbb419..ead801fa484eb 100644 --- a/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js +++ b/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js @@ -20,10 +20,25 @@ var a4: I = >z; //// [genericAssignmentCompatWithInterfaces1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.compareTo = function (other) { return 1; }; + __names(A.prototype, ["compareTo"]); return A; }()); var z = { x: new A() }; diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty.js b/tests/baselines/reference/genericBaseClassLiteralProperty.js index 0c3a5ee612988..9381c836cafcb 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty.js @@ -23,6 +23,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var BaseClass = (function () { function BaseClass() { } @@ -37,5 +51,6 @@ var SubClass = (function (_super) { var x = this._getValue1(); var y = this._getValue2(); }; + __names(SubClass.prototype, ["Error"]); return SubClass; }(BaseClass)); diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty2.js b/tests/baselines/reference/genericBaseClassLiteralProperty2.js index e2ef30f9ce834..ee60e740e8baf 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty2.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty2.js @@ -26,6 +26,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var CollectionItem2 = (function () { function CollectionItem2() { } @@ -45,5 +59,6 @@ var DataView2 = (function (_super) { DataView2.prototype.fillItems = function (item) { this._itemsByKey['dummy'] = item; }; + __names(DataView2.prototype, ["fillItems"]); return DataView2; }(BaseCollection2)); diff --git a/tests/baselines/reference/genericCallTypeArgumentInference.js b/tests/baselines/reference/genericCallTypeArgumentInference.js index 994b4a52e6096..9dd457b8a3359 100644 --- a/tests/baselines/reference/genericCallTypeArgumentInference.js +++ b/tests/baselines/reference/genericCallTypeArgumentInference.js @@ -93,6 +93,20 @@ var r11 = i.foo8(); // {} //// [genericCallTypeArgumentInference.js] // Basic type inference with generic calls, no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(t) { return t; } @@ -138,6 +152,7 @@ var C = (function () { var x; return x; }; + __names(C.prototype, ["foo", "foo2", "foo3", "foo4", "foo5", "foo6", "foo7", "foo8"]); return C; }()); var c = new C('', 1); diff --git a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js index 3ccdb5b6b558b..46f8ae6b125e7 100644 --- a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js +++ b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js @@ -119,6 +119,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -191,6 +205,7 @@ var C = (function () { var x; return x; }; + __names(C.prototype, ["foo", "foo2", "foo3", "foo4", "foo5", "foo6", "foo7", "foo8"]); return C; }()); var c = new C(b, d1); diff --git a/tests/baselines/reference/genericCallWithFixedArguments.js b/tests/baselines/reference/genericCallWithFixedArguments.js index a207d5c6d1716..9667af15fc753 100644 --- a/tests/baselines/reference/genericCallWithFixedArguments.js +++ b/tests/baselines/reference/genericCallWithFixedArguments.js @@ -8,16 +8,32 @@ g(7) // the parameter list is fixed, so this should not error //// [genericCallWithFixedArguments.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.bar = function () { }; + __names(B.prototype, ["bar"]); return B; }()); function g(x) { } diff --git a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js index b7b9e35a5436f..f86b54dd49e31 100644 --- a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js +++ b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js @@ -34,6 +34,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C1 = (function () { @@ -66,6 +80,7 @@ var M; v.subscribe(f); v.subscribe(function (newValue) { }); }; + __names(D.prototype, ["_subscribe"]); return D; }()); M.D = D; diff --git a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js index b5c8f47bfd4b2..39abba1d602dd 100644 --- a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js +++ b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js @@ -76,6 +76,20 @@ class ViewModel implements Contract { //// [genericClassPropertyInheritanceSpecialization.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -97,6 +111,7 @@ var Portal; } Validator.prototype.destroy = function () { }; Validator.prototype._validate = function (value) { return 0; }; + __names(Validator.prototype, ["destroy", "_validate"]); return Validator; }()); Validators.Validator = Validator; diff --git a/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js b/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js index 50510d88c248d..5c056f6d635e5 100644 --- a/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js +++ b/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js @@ -67,6 +67,20 @@ module WithCandidates { //// [genericClassWithFunctionTypedMemberArguments.js] // Generic functions used as arguments for function typed parameters are not used to make inferences from // Using function arguments, no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var ImmediatelyFix; (function (ImmediatelyFix) { var C = (function () { @@ -75,6 +89,7 @@ var ImmediatelyFix; C.prototype.foo = function (x) { return x(null); }; + __names(C.prototype, ["foo"]); return C; }()); var c = new C(); @@ -87,6 +102,7 @@ var ImmediatelyFix; C2.prototype.foo = function (x) { return x(null); }; + __names(C2.prototype, ["foo"]); return C2; }()); var c2 = new C2(); @@ -101,6 +117,7 @@ var WithCandidates; C.prototype.foo2 = function (x, cb) { return cb(x); }; + __names(C.prototype, ["foo2"]); return C; }()); var c; @@ -113,6 +130,7 @@ var WithCandidates; C2.prototype.foo3 = function (x, cb, y) { return cb(x); }; + __names(C2.prototype, ["foo3"]); return C2; }()); var c2; @@ -124,6 +142,7 @@ var WithCandidates; C3.prototype.foo3 = function (x, cb, y) { return cb(x); }; + __names(C3.prototype, ["foo3"]); return C3; }()); var c3; diff --git a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js index 467675c3497f8..09598e634dda8 100644 --- a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js +++ b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js @@ -63,6 +63,20 @@ module Interface { //// [genericClassWithObjectTypeArgsAndConstraints.js] // Generic call with constraints infering type parameter from object member properties // No errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -87,6 +101,7 @@ var Class; var x; return x; }; + __names(G.prototype, ["foo"]); return G; }()); var c1 = new X(); @@ -101,6 +116,7 @@ var Class; var x; return x; }; + __names(G2.prototype, ["foo2"]); return G2; }()); var g2; diff --git a/tests/baselines/reference/genericClassWithStaticFactory.js b/tests/baselines/reference/genericClassWithStaticFactory.js index ee65f23c2f1a5..de507a4280da3 100644 --- a/tests/baselines/reference/genericClassWithStaticFactory.js +++ b/tests/baselines/reference/genericClassWithStaticFactory.js @@ -142,6 +142,20 @@ module Editor { } //// [genericClassWithStaticFactory.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Editor; (function (Editor) { var List = (function () { @@ -229,6 +243,7 @@ var Editor; var entry = this.listFactory.MakeEntry(data); return this.insertEntryBefore(entry); }; + __names(List.prototype, ["add", "count", "isEmpty", "first", "pushEntry", "push", "popEntry", "insertEntry", "insertAfter", "insertEntryBefore", "insertBefore"]); return List; }()); Editor.List = List; @@ -261,6 +276,7 @@ var Editor; return entry; } }; + __names(ListFactory.prototype, ["MakeHead", "MakeEntry", "RemoveEntry"]); return ListFactory; }()); Editor.ListFactory = ListFactory; diff --git a/tests/baselines/reference/genericClasses4.js b/tests/baselines/reference/genericClasses4.js index ab3620d2d79f2..9322f68d0493d 100644 --- a/tests/baselines/reference/genericClasses4.js +++ b/tests/baselines/reference/genericClasses4.js @@ -18,6 +18,20 @@ class Vec2_T } //// [genericClasses4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // once caused stack overflow var Vec2_T = (function () { function Vec2_T(x, y) { @@ -36,5 +50,6 @@ var Vec2_T = (function () { var retval = new Vec2_T(x, y); return retval; }; + __names(Vec2_T.prototype, ["fmap", "apply"]); return Vec2_T; }()); diff --git a/tests/baselines/reference/genericClassesInModule2.js b/tests/baselines/reference/genericClassesInModule2.js index 738fa996cf785..36a0d4bcbff6d 100644 --- a/tests/baselines/reference/genericClassesInModule2.js +++ b/tests/baselines/reference/genericClassesInModule2.js @@ -21,6 +21,20 @@ export class B { //// [genericClassesInModule2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -32,6 +46,7 @@ define(["require", "exports"], function (require, exports) { A.prototype.AAA = function (callback) { var child = new B(this); }; + __names(A.prototype, ["AAA"]); return A; }()); exports.A = A; diff --git a/tests/baselines/reference/genericCloduleInModule.js b/tests/baselines/reference/genericCloduleInModule.js index 6164bfc0904c0..3b5e5696dc53d 100644 --- a/tests/baselines/reference/genericCloduleInModule.js +++ b/tests/baselines/reference/genericCloduleInModule.js @@ -13,6 +13,20 @@ var b: A.B; b.foo(); //// [genericCloduleInModule.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var B = (function () { @@ -20,6 +34,7 @@ var A; } B.prototype.foo = function () { }; B.bar = function () { }; + __names(B.prototype, ["foo"]); return B; }()); A.B = B; diff --git a/tests/baselines/reference/genericCloduleInModule2.js b/tests/baselines/reference/genericCloduleInModule2.js index 55a5507eed2c0..82aa1a219f061 100644 --- a/tests/baselines/reference/genericCloduleInModule2.js +++ b/tests/baselines/reference/genericCloduleInModule2.js @@ -16,6 +16,20 @@ var b: A.B; b.foo(); //// [genericCloduleInModule2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var B = (function () { @@ -23,6 +37,7 @@ var A; } B.prototype.foo = function () { }; B.bar = function () { }; + __names(B.prototype, ["foo"]); return B; }()); A.B = B; diff --git a/tests/baselines/reference/genericCloneReturnTypes.js b/tests/baselines/reference/genericCloneReturnTypes.js index 6d301c008e6f9..9f7f95df4acda 100644 --- a/tests/baselines/reference/genericCloneReturnTypes.js +++ b/tests/baselines/reference/genericCloneReturnTypes.js @@ -26,6 +26,20 @@ b = b2; b = b3; //// [genericCloneReturnTypes.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Bar = (function () { function Bar(x) { this.size = x; @@ -33,6 +47,7 @@ var Bar = (function () { Bar.prototype.clone = function () { return new Bar(this.size); }; + __names(Bar.prototype, ["clone"]); return Bar; }()); var b; diff --git a/tests/baselines/reference/genericCloneReturnTypes2.js b/tests/baselines/reference/genericCloneReturnTypes2.js index 1e908c4c865fd..d07b42f11634e 100644 --- a/tests/baselines/reference/genericCloneReturnTypes2.js +++ b/tests/baselines/reference/genericCloneReturnTypes2.js @@ -16,6 +16,20 @@ var c: MyList = a.clone(); // bug was there was an error on this line var d: MyList = a.clone(); // error //// [genericCloneReturnTypes2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var MyList = (function () { function MyList(n) { this.size = n; @@ -24,6 +38,7 @@ var MyList = (function () { MyList.prototype.clone = function () { return new MyList(this.size); }; + __names(MyList.prototype, ["clone"]); return MyList; }()); var a; diff --git a/tests/baselines/reference/genericConstraint1.js b/tests/baselines/reference/genericConstraint1.js index 52ce01433575c..c996cfbffd8a0 100644 --- a/tests/baselines/reference/genericConstraint1.js +++ b/tests/baselines/reference/genericConstraint1.js @@ -9,12 +9,27 @@ var x = new C(); x.bar2(2, ""); //// [genericConstraint1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar2 = function (x, y) { return null; }; + __names(C.prototype, ["bar2"]); return C; }()); var x = new C(); diff --git a/tests/baselines/reference/genericConstraint2.js b/tests/baselines/reference/genericConstraint2.js index 9056ec847d70f..928bc58ab291d 100644 --- a/tests/baselines/reference/genericConstraint2.js +++ b/tests/baselines/reference/genericConstraint2.js @@ -22,6 +22,20 @@ var b = new ComparableString("b"); var c = compare(a, b); //// [genericConstraint2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function compare(x, y) { if (x == null) return y == null ? 0 : -1; @@ -36,6 +50,7 @@ var ComparableString = (function () { ComparableString.prototype.localeCompare = function (other) { return 0; }; + __names(ComparableString.prototype, ["localeCompare"]); return ComparableString; }()); var a = new ComparableString("a"); diff --git a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js index 7caa65b971b8b..d3e38d9962b8e 100644 --- a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js +++ b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js @@ -16,10 +16,25 @@ var r5 = utils.mapReduce(c, f1, f2); //// [genericFunctionsWithOptionalParameters3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Collection = (function () { function Collection() { } Collection.prototype.add = function (x) { }; + __names(Collection.prototype, ["add"]); return Collection; }()); var utils; diff --git a/tests/baselines/reference/genericImplements.js b/tests/baselines/reference/genericImplements.js index 1a67fb29ad817..811be4880ab9b 100644 --- a/tests/baselines/reference/genericImplements.js +++ b/tests/baselines/reference/genericImplements.js @@ -21,6 +21,20 @@ class Z implements I { } // { f: () => T } //// [genericImplements.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -38,6 +52,7 @@ var X = (function () { function X() { } X.prototype.f = function () { return undefined; }; + __names(X.prototype, ["f"]); return X; }()); // { f: () => { b; } } // OK @@ -45,6 +60,7 @@ var Y = (function () { function Y() { } Y.prototype.f = function () { return undefined; }; + __names(Y.prototype, ["f"]); return Y; }()); // { f: () => { a; } } // OK @@ -52,5 +68,6 @@ var Z = (function () { function Z() { } Z.prototype.f = function () { return undefined; }; + __names(Z.prototype, ["f"]); return Z; }()); // { f: () => T } diff --git a/tests/baselines/reference/genericInstanceOf.js b/tests/baselines/reference/genericInstanceOf.js index 6d060a75fe196..b8572adc8dedb 100644 --- a/tests/baselines/reference/genericInstanceOf.js +++ b/tests/baselines/reference/genericInstanceOf.js @@ -12,6 +12,20 @@ class C { } //// [genericInstanceOf.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(a, b) { this.a = a; @@ -21,5 +35,6 @@ var C = (function () { if (this.a instanceof this.b) { } }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/genericInterfaceImplementation.js b/tests/baselines/reference/genericInterfaceImplementation.js index c68c3e0d22234..60f14af278bd1 100644 --- a/tests/baselines/reference/genericInterfaceImplementation.js +++ b/tests/baselines/reference/genericInterfaceImplementation.js @@ -17,6 +17,20 @@ class None implements IOption{ //// [genericInterfaceImplementation.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var None = (function () { function None() { } @@ -26,5 +40,6 @@ var None = (function () { None.prototype.flatten = function () { return new None(); }; + __names(None.prototype, ["get", "flatten"]); return None; }()); diff --git a/tests/baselines/reference/genericMemberFunction.js b/tests/baselines/reference/genericMemberFunction.js index 61a9298eb7f85..ebc879aed2408 100644 --- a/tests/baselines/reference/genericMemberFunction.js +++ b/tests/baselines/reference/genericMemberFunction.js @@ -23,6 +23,20 @@ export class BuildResult{ //// [genericMemberFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -32,6 +46,7 @@ define(["require", "exports"], function (require, exports) { BuildError.prototype.parent = function () { return undefined; }; + __names(BuildError.prototype, ["parent"]); return BuildError; }()); exports.BuildError = BuildError; @@ -44,6 +59,7 @@ define(["require", "exports"], function (require, exports) { FileWithErrors.prototype.parent = function () { return undefined; }; + __names(FileWithErrors.prototype, ["errors", "parent"]); return FileWithErrors; }()); exports.FileWithErrors = FileWithErrors; @@ -57,6 +73,7 @@ define(["require", "exports"], function (require, exports) { _this.removeFile(each); }); }; + __names(BuildResult.prototype, ["merge"]); return BuildResult; }()); exports.BuildResult = BuildResult; diff --git a/tests/baselines/reference/genericObjectLitReturnType.js b/tests/baselines/reference/genericObjectLitReturnType.js index e9b1ba2f60dae..e368018690bf5 100644 --- a/tests/baselines/reference/genericObjectLitReturnType.js +++ b/tests/baselines/reference/genericObjectLitReturnType.js @@ -12,10 +12,25 @@ t1.a = 5; // Should not error: t1 should have type {a: number}, instead has type //// [genericObjectLitReturnType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var X = (function () { function X() { } X.prototype.f = function (t) { return { a: t }; }; + __names(X.prototype, ["f"]); return X; }()); var x; diff --git a/tests/baselines/reference/genericOfACloduleType1.js b/tests/baselines/reference/genericOfACloduleType1.js index 1c9657ec8f166..df77fbfa97475 100644 --- a/tests/baselines/reference/genericOfACloduleType1.js +++ b/tests/baselines/reference/genericOfACloduleType1.js @@ -13,10 +13,25 @@ module M { var g2 = new G() // was: error Type reference cannot refer to container 'M.C'. //// [genericOfACloduleType1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var G = (function () { function G() { } G.prototype.bar = function (x) { return x; }; + __names(G.prototype, ["bar"]); return G; }()); var M; @@ -25,6 +40,7 @@ var M; function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/genericOfACloduleType2.js b/tests/baselines/reference/genericOfACloduleType2.js index c96e3f4fa6db4..e7e748301c165 100644 --- a/tests/baselines/reference/genericOfACloduleType2.js +++ b/tests/baselines/reference/genericOfACloduleType2.js @@ -16,10 +16,25 @@ module N { } //// [genericOfACloduleType2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var G = (function () { function G() { } G.prototype.bar = function (x) { return x; }; + __names(G.prototype, ["bar"]); return G; }()); var M; @@ -28,6 +43,7 @@ var M; function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/genericPrototypeProperty.js b/tests/baselines/reference/genericPrototypeProperty.js index 77102b280a19a..0b02c6a43912a 100644 --- a/tests/baselines/reference/genericPrototypeProperty.js +++ b/tests/baselines/reference/genericPrototypeProperty.js @@ -10,10 +10,25 @@ var r2 = r.x var r3 = r.foo(null); //// [genericPrototypeProperty.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var r = C.prototype; diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js index 22886334aad31..570bbf372aaaf 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js @@ -27,6 +27,20 @@ module TypeScript2 { //// [genericRecursiveImplicitConstructorErrors2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -56,6 +70,7 @@ var TypeScript2; PullSymbol.prototype.getType = function () { return undefined; }; + __names(PullSymbol.prototype, ["addOutgoingLink", "getType"]); return PullSymbol; }()); TypeScript2.PullSymbol = PullSymbol; diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js index d0bf08113d2e3..66cf3dd3d3cd8 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js @@ -41,6 +41,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TypeScript; (function (TypeScript) { var MemberName = (function () { @@ -80,6 +94,7 @@ var TypeScript; return TypeScript.MemberName.create(elementMemberName, "", "[]"); } }; + __names(PullTypeSymbol.prototype, ["toString", "getScopedNameEx"]); return PullTypeSymbol; }(PullSymbol)); TypeScript.PullTypeSymbol = PullTypeSymbol; diff --git a/tests/baselines/reference/genericReversingTypeParameters.js b/tests/baselines/reference/genericReversingTypeParameters.js index 33f598a1642db..64a2360afe8c1 100644 --- a/tests/baselines/reference/genericReversingTypeParameters.js +++ b/tests/baselines/reference/genericReversingTypeParameters.js @@ -11,11 +11,26 @@ var i = b.inverse(); // used to get the type wrong here. var r2b = i.get(1); //// [genericReversingTypeParameters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var BiMap = (function () { function BiMap() { } BiMap.prototype.get = function (key) { return null; }; BiMap.prototype.inverse = function () { return null; }; + __names(BiMap.prototype, ["get", "inverse"]); return BiMap; }()); var b = new BiMap(); diff --git a/tests/baselines/reference/genericReversingTypeParameters2.js b/tests/baselines/reference/genericReversingTypeParameters2.js index 40102d790d91b..70e3efd024c6a 100644 --- a/tests/baselines/reference/genericReversingTypeParameters2.js +++ b/tests/baselines/reference/genericReversingTypeParameters2.js @@ -10,11 +10,26 @@ var i = b.inverse(); // used to get the type wrong here. var r2b = i.get(1); //// [genericReversingTypeParameters2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var BiMap = (function () { function BiMap() { } BiMap.prototype.get = function (key) { return null; }; BiMap.prototype.inverse = function () { return null; }; + __names(BiMap.prototype, ["get", "inverse"]); return BiMap; }()); var b = new BiMap(); diff --git a/tests/baselines/reference/genericSpecializations1.js b/tests/baselines/reference/genericSpecializations1.js index 2aabf708a6f19..96e264287167f 100644 --- a/tests/baselines/reference/genericSpecializations1.js +++ b/tests/baselines/reference/genericSpecializations1.js @@ -16,21 +16,38 @@ class StringFoo3 implements IFoo { } //// [genericSpecializations1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var IntFooBad = (function () { function IntFooBad() { } IntFooBad.prototype.foo = function (x) { return null; }; + __names(IntFooBad.prototype, ["foo"]); return IntFooBad; }()); var StringFoo2 = (function () { function StringFoo2() { } StringFoo2.prototype.foo = function (x) { return null; }; + __names(StringFoo2.prototype, ["foo"]); return StringFoo2; }()); var StringFoo3 = (function () { function StringFoo3() { } StringFoo3.prototype.foo = function (x) { return null; }; + __names(StringFoo3.prototype, ["foo"]); return StringFoo3; }()); diff --git a/tests/baselines/reference/genericSpecializations2.js b/tests/baselines/reference/genericSpecializations2.js index 6975575ec5ecc..73bfe79e0d097 100644 --- a/tests/baselines/reference/genericSpecializations2.js +++ b/tests/baselines/reference/genericSpecializations2.js @@ -20,29 +20,47 @@ class StringFoo3 implements IFoo { //// [genericSpecializations2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var IFoo = (function () { function IFoo() { } IFoo.prototype.foo = function (x) { return null; }; + __names(IFoo.prototype, ["foo"]); return IFoo; }()); var IntFooBad = (function () { function IntFooBad() { } IntFooBad.prototype.foo = function (x) { return null; }; + __names(IntFooBad.prototype, ["foo"]); return IntFooBad; }()); var StringFoo2 = (function () { function StringFoo2() { } StringFoo2.prototype.foo = function (x) { return null; }; + __names(StringFoo2.prototype, ["foo"]); return StringFoo2; }()); var StringFoo3 = (function () { function StringFoo3() { } StringFoo3.prototype.foo = function (x) { return null; }; + __names(StringFoo3.prototype, ["foo"]); return StringFoo3; }()); diff --git a/tests/baselines/reference/genericSpecializations3.js b/tests/baselines/reference/genericSpecializations3.js index 03d07b6dff990..1c3ce72cc7b3b 100644 --- a/tests/baselines/reference/genericSpecializations3.js +++ b/tests/baselines/reference/genericSpecializations3.js @@ -36,12 +36,27 @@ class StringFoo3 implements IFoo { // error var stringFoo3: StringFoo3; //// [genericSpecializations3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var iFoo; iFoo.foo(1); var IntFooBad = (function () { function IntFooBad() { } IntFooBad.prototype.foo = function (x) { return null; }; + __names(IntFooBad.prototype, ["foo"]); return IntFooBad; }()); var intFooBad; @@ -49,6 +64,7 @@ var IntFoo = (function () { function IntFoo() { } IntFoo.prototype.foo = function (x) { return null; }; + __names(IntFoo.prototype, ["foo"]); return IntFoo; }()); var intFoo; @@ -56,6 +72,7 @@ var StringFoo2 = (function () { function StringFoo2() { } StringFoo2.prototype.foo = function (x) { return null; }; + __names(StringFoo2.prototype, ["foo"]); return StringFoo2; }()); var stringFoo2; @@ -66,6 +83,7 @@ var StringFoo3 = (function () { function StringFoo3() { } StringFoo3.prototype.foo = function (x) { return null; }; + __names(StringFoo3.prototype, ["foo"]); return StringFoo3; }()); var stringFoo3; diff --git a/tests/baselines/reference/genericTypeAssertions1.js b/tests/baselines/reference/genericTypeAssertions1.js index 904e696af489e..dc62289a75250 100644 --- a/tests/baselines/reference/genericTypeAssertions1.js +++ b/tests/baselines/reference/genericTypeAssertions1.js @@ -5,10 +5,25 @@ var r: A = >new A(); // error var r2: A = >>foo; // error //// [genericTypeAssertions1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { }; + __names(A.prototype, ["foo"]); return A; }()); var foo = new A(); diff --git a/tests/baselines/reference/genericTypeAssertions2.js b/tests/baselines/reference/genericTypeAssertions2.js index 160967e83deb7..b4a489e8c65de 100644 --- a/tests/baselines/reference/genericTypeAssertions2.js +++ b/tests/baselines/reference/genericTypeAssertions2.js @@ -14,6 +14,20 @@ var r4: A = >new A(); var r5: A = >[]; // error //// [genericTypeAssertions2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var A = (function () { function A() { } A.prototype.foo = function (x) { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -38,6 +53,7 @@ var B = (function (_super) { B.prototype.bar = function () { return null; }; + __names(B.prototype, ["bar"]); return B; }(A)); var foo = new A(); diff --git a/tests/baselines/reference/genericTypeAssertions4.js b/tests/baselines/reference/genericTypeAssertions4.js index 991db3822acc1..783ee453c5f89 100644 --- a/tests/baselines/reference/genericTypeAssertions4.js +++ b/tests/baselines/reference/genericTypeAssertions4.js @@ -26,6 +26,20 @@ function foo2(x: T) { } //// [genericTypeAssertions4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -40,6 +54,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return ""; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -48,6 +63,7 @@ var B = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } B.prototype.bar = function () { return 1; }; + __names(B.prototype, ["bar"]); return B; }(A)); var C = (function (_super) { @@ -56,6 +72,7 @@ var C = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C.prototype.baz = function () { return 1; }; + __names(C.prototype, ["baz"]); return C; }(A)); var a; diff --git a/tests/baselines/reference/genericTypeAssertions6.js b/tests/baselines/reference/genericTypeAssertions6.js index 069e567ab1083..a64f84c8be865 100644 --- a/tests/baselines/reference/genericTypeAssertions6.js +++ b/tests/baselines/reference/genericTypeAssertions6.js @@ -25,6 +25,20 @@ var b: B; var c: A = >b; //// [genericTypeAssertions6.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -44,6 +58,7 @@ var A = (function () { x = y; y = x; }; + __names(A.prototype, ["f"]); return A; }()); var B = (function (_super) { @@ -58,6 +73,7 @@ var B = (function (_super) { var d = new Date(); var e = new Date(); }; + __names(B.prototype, ["g"]); return B; }(A)); var b; diff --git a/tests/baselines/reference/genericTypeConstraints.js b/tests/baselines/reference/genericTypeConstraints.js index cbb03b683a82a..c2079ba9d027e 100644 --- a/tests/baselines/reference/genericTypeConstraints.js +++ b/tests/baselines/reference/genericTypeConstraints.js @@ -14,6 +14,20 @@ class BarExtended extends Bar { } //// [genericTypeConstraints.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var Foo = (function () { function Foo() { } Foo.prototype.fooMethod = function () { }; + __names(Foo.prototype, ["fooMethod"]); return Foo; }()); var FooExtended = (function () { diff --git a/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js b/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js index 8e8060194b028..00c626cbe06dc 100644 --- a/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js +++ b/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js @@ -12,10 +12,25 @@ var i2: I; // should be an error //// [genericTypeReferencesRequireTypeArgs.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var c1; // error diff --git a/tests/baselines/reference/genericTypeWithCallableMembers.js b/tests/baselines/reference/genericTypeWithCallableMembers.js index c1a28b384bb9e..b9a2b4633e3b0 100644 --- a/tests/baselines/reference/genericTypeWithCallableMembers.js +++ b/tests/baselines/reference/genericTypeWithCallableMembers.js @@ -13,6 +13,20 @@ class C { //// [genericTypeWithCallableMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(data, data2) { this.data = data; @@ -22,5 +36,6 @@ var C = (function () { var x = new this.data(); // no error var x2 = new this.data2(); // was error, shouldn't be }; + __names(C.prototype, ["create"]); return C; }()); diff --git a/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js b/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js index 3c3577b853ea9..4ddbbf64f0e6d 100644 --- a/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js +++ b/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js @@ -10,10 +10,25 @@ var i: I = x; // Should not be allowed -- type of 'f' is incompatible with 'I' //// [genericTypeWithNonGenericBaseMisMatch.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var X = (function () { function X() { } X.prototype.f = function (a) { }; + __names(X.prototype, ["f"]); return X; }()); var x = new X(); diff --git a/tests/baselines/reference/genericWithCallSignatures1.js b/tests/baselines/reference/genericWithCallSignatures1.js index 95145470ac3a1..129c67f4f19ec 100644 --- a/tests/baselines/reference/genericWithCallSignatures1.js +++ b/tests/baselines/reference/genericWithCallSignatures1.js @@ -20,6 +20,20 @@ class MyClass { //// [genericWithCallSignatures_0.js] //// [genericWithCallSignatures_1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var MyClass = (function () { function MyClass() { @@ -27,5 +41,6 @@ var MyClass = (function () { MyClass.prototype.myMethod = function () { var x = this.callableThing(); }; + __names(MyClass.prototype, ["myMethod"]); return MyClass; }()); diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js index b7c0ca2a0db60..dd1ca4bba5a3b 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js @@ -9,6 +9,20 @@ var lazyArray = new LazyArray(); var value: string = lazyArray.array()["test"]; // used to be an error //// [genericWithIndexerOfTypeParameterType1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var LazyArray = (function () { function LazyArray() { this.objects = {}; @@ -16,6 +30,7 @@ var LazyArray = (function () { LazyArray.prototype.array = function () { return this.objects; }; + __names(LazyArray.prototype, ["array"]); return LazyArray; }()); var lazyArray = new LazyArray(); diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js index 3f5e3dcfe8e6e..0c56f496e6e73 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -40,6 +54,7 @@ define(["require", "exports"], function (require, exports) { return _super !== null && _super.apply(this, arguments) || this; } List.prototype.Bar = function () { }; + __names(List.prototype, ["Bar"]); return List; }(Collection)); exports.List = List; diff --git a/tests/baselines/reference/genericWithOpenTypeParameters1.js b/tests/baselines/reference/genericWithOpenTypeParameters1.js index 90ea23e43ef2e..a6e656349a6ee 100644 --- a/tests/baselines/reference/genericWithOpenTypeParameters1.js +++ b/tests/baselines/reference/genericWithOpenTypeParameters1.js @@ -12,10 +12,25 @@ var f4 = (x: B) => { return x.foo(1); } // no error //// [genericWithOpenTypeParameters1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var x; diff --git a/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js b/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js index 43e933cd0fc72..c860a22889628 100644 --- a/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js +++ b/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js @@ -17,6 +17,20 @@ var m = { } //// [genericsWithDuplicateTypeParameters1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f() { } function f2(a, b) { return null; } var C = (function () { @@ -24,6 +38,7 @@ var C = (function () { } C.prototype.f = function () { }; C.prototype.f2 = function (a, b) { return null; }; + __names(C.prototype, ["f", "f2"]); return C; }()); var m = { diff --git a/tests/baselines/reference/genericsWithoutTypeParameters1.js b/tests/baselines/reference/genericsWithoutTypeParameters1.js index 443dd72da2334..ffc23aca680fd 100644 --- a/tests/baselines/reference/genericsWithoutTypeParameters1.js +++ b/tests/baselines/reference/genericsWithoutTypeParameters1.js @@ -34,10 +34,25 @@ function f(x: T): A { } //// [genericsWithoutTypeParameters1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var c1; diff --git a/tests/baselines/reference/getAndSetAsMemberNames.js b/tests/baselines/reference/getAndSetAsMemberNames.js index 0b0d8ff7e0131..7d04d2b76610b 100644 --- a/tests/baselines/reference/getAndSetAsMemberNames.js +++ b/tests/baselines/reference/getAndSetAsMemberNames.js @@ -22,6 +22,20 @@ class C5 { //// [getAndSetAsMemberNames.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { this.get = 1; @@ -39,6 +53,7 @@ var C3 = (function () { C3.prototype.set = function (x) { return x + 1; }; + __names(C3.prototype, ["set"]); return C3; }()); var C4 = (function () { @@ -57,5 +72,6 @@ var C5 = (function () { enumerable: true, configurable: true }); + __names(C5.prototype, ["get"]); return C5; }()); diff --git a/tests/baselines/reference/getterControlFlowStrictNull.js b/tests/baselines/reference/getterControlFlowStrictNull.js index c3f7e410d0a7c..b752ea5df4b42 100644 --- a/tests/baselines/reference/getterControlFlowStrictNull.js +++ b/tests/baselines/reference/getterControlFlowStrictNull.js @@ -19,6 +19,20 @@ class B { } //// [getterControlFlowStrictNull.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -28,6 +42,7 @@ var A = (function () { } // it does error here as expected }; + __names(A.prototype, ["a"]); return A; }()); var B = (function () { diff --git a/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js b/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js index e38058fbebf5c..aa92a19c81c55 100644 --- a/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js +++ b/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js @@ -10,6 +10,20 @@ class Greeter { //// [getterThatThrowsShouldNotNeedReturn.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Greeter = (function () { function Greeter() { } @@ -23,5 +37,6 @@ var Greeter = (function () { Greeter.prototype.greeting = function () { throw ''; // should not raise an error }; + __names(Greeter.prototype, ["greeting"]); return Greeter; }()); diff --git a/tests/baselines/reference/giant.js b/tests/baselines/reference/giant.js index 71f78eeac53d8..94535444c75ea 100644 --- a/tests/baselines/reference/giant.js +++ b/tests/baselines/reference/giant.js @@ -681,6 +681,20 @@ export declare module eaM { } //// [giant.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -742,6 +756,7 @@ define(["require", "exports"], function (require, exports) { enumerable: true, configurable: true }); + __names(C.prototype, ["pF", "rF", "pgF", "psF", "rgF", "rsF"]); return C; }()); var M; @@ -791,6 +806,7 @@ define(["require", "exports"], function (require, exports) { enumerable: true, configurable: true }); + __names(C.prototype, ["pF", "rF", "pgF", "psF", "rgF", "rsF"]); return C; }()); var M; @@ -867,6 +883,7 @@ define(["require", "exports"], function (require, exports) { enumerable: true, configurable: true }); + __names(eC.prototype, ["pF", "rF", "pgF", "psF", "rgF", "rsF"]); return eC; }()); M_1.eC = eC; @@ -946,6 +963,7 @@ define(["require", "exports"], function (require, exports) { enumerable: true, configurable: true }); + __names(eC.prototype, ["pF", "rF", "pgF", "psF", "rgF", "rsF"]); return eC; }()); exports.eC = eC; @@ -996,6 +1014,7 @@ define(["require", "exports"], function (require, exports) { enumerable: true, configurable: true }); + __names(C.prototype, ["pF", "rF", "pgF", "psF", "rgF", "rsF"]); return C; }()); var M; @@ -1072,6 +1091,7 @@ define(["require", "exports"], function (require, exports) { enumerable: true, configurable: true }); + __names(eC.prototype, ["pF", "rF", "pgF", "psF", "rgF", "rsF"]); return eC; }()); eM_1.eC = eC; diff --git a/tests/baselines/reference/grammarAmbiguities1.js b/tests/baselines/reference/grammarAmbiguities1.js index f650030fd44f2..338f5f5d8676a 100644 --- a/tests/baselines/reference/grammarAmbiguities1.js +++ b/tests/baselines/reference/grammarAmbiguities1.js @@ -11,16 +11,32 @@ f(g < A, B > +(7)); //// [grammarAmbiguities1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.bar = function () { }; + __names(B.prototype, ["bar"]); return B; }()); function f(x) { return x; } diff --git a/tests/baselines/reference/heterogeneousArrayAndOverloads.js b/tests/baselines/reference/heterogeneousArrayAndOverloads.js index b9ef4bc4b6e6a..6e0630735a737 100644 --- a/tests/baselines/reference/heterogeneousArrayAndOverloads.js +++ b/tests/baselines/reference/heterogeneousArrayAndOverloads.js @@ -12,6 +12,20 @@ class arrTest { } //// [heterogeneousArrayAndOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var arrTest = (function () { function arrTest() { } @@ -22,5 +36,6 @@ var arrTest = (function () { this.test([]); this.test([1, 2, "hi", 5]); // Error }; + __names(arrTest.prototype, ["test", "callTest"]); return arrTest; }()); diff --git a/tests/baselines/reference/implementGenericWithMismatchedTypes.js b/tests/baselines/reference/implementGenericWithMismatchedTypes.js index e9c3a0e0ffd43..b83d66f63431c 100644 --- a/tests/baselines/reference/implementGenericWithMismatchedTypes.js +++ b/tests/baselines/reference/implementGenericWithMismatchedTypes.js @@ -23,12 +23,27 @@ class C2 implements IFoo2 { // error //// [implementGenericWithMismatchedTypes.js] // no errors because in the derived types the best common type for T's value is Object // and that matches the original signature for assignability since we treat its T's as Object +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function () { @@ -37,5 +52,6 @@ var C2 = (function () { C2.prototype.foo = function (x) { return null; }; + __names(C2.prototype, ["foo"]); return C2; }()); diff --git a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js index ec2406f65fd9e..2cdd7fc51b637 100644 --- a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js +++ b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js @@ -10,10 +10,25 @@ class Bug implements I { //// [implementInterfaceAnyMemberWithVoid.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Bug = (function () { function Bug() { } Bug.prototype.foo = function (value) { }; + __names(Bug.prototype, ["foo"]); return Bug; }()); diff --git a/tests/baselines/reference/implementsClauseAlreadySeen.js b/tests/baselines/reference/implementsClauseAlreadySeen.js index 0aa3afe4b3e4f..9140fcf662cac 100644 --- a/tests/baselines/reference/implementsClauseAlreadySeen.js +++ b/tests/baselines/reference/implementsClauseAlreadySeen.js @@ -7,6 +7,20 @@ class D implements C implements C { } //// [implementsClauseAlreadySeen.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -16,5 +30,6 @@ var D = (function () { function D() { } D.prototype.baz = function () { }; + __names(D.prototype, ["baz"]); return D; }()); diff --git a/tests/baselines/reference/implementsInClassExpression.js b/tests/baselines/reference/implementsInClassExpression.js index eefd058ec2e2c..394cdd9d666d3 100644 --- a/tests/baselines/reference/implementsInClassExpression.js +++ b/tests/baselines/reference/implementsInClassExpression.js @@ -8,9 +8,24 @@ let cls = class implements Foo { } //// [implementsInClassExpression.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var cls = (function () { function class_1() { } class_1.prototype.doThing = function () { }; + __names(class_1.prototype, ["doThing"]); return class_1; }()); diff --git a/tests/baselines/reference/implicitAnyAnyReturningFunction.js b/tests/baselines/reference/implicitAnyAnyReturningFunction.js index 13fe799a852df..36c224daeab79 100644 --- a/tests/baselines/reference/implicitAnyAnyReturningFunction.js +++ b/tests/baselines/reference/implicitAnyAnyReturningFunction.js @@ -21,6 +21,20 @@ class C { //// [implicitAnyAnyReturningFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function A() { return ""; } @@ -38,6 +52,7 @@ var C = (function () { var someLocal = {}; return someLocal; }; + __names(C.prototype, ["A", "B"]); return C; }()); diff --git a/tests/baselines/reference/implicitAnyCastedValue.js b/tests/baselines/reference/implicitAnyCastedValue.js index 372f14647a179..d7041ebbe98a0 100644 --- a/tests/baselines/reference/implicitAnyCastedValue.js +++ b/tests/baselines/reference/implicitAnyCastedValue.js @@ -79,6 +79,20 @@ var bar3 = 0; var array = [null, undefined]; //// [implicitAnyCastedValue.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var x = function () { return 0; // this should not be an error }; @@ -103,6 +117,7 @@ var C = (function () { C.prototype.returnFooWithCase = function () { return this.foo; // this should not be an error }; + __names(C.prototype, ["returnBarWithCase", "returnFooWithCase"]); return C; }()); var C1 = (function () { diff --git a/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js b/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js index a3a2e3d4b3115..bcc503007f6b9 100644 --- a/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js +++ b/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js @@ -10,11 +10,26 @@ class C { //// [implicitAnyDeclareMemberWithoutType2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // this should be an error var C = (function () { function C(c1, c2, c3) { this.x = null; // error at "x" } // error at "c1, c2" C.prototype.funcOfC = function (f1, f2, f3) { }; // error at "f1,f2" + __names(C.prototype, ["funcOfC"]); return C; }()); diff --git a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js index 69740a0ad31ef..e568656653eb6 100644 --- a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js +++ b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js @@ -25,6 +25,20 @@ undefinedWidenFunction(); //// [implicitAnyFunctionReturnNullOrUndefined.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // this should be an error function nullWidenFunction() { return null; } // error at "nullWidenFunction" function undefinedWidenFunction() { return undefined; } // error at "undefinedWidenFunction" @@ -37,6 +51,7 @@ var C = (function () { C.prototype.underfinedWidenFuncOfC = function () { return undefined; }; + __names(C.prototype, ["nullWidenFuncOfC", "underfinedWidenFuncOfC"]); return C; }()); // this should not be an error diff --git a/tests/baselines/reference/implicitAnyInCatch.js b/tests/baselines/reference/implicitAnyInCatch.js index f833135f00d30..108ddbc0c5022 100644 --- a/tests/baselines/reference/implicitAnyInCatch.js +++ b/tests/baselines/reference/implicitAnyInCatch.js @@ -15,6 +15,20 @@ class C { //// [implicitAnyInCatch.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // this should not be an error try { } catch (error) { @@ -28,5 +42,6 @@ var C = (function () { for (var x in this) { } }; + __names(C.prototype, ["temp"]); return C; }()); diff --git a/tests/baselines/reference/importAndVariableDeclarationConflict2.js b/tests/baselines/reference/importAndVariableDeclarationConflict2.js index 221fd20e7ecea..ef509edde86e0 100644 --- a/tests/baselines/reference/importAndVariableDeclarationConflict2.js +++ b/tests/baselines/reference/importAndVariableDeclarationConflict2.js @@ -12,6 +12,20 @@ class C { } //// [importAndVariableDeclarationConflict2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m; (function (m_1) { m_1.m = ''; @@ -23,5 +37,6 @@ var C = (function () { C.prototype.foo = function () { var x = ''; }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/importAsBaseClass.js b/tests/baselines/reference/importAsBaseClass.js index 725390825c605..1ee5c4b339288 100644 --- a/tests/baselines/reference/importAsBaseClass.js +++ b/tests/baselines/reference/importAsBaseClass.js @@ -12,11 +12,26 @@ class Hello extends Greeter { } //// [importAsBaseClass_0.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Greeter = (function () { function Greeter() { } Greeter.prototype.greet = function () { return 'greet'; }; + __names(Greeter.prototype, ["greet"]); return Greeter; }()); exports.Greeter = Greeter; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3AMD.js b/tests/baselines/reference/importCallExpressionAsyncES3AMD.js index f0246f4ce5e86..5d24857a9050a 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3AMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3AMD.js @@ -29,6 +29,20 @@ export const l = async () => { //// [test.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -100,6 +114,7 @@ define(["require", "exports"], function (require, exports) { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports.cl1 = cl1; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3CJS.js b/tests/baselines/reference/importCallExpressionAsyncES3CJS.js index 6b4006e05be0a..2713fd6eb5802 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3CJS.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3CJS.js @@ -30,6 +30,20 @@ export const l = async () => { //// [test.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -99,6 +113,7 @@ var cl1 = (function () { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports.cl1 = cl1; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3System.js b/tests/baselines/reference/importCallExpressionAsyncES3System.js index 542ce1080396f..76601c5dbd083 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3System.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3System.js @@ -31,6 +31,20 @@ export const l = async () => { //// [test.js] System.register([], function (exports_1, context_1) { "use strict"; + var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; + })(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -104,6 +118,7 @@ System.register([], function (exports_1, context_1) { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports_1("cl1", cl1); diff --git a/tests/baselines/reference/importCallExpressionAsyncES3UMD.js b/tests/baselines/reference/importCallExpressionAsyncES3UMD.js index 4404cad5937a2..e02be9b98bd4e 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3UMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3UMD.js @@ -29,6 +29,20 @@ export const l = async () => { //// [test.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -109,6 +123,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports.cl1 = cl1; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.js b/tests/baselines/reference/importCallExpressionAsyncES5AMD.js index 8e7b2005e787b..3b91349248fa4 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5AMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD.js @@ -29,6 +29,20 @@ export const l = async () => { //// [test.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -100,6 +114,7 @@ define(["require", "exports"], function (require, exports) { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports.cl1 = cl1; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS.js b/tests/baselines/reference/importCallExpressionAsyncES5CJS.js index 2e04783fa89d6..fe1dcb55d62f8 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5CJS.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5CJS.js @@ -30,6 +30,20 @@ export const l = async () => { //// [test.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -99,6 +113,7 @@ var cl1 = (function () { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports.cl1 = cl1; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.js b/tests/baselines/reference/importCallExpressionAsyncES5System.js index b7d89d158b178..b7d79d0335d61 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5System.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5System.js @@ -31,6 +31,20 @@ export const l = async () => { //// [test.js] System.register([], function (exports_1, context_1) { "use strict"; + var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; + })(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -104,6 +118,7 @@ System.register([], function (exports_1, context_1) { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports_1("cl1", cl1); diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.js b/tests/baselines/reference/importCallExpressionAsyncES5UMD.js index 102d78cfa0592..8dc8d47e9385c 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5UMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD.js @@ -29,6 +29,20 @@ export const l = async () => { //// [test.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -109,6 +123,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { }); }); }; + __names(cl1.prototype, ["m"]); return cl1; }()); exports.cl1 = cl1; diff --git a/tests/baselines/reference/importCallExpressionES5AMD.js b/tests/baselines/reference/importCallExpressionES5AMD.js index 8fa22d81dc9ae..fb3ffc29e67a6 100644 --- a/tests/baselines/reference/importCallExpressionES5AMD.js +++ b/tests/baselines/reference/importCallExpressionES5AMD.js @@ -36,6 +36,20 @@ define(["require", "exports"], function (require, exports) { exports.foo = foo; }); //// [1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -54,6 +68,7 @@ define(["require", "exports"], function (require, exports) { C.prototype.method = function () { var loadAsync = new Promise(function (resolve_5, reject_5) { require(["./0"], resolve_5, reject_5); }); }; + __names(C.prototype, ["method"]); return C; }()); var D = (function () { @@ -62,6 +77,7 @@ define(["require", "exports"], function (require, exports) { D.prototype.method = function () { var loadAsync = new Promise(function (resolve_6, reject_6) { require(["./0"], resolve_6, reject_6); }); }; + __names(D.prototype, ["method"]); return D; }()); exports.D = D; diff --git a/tests/baselines/reference/importCallExpressionES5CJS.js b/tests/baselines/reference/importCallExpressionES5CJS.js index 2cf5d3157e21b..f0efc3bb98593 100644 --- a/tests/baselines/reference/importCallExpressionES5CJS.js +++ b/tests/baselines/reference/importCallExpressionES5CJS.js @@ -35,6 +35,20 @@ function foo() { return "foo"; } exports.foo = foo; //// [1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); Promise.resolve().then(function () { return require("./0"); }); var p1 = Promise.resolve().then(function () { return require("./0"); }); @@ -51,6 +65,7 @@ var C = (function () { C.prototype.method = function () { var loadAsync = Promise.resolve().then(function () { return require("./0"); }); }; + __names(C.prototype, ["method"]); return C; }()); var D = (function () { @@ -59,6 +74,7 @@ var D = (function () { D.prototype.method = function () { var loadAsync = Promise.resolve().then(function () { return require("./0"); }); }; + __names(D.prototype, ["method"]); return D; }()); exports.D = D; diff --git a/tests/baselines/reference/importCallExpressionES5System.js b/tests/baselines/reference/importCallExpressionES5System.js index 3dabfce80c9ab..e54c182356a29 100644 --- a/tests/baselines/reference/importCallExpressionES5System.js +++ b/tests/baselines/reference/importCallExpressionES5System.js @@ -43,6 +43,20 @@ System.register([], function (exports_1, context_1) { //// [1.js] System.register([], function (exports_1, context_1) { "use strict"; + var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; + })(); var __moduleName = context_1 && context_1.id; function foo() { var p2 = context_1.import("./0"); @@ -63,6 +77,7 @@ System.register([], function (exports_1, context_1) { C.prototype.method = function () { var loadAsync = context_1.import("./0"); }; + __names(C.prototype, ["method"]); return C; }()); D = (function () { @@ -71,6 +86,7 @@ System.register([], function (exports_1, context_1) { D.prototype.method = function () { var loadAsync = context_1.import("./0"); }; + __names(D.prototype, ["method"]); return D; }()); exports_1("D", D); diff --git a/tests/baselines/reference/importCallExpressionES5UMD.js b/tests/baselines/reference/importCallExpressionES5UMD.js index 5727744aa7129..124ceae6cf6c2 100644 --- a/tests/baselines/reference/importCallExpressionES5UMD.js +++ b/tests/baselines/reference/importCallExpressionES5UMD.js @@ -44,6 +44,20 @@ export class D { exports.foo = foo; }); //// [1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); @@ -71,6 +85,7 @@ export class D { C.prototype.method = function () { var loadAsync = __syncRequire ? Promise.resolve().then(function () { return require("./0"); }) : new Promise(function (resolve_5, reject_5) { require(["./0"], resolve_5, reject_5); }); }; + __names(C.prototype, ["method"]); return C; }()); var D = (function () { @@ -79,6 +94,7 @@ export class D { D.prototype.method = function () { var loadAsync = __syncRequire ? Promise.resolve().then(function () { return require("./0"); }) : new Promise(function (resolve_6, reject_6) { require(["./0"], resolve_6, reject_6); }); }; + __names(D.prototype, ["method"]); return D; }()); exports.D = D; diff --git a/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js b/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js index 598056a32c61d..2ed528c9b6644 100644 --- a/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js +++ b/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js @@ -28,11 +28,26 @@ class C { //// [0.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var B = (function () { function B() { } B.prototype.print = function () { return "I am B"; }; + __names(B.prototype, ["print"]); return B; }()); exports.B = B; @@ -44,6 +59,20 @@ exports.__esModule = true; function backup() { return "backup"; } exports.backup = backup; //// [2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } @@ -103,5 +132,6 @@ var C = (function () { }); }); }); }; + __names(C.prototype, ["method"]); return C; }()); diff --git a/tests/baselines/reference/importHelpers.js b/tests/baselines/reference/importHelpers.js index 4fc7b99a813d3..e3eb19bd4869d 100644 --- a/tests/baselines/reference/importHelpers.js +++ b/tests/baselines/reference/importHelpers.js @@ -56,6 +56,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + tslib_1.__names(C.prototype, ["method"]); tslib_1.__decorate([ tslib_1.__param(0, dec), tslib_1.__metadata("design:type", Function), @@ -78,6 +79,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -107,6 +122,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + __names(C.prototype, ["method"]); __decorate([ __param(0, dec), __metadata("design:type", Function), diff --git a/tests/baselines/reference/importHelpersInIsolatedModules.js b/tests/baselines/reference/importHelpersInIsolatedModules.js index 561bfebb351ca..43884c7284888 100644 --- a/tests/baselines/reference/importHelpersInIsolatedModules.js +++ b/tests/baselines/reference/importHelpersInIsolatedModules.js @@ -56,6 +56,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + tslib_1.__names(C.prototype, ["method"]); tslib_1.__decorate([ tslib_1.__param(0, dec), tslib_1.__metadata("design:type", Function), @@ -86,6 +87,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + tslib_1.__names(C.prototype, ["method"]); tslib_1.__decorate([ tslib_1.__param(0, dec), tslib_1.__metadata("design:type", Function), diff --git a/tests/baselines/reference/importHelpersNoHelpers.js b/tests/baselines/reference/importHelpersNoHelpers.js index ec1b21d797c53..e791e2670d6cf 100644 --- a/tests/baselines/reference/importHelpersNoHelpers.js +++ b/tests/baselines/reference/importHelpersNoHelpers.js @@ -64,6 +64,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + tslib_1.__names(C.prototype, ["method"]); tslib_1.__decorate([ tslib_1.__param(0, dec), tslib_1.__metadata("design:type", Function), @@ -89,6 +90,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -118,6 +133,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + __names(C.prototype, ["method"]); __decorate([ __param(0, dec), __metadata("design:type", Function), diff --git a/tests/baselines/reference/importHelpersNoModule.js b/tests/baselines/reference/importHelpersNoModule.js index 988bec04a427d..8206569c95aae 100644 --- a/tests/baselines/reference/importHelpersNoModule.js +++ b/tests/baselines/reference/importHelpersNoModule.js @@ -48,6 +48,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + tslib_1.__names(C.prototype, ["method"]); tslib_1.__decorate([ tslib_1.__param(0, dec), tslib_1.__metadata("design:type", Function), @@ -70,6 +71,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -99,6 +114,7 @@ var C = (function () { } C.prototype.method = function (x) { }; + __names(C.prototype, ["method"]); __decorate([ __param(0, dec), __metadata("design:type", Function), diff --git a/tests/baselines/reference/import_reference-exported-alias.js b/tests/baselines/reference/import_reference-exported-alias.js index b3d607a6943a6..d9960f7a4bcec 100644 --- a/tests/baselines/reference/import_reference-exported-alias.js +++ b/tests/baselines/reference/import_reference-exported-alias.js @@ -22,6 +22,20 @@ var x = new UserServices().getUserName(); //// [file1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; var App; @@ -34,6 +48,7 @@ define(["require", "exports"], function (require, exports) { UserServices.prototype.getUserName = function () { return "Bill Gates"; }; + __names(UserServices.prototype, ["getUserName"]); return UserServices; }()); Services.UserServices = UserServices; diff --git a/tests/baselines/reference/import_reference-to-type-alias.js b/tests/baselines/reference/import_reference-to-type-alias.js index c6771d47bae30..78ff1c1742167 100644 --- a/tests/baselines/reference/import_reference-to-type-alias.js +++ b/tests/baselines/reference/import_reference-to-type-alias.js @@ -18,6 +18,20 @@ var x = new Services.UserServices().getUserName(); //// [file1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -31,6 +45,7 @@ define(["require", "exports"], function (require, exports) { UserServices.prototype.getUserName = function () { return "Bill Gates"; }; + __names(UserServices.prototype, ["getUserName"]); return UserServices; }()); Services.UserServices = UserServices; diff --git a/tests/baselines/reference/importedAliasesInTypePositions.js b/tests/baselines/reference/importedAliasesInTypePositions.js index b82ac22f4ede4..6e6db567731e7 100644 --- a/tests/baselines/reference/importedAliasesInTypePositions.js +++ b/tests/baselines/reference/importedAliasesInTypePositions.js @@ -19,6 +19,20 @@ export module ImportingModule { } //// [file1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -35,6 +49,7 @@ define(["require", "exports"], function (require, exports) { } ReferredTo.prototype.doSomething = function () { }; + __names(ReferredTo.prototype, ["doSomething"]); return ReferredTo; }()); name.ReferredTo = ReferredTo; diff --git a/tests/baselines/reference/inOperatorWithGeneric.js b/tests/baselines/reference/inOperatorWithGeneric.js index eb2df95bbde5b..d06b2bcda9b2d 100644 --- a/tests/baselines/reference/inOperatorWithGeneric.js +++ b/tests/baselines/reference/inOperatorWithGeneric.js @@ -7,6 +7,20 @@ class C { } //// [inOperatorWithGeneric.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -14,5 +28,6 @@ var C = (function () { for (var p in x) { } }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js b/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js index 677d177a4d01a..aba26303e18d4 100644 --- a/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js +++ b/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js @@ -10,11 +10,26 @@ class Foo { //// [incompatibleAssignmentOfIdenticallyNamedTypes.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.fn = function () { this.x = a; }; + __names(Foo.prototype, ["fn"]); return Foo; }()); diff --git a/tests/baselines/reference/incompatibleTypes.js b/tests/baselines/reference/incompatibleTypes.js index 6f786aee354e2..0d62a50d4281e 100644 --- a/tests/baselines/reference/incompatibleTypes.js +++ b/tests/baselines/reference/incompatibleTypes.js @@ -76,12 +76,27 @@ var fp1: () =>any = a => 0; //// [incompatibleTypes.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } C1.prototype.p1 = function () { return "s"; }; + __names(C1.prototype, ["p1"]); return C1; }()); var C2 = (function () { @@ -90,6 +105,7 @@ var C2 = (function () { C2.prototype.p1 = function (n) { return 0; }; + __names(C2.prototype, ["p1"]); return C2; }()); var C3 = (function () { diff --git a/tests/baselines/reference/incrementOnTypeParameter.js b/tests/baselines/reference/incrementOnTypeParameter.js index 2f3de20c4193b..4d29b1ea332ce 100644 --- a/tests/baselines/reference/incrementOnTypeParameter.js +++ b/tests/baselines/reference/incrementOnTypeParameter.js @@ -10,6 +10,20 @@ class C { //// [incrementOnTypeParameter.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -18,5 +32,6 @@ var C = (function () { for (var i, j = 0; j < 10; i++) { } }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/indexTypeCheck.js b/tests/baselines/reference/indexTypeCheck.js index bed15a58ae2d9..0f07864d33100 100644 --- a/tests/baselines/reference/indexTypeCheck.js +++ b/tests/baselines/reference/indexTypeCheck.js @@ -64,6 +64,20 @@ class Benchmark { } //// [indexTypeCheck.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var yellow; var blue; var s = "some string"; @@ -83,5 +97,6 @@ var Benchmark = (function () { Benchmark.prototype.addTimingFor = function (name, timing) { this.results[name] = this.results[name]; }; + __names(Benchmark.prototype, ["addTimingFor"]); return Benchmark; }()); diff --git a/tests/baselines/reference/indexedAccessRelation.js b/tests/baselines/reference/indexedAccessRelation.js index 10384c9eacd28..a83dfec1618cb 100644 --- a/tests/baselines/reference/indexedAccessRelation.js +++ b/tests/baselines/reference/indexedAccessRelation.js @@ -22,6 +22,20 @@ class Comp extends Component> //// [indexedAccessRelation.js] "use strict"; // Repro from #14723 +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -37,6 +51,7 @@ var Component = (function () { function Component() { } Component.prototype.setState = function (state) { }; + __names(Component.prototype, ["setState"]); return Component; }()); var Foo = (function () { @@ -52,5 +67,6 @@ var Comp = (function (_super) { Comp.prototype.foo = function (a) { this.setState({ a: a }); }; + __names(Comp.prototype, ["foo"]); return Comp; }(Component)); diff --git a/tests/baselines/reference/indexedAccessTypeConstraints.js b/tests/baselines/reference/indexedAccessTypeConstraints.js index 075e93dfa2353..8f1123fca31dd 100644 --- a/tests/baselines/reference/indexedAccessTypeConstraints.js +++ b/tests/baselines/reference/indexedAccessTypeConstraints.js @@ -38,6 +38,20 @@ function foo(x: C, y: T['content']) { //// [indexedAccessTypeConstraints.js] "use strict"; // Repro from #14557 +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -55,6 +69,7 @@ var Parent = (function () { Parent.prototype.getData = function () { return this.data; }; + __names(Parent.prototype, ["getData"]); return Parent; }()); var Foo = (function (_super) { @@ -65,6 +80,7 @@ var Foo = (function (_super) { Foo.prototype.getContent = function () { return this.getData().get('content'); }; + __names(Foo.prototype, ["getContent"]); return Foo; }(Parent)); exports.Foo = Foo; @@ -76,6 +92,7 @@ var Bar = (function (_super) { Bar.prototype.getContent = function () { return this.getData().get('content'); }; + __names(Bar.prototype, ["getContent"]); return Bar; }(Parent)); exports.Bar = Bar; diff --git a/tests/baselines/reference/indexerReturningTypeParameter1.js b/tests/baselines/reference/indexerReturningTypeParameter1.js index cdc1bdf19d1e5..0118a439178a1 100644 --- a/tests/baselines/reference/indexerReturningTypeParameter1.js +++ b/tests/baselines/reference/indexerReturningTypeParameter1.js @@ -14,6 +14,20 @@ var a2: c; var r2 = a2.groupBy(); //// [indexerReturningTypeParameter1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a; var r = a.groupBy(); var c = (function () { @@ -22,6 +36,7 @@ var c = (function () { c.prototype.groupBy = function () { return null; }; + __names(c.prototype, ["groupBy"]); return c; }()); var a2; diff --git a/tests/baselines/reference/indexersInClassType.js b/tests/baselines/reference/indexersInClassType.js index 9b085aa8fe279..26d10a88a8e6f 100644 --- a/tests/baselines/reference/indexersInClassType.js +++ b/tests/baselines/reference/indexersInClassType.js @@ -18,12 +18,27 @@ var r3 = r.a //// [indexersInClassType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.fn = function () { return this; }; + __names(C.prototype, ["fn"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js b/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js index 0c3cf4b0cbeb6..0254e63ab614e 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js @@ -73,6 +73,20 @@ testSet.transform( //// [inferFromGenericFunctionReturnTypes1.js] // Repro from #15680 +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // This is a contrived class. We could do the same thing with Observables, etc. var SetOf = (function () { function SetOf() { @@ -86,6 +100,7 @@ var SetOf = (function () { SetOf.prototype.forEach = function (fn) { this._store.forEach(function (a, i) { return fn(a, i); }); }; + __names(SetOf.prototype, ["add", "transform", "forEach"]); return SetOf; }()); /* ... etc ... */ diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js b/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js index 3f95b10d08a08..697965123c5ab 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js @@ -96,6 +96,20 @@ const t2 = testSet.transform( //// [inferFromGenericFunctionReturnTypes2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var f1 = function (s) { return s.length; }; var f2 = wrap(function (s) { return s.length; }); var f3 = arrayize(wrap(function (s) { return s.length; })); @@ -120,6 +134,7 @@ var SetOf = (function () { SetOf.prototype.forEach = function (fn) { this._store.forEach(function (a, i) { return fn(a, i); }); }; + __names(SetOf.prototype, ["add", "transform", "forEach"]); return SetOf; }()); /* ... etc ... */ diff --git a/tests/baselines/reference/inferParameterWithMethodCallInitializer.js b/tests/baselines/reference/inferParameterWithMethodCallInitializer.js index 5b33f78f766b8..8bbb7c9ee0098 100644 --- a/tests/baselines/reference/inferParameterWithMethodCallInitializer.js +++ b/tests/baselines/reference/inferParameterWithMethodCallInitializer.js @@ -21,6 +21,20 @@ class Weird { //// [inferParameterWithMethodCallInitializer.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function getNumber() { return 1; } @@ -34,6 +48,7 @@ var Example = (function () { if (a === void 0) { a = this.getNumber(); } return a; }; + __names(Example.prototype, ["getNumber", "doSomething"]); return Example; }()); function weird(a) { @@ -47,5 +62,6 @@ var Weird = (function () { if (a === void 0) { a = this.getNumber(); } return a; }; + __names(Weird.prototype, ["doSomething"]); return Weird; }()); diff --git a/tests/baselines/reference/inferentialTypingUsingApparentType3.js b/tests/baselines/reference/inferentialTypingUsingApparentType3.js index f637537536699..3d5863da48954 100644 --- a/tests/baselines/reference/inferentialTypingUsingApparentType3.js +++ b/tests/baselines/reference/inferentialTypingUsingApparentType3.js @@ -27,12 +27,27 @@ var person = new ObjectField({ person.fields.id; //// [inferentialTypingUsingApparentType3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var CharField = (function () { function CharField() { } CharField.prototype.clean = function (input) { return "Yup"; }; + __names(CharField.prototype, ["clean"]); return CharField; }()); var NumberField = (function () { @@ -41,6 +56,7 @@ var NumberField = (function () { NumberField.prototype.clean = function (input) { return 123; }; + __names(NumberField.prototype, ["clean"]); return NumberField; }()); var ObjectField = (function () { diff --git a/tests/baselines/reference/inferringClassMembersFromAssignments.js b/tests/baselines/reference/inferringClassMembersFromAssignments.js index c6a6d0c4e27d0..e2dd0ec5d6aae 100644 --- a/tests/baselines/reference/inferringClassMembersFromAssignments.js +++ b/tests/baselines/reference/inferringClassMembersFromAssignments.js @@ -124,6 +124,20 @@ var stringOrNumberOrUndefined = C.inStaticNestedArrowFunction; //// [output.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { var _this = this; @@ -211,6 +225,7 @@ var C = (function () { this.inStaticSetter = "string"; } }; + __names(C.prototype, ["method", "get", "set"]); C.prop = function () { if (Math.random()) { _this.inStaticPropertyDeclaration = 0; diff --git a/tests/baselines/reference/inheritance.js b/tests/baselines/reference/inheritance.js index 48d96b10f9c50..c85f3d77f5432 100644 --- a/tests/baselines/reference/inheritance.js +++ b/tests/baselines/reference/inheritance.js @@ -45,6 +45,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B1 = (function () { function B1() { } @@ -86,6 +100,7 @@ var Good = (function () { this.f = function () { return 0; }; } Good.prototype.g = function () { return 0; }; + __names(Good.prototype, ["g"]); return Good; }()); var Baad = (function (_super) { @@ -95,5 +110,6 @@ var Baad = (function (_super) { } Baad.prototype.f = function () { return 0; }; Baad.prototype.g = function (n) { return 0; }; + __names(Baad.prototype, ["f", "g"]); return Baad; }(Good)); diff --git a/tests/baselines/reference/inheritance1.js b/tests/baselines/reference/inheritance1.js index a00330e855688..6c9c479d38373 100644 --- a/tests/baselines/reference/inheritance1.js +++ b/tests/baselines/reference/inheritance1.js @@ -72,6 +72,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Control = (function () { function Control() { } @@ -83,6 +97,7 @@ var Button = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Button.prototype.select = function () { }; + __names(Button.prototype, ["select"]); return Button; }(Control)); var TextBox = (function (_super) { @@ -91,6 +106,7 @@ var TextBox = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } TextBox.prototype.select = function () { }; + __names(TextBox.prototype, ["select"]); return TextBox; }(Control)); var ImageBase = (function (_super) { @@ -111,12 +127,14 @@ var Locations = (function () { function Locations() { } Locations.prototype.select = function () { }; + __names(Locations.prototype, ["select"]); return Locations; }()); var Locations1 = (function () { function Locations1() { } Locations1.prototype.select = function () { }; + __names(Locations1.prototype, ["select"]); return Locations1; }()); var sc; diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js index 52ab48573fd38..7bd14f8adb699 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js @@ -11,6 +11,20 @@ class C extends B { //// [inheritanceGrandParentPrivateMemberCollision.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -25,6 +39,7 @@ var A = (function () { function A() { } A.prototype.myMethod = function () { }; + __names(A.prototype, ["myMethod"]); return A; }()); var B = (function (_super) { @@ -40,5 +55,6 @@ var C = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C.prototype.myMethod = function () { }; + __names(C.prototype, ["myMethod"]); return C; }(B)); diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js index c64a0e4259c6c..9e0a47e12aba1 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js @@ -11,6 +11,20 @@ class C extends B { //// [inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -25,6 +39,7 @@ var A = (function () { function A() { } A.prototype.myMethod = function () { }; + __names(A.prototype, ["myMethod"]); return A; }()); var B = (function (_super) { @@ -40,5 +55,6 @@ var C = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C.prototype.myMethod = function () { }; + __names(C.prototype, ["myMethod"]); return C; }(B)); diff --git a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js index 9ac0fe1859250..143a44aedac3d 100644 --- a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js @@ -11,6 +11,20 @@ class C extends B { //// [inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -25,6 +39,7 @@ var A = (function () { function A() { } A.prototype.myMethod = function () { }; + __names(A.prototype, ["myMethod"]); return A; }()); var B = (function (_super) { @@ -40,5 +55,6 @@ var C = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C.prototype.myMethod = function () { }; + __names(C.prototype, ["myMethod"]); return C; }(B)); diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js index 3fc6417afafe4..6e69db49c21f9 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js @@ -15,6 +15,20 @@ class b extends a { } //// [inheritanceMemberAccessorOverridingMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -31,6 +45,7 @@ var a = (function () { a.prototype.x = function () { return "20"; }; + __names(a.prototype, ["x"]); return a; }()); var b = (function (_super) { diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js index 93b72b73c8b0b..9a6406f0fac74 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a = (function () { function a() { } @@ -47,5 +61,6 @@ var b = (function (_super) { b.prototype.x = function () { return "20"; }; + __names(b.prototype, ["x"]); return b; }(a)); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js index 0f189aa50cc97..8f8053a4093bd 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js @@ -12,6 +12,20 @@ class b extends a { } //// [inheritanceMemberFuncOverridingMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var a = (function () { a.prototype.x = function () { return "10"; }; + __names(a.prototype, ["x"]); return a; }()); var b = (function (_super) { @@ -38,5 +53,6 @@ var b = (function (_super) { b.prototype.x = function () { return "20"; }; + __names(b.prototype, ["x"]); return b; }(a)); diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js index 996138a53d922..cd33c1c8f8a4d 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js @@ -20,6 +20,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a = (function () { function a() { } @@ -33,5 +47,6 @@ var b = (function (_super) { b.prototype.x = function () { return "20"; }; + __names(b.prototype, ["x"]); return b; }(a)); diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js index c7c6c84f9d024..de55945632a41 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js @@ -10,6 +10,20 @@ class b extends a { } //// [inheritanceMemberPropertyOverridingMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -26,6 +40,7 @@ var a = (function () { a.prototype.x = function () { return "20"; }; + __names(a.prototype, ["x"]); return a; }()); var b = (function (_super) { diff --git a/tests/baselines/reference/innerAliases2.js b/tests/baselines/reference/innerAliases2.js index 6ac0a57a484ca..8ca8d8cbf3f5c 100644 --- a/tests/baselines/reference/innerAliases2.js +++ b/tests/baselines/reference/innerAliases2.js @@ -20,6 +20,20 @@ module consumer { //// [innerAliases2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var _provider; (function (_provider) { var UsefulClass = (function () { @@ -27,6 +41,7 @@ var _provider; } UsefulClass.prototype.foo = function () { }; + __names(UsefulClass.prototype, ["foo"]); return UsefulClass; }()); _provider.UsefulClass = UsefulClass; diff --git a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js index 02b0ccfb382a4..1861ed2c198a6 100644 --- a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js +++ b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js @@ -40,6 +40,20 @@ class C2 { //// [innerTypeParameterShadowingOuterOne2.js] // inner type parameters shadow outer ones of the same name // no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -51,6 +65,7 @@ var C = (function () { var x; x.getDate(); }; + __names(C.prototype, ["g", "h"]); return C; }()); var C2 = (function () { @@ -64,6 +79,7 @@ var C2 = (function () { var x; x.getDate(); }; + __names(C2.prototype, ["g", "h"]); return C2; }()); //class C2 { diff --git a/tests/baselines/reference/instanceAndStaticDeclarations1.js b/tests/baselines/reference/instanceAndStaticDeclarations1.js index 093e9c15cc8ea..9e15065516394 100644 --- a/tests/baselines/reference/instanceAndStaticDeclarations1.js +++ b/tests/baselines/reference/instanceAndStaticDeclarations1.js @@ -14,6 +14,20 @@ class Point { //// [instanceAndStaticDeclarations1.js] // from spec +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Point = (function () { function Point(x, y) { this.x = x; @@ -25,6 +39,7 @@ var Point = (function () { return Math.sqrt(dx * dx + dy * dy); }; Point.distance = function (p1, p2) { return p1.distance(p2); }; + __names(Point.prototype, ["distance"]); Point.origin = new Point(0, 0); return Point; }()); diff --git a/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js b/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js index d6dc08f38507a..822d838a74395 100644 --- a/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js +++ b/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js @@ -13,6 +13,20 @@ class C { } //// [instanceMemberAssignsToClassPrototype.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -25,5 +39,6 @@ var C = (function () { C.prototype.bar = function (x) { return 1; }; // ok return 1; }; + __names(C.prototype, ["foo", "bar"]); return C; }()); diff --git a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js index 44c781c8c9824..5927555f389da 100644 --- a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js +++ b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js @@ -43,6 +43,20 @@ module Generic { } //// [instancePropertiesInheritedIntoClassType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -69,6 +83,7 @@ var NonGeneric; configurable: true }); C.prototype.fn = function () { return this; }; + __names(C.prototype, ["fn"]); return C; }()); var D = (function (_super) { @@ -101,6 +116,7 @@ var Generic; configurable: true }); C.prototype.fn = function () { return this; }; + __names(C.prototype, ["fn"]); return C; }()); var D = (function (_super) { diff --git a/tests/baselines/reference/instancePropertyInClassType.js b/tests/baselines/reference/instancePropertyInClassType.js index ee447aa52332a..56b1b7c9e3846 100644 --- a/tests/baselines/reference/instancePropertyInClassType.js +++ b/tests/baselines/reference/instancePropertyInClassType.js @@ -39,6 +39,20 @@ module Generic { } //// [instancePropertyInClassType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var NonGeneric; (function (NonGeneric) { var C = (function () { @@ -55,6 +69,7 @@ var NonGeneric; configurable: true }); C.prototype.fn = function () { return this; }; + __names(C.prototype, ["fn"]); return C; }()); var c = new C(1, 2); @@ -80,6 +95,7 @@ var Generic; configurable: true }); C.prototype.fn = function () { return this; }; + __names(C.prototype, ["fn"]); return C; }()); var c = new C(1, ''); diff --git a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js index 90badcf8e9215..4155be5c42fc5 100644 --- a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js @@ -47,10 +47,25 @@ var rb10 = x instanceof o3; var rc1 = '' instanceof {}; //// [instanceofOperatorWithInvalidOperands.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); var x; diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints.js b/tests/baselines/reference/instantiatedBaseTypeConstraints.js index c333ed36e1fdf..ff591f865515a 100644 --- a/tests/baselines/reference/instantiatedBaseTypeConstraints.js +++ b/tests/baselines/reference/instantiatedBaseTypeConstraints.js @@ -12,10 +12,25 @@ class Bar implements Foo { //// [instantiatedBaseTypeConstraints.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Bar = (function () { function Bar() { } Bar.prototype.foo = function (bar) { }; + __names(Bar.prototype, ["foo"]); return Bar; }()); diff --git a/tests/baselines/reference/instantiatedReturnTypeContravariance.js b/tests/baselines/reference/instantiatedReturnTypeContravariance.js index 52f96561f2018..9456ecbbeb113 100644 --- a/tests/baselines/reference/instantiatedReturnTypeContravariance.js +++ b/tests/baselines/reference/instantiatedReturnTypeContravariance.js @@ -31,6 +31,20 @@ return null; //// [instantiatedReturnTypeContravariance.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -47,6 +61,7 @@ var c = (function () { c.prototype.foo = function () { return null; }; + __names(c.prototype, ["foo"]); return c; }()); var d = (function (_super) { @@ -57,5 +72,6 @@ var d = (function (_super) { d.prototype.foo = function () { return null; }; + __names(d.prototype, ["foo"]); return d; }(c)); diff --git a/tests/baselines/reference/intTypeCheck.js b/tests/baselines/reference/intTypeCheck.js index 84eb19ac27d88..fbb4efd91a1c1 100644 --- a/tests/baselines/reference/intTypeCheck.js +++ b/tests/baselines/reference/intTypeCheck.js @@ -206,10 +206,25 @@ var obj86: i8 = new anyVar; var obj87: i8 = new {}; //// [intTypeCheck.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); var anyVar; diff --git a/tests/baselines/reference/interfaceClassMerging.js b/tests/baselines/reference/interfaceClassMerging.js index e2167776f22f7..5de7ab16ba2de 100644 --- a/tests/baselines/reference/interfaceClassMerging.js +++ b/tests/baselines/reference/interfaceClassMerging.js @@ -41,6 +41,20 @@ obj = bar; //// [interfaceClassMerging.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -57,6 +71,7 @@ var Foo = (function () { Foo.prototype.additionalMethod = function (a) { return this.method(0); }; + __names(Foo.prototype, ["additionalMethod"]); return Foo; }()); var Bar = (function (_super) { @@ -67,6 +82,7 @@ var Bar = (function (_super) { Bar.prototype.method = function (a) { return this.optionalProperty; }; + __names(Bar.prototype, ["method"]); return Bar; }(Foo)); var bar = new Bar(); diff --git a/tests/baselines/reference/interfaceClassMerging2.js b/tests/baselines/reference/interfaceClassMerging2.js index 4c879ba4cabc7..f947247f7be58 100644 --- a/tests/baselines/reference/interfaceClassMerging2.js +++ b/tests/baselines/reference/interfaceClassMerging2.js @@ -37,6 +37,20 @@ foo = bar; //// [interfaceClassMerging2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -53,6 +67,7 @@ var Foo = (function () { Foo.prototype.classFooMethod = function () { return this; }; + __names(Foo.prototype, ["classFooMethod"]); return Foo; }()); var Bar = (function (_super) { @@ -63,6 +78,7 @@ var Bar = (function (_super) { Bar.prototype.classBarMethod = function () { return this; }; + __names(Bar.prototype, ["classBarMethod"]); return Bar; }(Foo)); var bar = new Bar(); diff --git a/tests/baselines/reference/interfaceContextualType.js b/tests/baselines/reference/interfaceContextualType.js index ec50272592509..67d255dcdc562 100644 --- a/tests/baselines/reference/interfaceContextualType.js +++ b/tests/baselines/reference/interfaceContextualType.js @@ -23,6 +23,20 @@ class Bug { //// [interfaceContextualType.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Bug = (function () { function Bug() { @@ -36,5 +50,6 @@ var Bug = (function () { comments: { italic: true } }; }; + __names(Bug.prototype, ["ok", "shouldBeOK"]); return Bug; }()); diff --git a/tests/baselines/reference/interfaceExtendingClass.js b/tests/baselines/reference/interfaceExtendingClass.js index e2ca3f89791c2..c261cec161e45 100644 --- a/tests/baselines/reference/interfaceExtendingClass.js +++ b/tests/baselines/reference/interfaceExtendingClass.js @@ -20,6 +20,20 @@ var f: Foo = i; i = f; //// [interfaceExtendingClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -31,6 +45,7 @@ var Foo = (function () { enumerable: true, configurable: true }); + __names(Foo.prototype, ["y"]); return Foo; }()); var i; diff --git a/tests/baselines/reference/interfaceExtendingClass2.js b/tests/baselines/reference/interfaceExtendingClass2.js index e3ede26b48ed5..2777969b4adc8 100644 --- a/tests/baselines/reference/interfaceExtendingClass2.js +++ b/tests/baselines/reference/interfaceExtendingClass2.js @@ -16,6 +16,20 @@ interface I2 extends Foo { // error } //// [interfaceExtendingClass2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -27,6 +41,7 @@ var Foo = (function () { enumerable: true, configurable: true }); + __names(Foo.prototype, ["y"]); return Foo; }()); return 1; diff --git a/tests/baselines/reference/interfaceExtendsClass1.js b/tests/baselines/reference/interfaceExtendsClass1.js index 69560e825577a..0a3ce70493e8d 100644 --- a/tests/baselines/reference/interfaceExtendsClass1.js +++ b/tests/baselines/reference/interfaceExtendsClass1.js @@ -29,6 +29,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Control = (function () { function Control() { } @@ -40,6 +54,7 @@ var Button = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Button.prototype.select = function () { }; + __names(Button.prototype, ["select"]); return Button; }(Control)); var TextBox = (function (_super) { @@ -48,6 +63,7 @@ var TextBox = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } TextBox.prototype.select = function () { }; + __names(TextBox.prototype, ["select"]); return TextBox; }(Control)); var Image = (function (_super) { @@ -61,5 +77,6 @@ var Location = (function () { function Location() { } Location.prototype.select = function () { }; + __names(Location.prototype, ["select"]); return Location; }()); diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js index 12d1539bb3d06..81ab9a51f39cc 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js @@ -28,6 +28,20 @@ c = d; d = c; // error //// [interfaceExtendsClassWithPrivate1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -43,6 +57,7 @@ var C = (function () { this.x = 1; } C.prototype.foo = function (x) { return x; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -53,6 +68,7 @@ var D = (function (_super) { D.prototype.foo = function (x) { return x; }; D.prototype.other = function (x) { return x; }; D.prototype.bar = function () { }; + __names(D.prototype, ["foo", "other", "bar"]); return D; }(C)); var c; diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js index cec3eed84977c..701834e824f6e 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js @@ -24,6 +24,20 @@ class D2 extends C implements I { // error } //// [interfaceExtendsClassWithPrivate2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -39,6 +53,7 @@ var C = (function () { this.x = 1; } C.prototype.foo = function (x) { return x; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { @@ -52,6 +67,7 @@ var D = (function (_super) { D.prototype.foo = function (x) { return x; }; D.prototype.other = function (x) { return x; }; D.prototype.bar = function () { }; + __names(D.prototype, ["foo", "other", "bar"]); return D; }(C)); var D2 = (function (_super) { @@ -64,5 +80,6 @@ var D2 = (function (_super) { D2.prototype.foo = function (x) { return x; }; D2.prototype.other = function (x) { return x; }; D2.prototype.bar = function () { }; + __names(D2.prototype, ["foo", "other", "bar"]); return D2; }(C)); diff --git a/tests/baselines/reference/interfaceImplementation1.js b/tests/baselines/reference/interfaceImplementation1.js index 6a8d1b2d782cd..68143ac929dc2 100644 --- a/tests/baselines/reference/interfaceImplementation1.js +++ b/tests/baselines/reference/interfaceImplementation1.js @@ -47,10 +47,25 @@ c["foo"]; //// [interfaceImplementation1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } C1.prototype.iFn = function (n, s) { }; + __names(C1.prototype, ["iFn"]); return C1; }()); var C2 = (function () { diff --git a/tests/baselines/reference/interfaceImplementation3.js b/tests/baselines/reference/interfaceImplementation3.js index ef713d517b7d3..fd044f65fb5df 100644 --- a/tests/baselines/reference/interfaceImplementation3.js +++ b/tests/baselines/reference/interfaceImplementation3.js @@ -16,9 +16,24 @@ class C4 implements I1 { //// [interfaceImplementation3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C4 = (function () { function C4() { } C4.prototype.iFn = function () { }; + __names(C4.prototype, ["iFn"]); return C4; }()); diff --git a/tests/baselines/reference/interfaceImplementation4.js b/tests/baselines/reference/interfaceImplementation4.js index 07d2f85e311cb..226c21d00f85f 100644 --- a/tests/baselines/reference/interfaceImplementation4.js +++ b/tests/baselines/reference/interfaceImplementation4.js @@ -14,9 +14,24 @@ class C5 implements I1 { //// [interfaceImplementation4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C5 = (function () { function C5() { } C5.prototype.iFn = function () { }; + __names(C5.prototype, ["iFn"]); return C5; }()); diff --git a/tests/baselines/reference/interfaceImplementation7.js b/tests/baselines/reference/interfaceImplementation7.js index 7a1a29c65bfb2..147a073dc96cc 100644 --- a/tests/baselines/reference/interfaceImplementation7.js +++ b/tests/baselines/reference/interfaceImplementation7.js @@ -11,9 +11,24 @@ class C1 implements i4 { //// [interfaceImplementation7.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } C1.prototype.name = function () { return ""; }; + __names(C1.prototype, ["name"]); return C1; }()); diff --git a/tests/baselines/reference/interfaceSubtyping.js b/tests/baselines/reference/interfaceSubtyping.js index e0552a964e984..a26a70667e808 100644 --- a/tests/baselines/reference/interfaceSubtyping.js +++ b/tests/baselines/reference/interfaceSubtyping.js @@ -10,10 +10,25 @@ class Camera implements iface{ //// [interfaceSubtyping.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Camera = (function () { function Camera(str) { this.str = str; } Camera.prototype.foo = function () { return "s"; }; + __names(Camera.prototype, ["foo"]); return Camera; }()); diff --git a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js index 783a1fe4c8ba6..e971fcb046472 100644 --- a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js +++ b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js @@ -16,15 +16,31 @@ interface Foo2 extends Base2 { // error } //// [interfaceWithPropertyThatIsPrivateInBaseType2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } Base.prototype.x = function () { }; + __names(Base.prototype, ["x"]); return Base; }()); var Base2 = (function () { function Base2() { } Base2.prototype.x = function () { }; + __names(Base2.prototype, ["x"]); return Base2; }()); diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js index 0b333ac1830a1..0b849d3f2d65e 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js @@ -19,6 +19,20 @@ export var d = new m2.m3.c(); //// [internalAliasClassInsideLocalModuleWithExport.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var x; (function (x) { @@ -28,6 +42,7 @@ var x; c.prototype.foo = function (a) { return a; }; + __names(c.prototype, ["foo"]); return c; }()); x.c = c; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js index cf2eb41662b56..4ffe305993a17 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js @@ -17,6 +17,20 @@ export module m2 { //// [internalAliasClassInsideLocalModuleWithoutExport.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var x; (function (x) { @@ -26,6 +40,7 @@ var x; c.prototype.foo = function (a) { return a; }; + __names(c.prototype, ["foo"]); return c; }()); x.c = c; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js index 1de7fe25407fb..753edac75cf43 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js @@ -19,6 +19,20 @@ export var d = new m2.m3.c(); //// [internalAliasClassInsideLocalModuleWithoutExportAccessError.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var x; (function (x) { @@ -28,6 +42,7 @@ var x; c.prototype.foo = function (a) { return a; }; + __names(c.prototype, ["foo"]); return c; }()); x.c = c; diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js index e224b40c9f320..d659e75b03e96 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js @@ -13,6 +13,20 @@ var cReturnVal = cProp.foo(10); //// [internalAliasClassInsideTopLevelModuleWithExport.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var x; (function (x) { @@ -22,6 +36,7 @@ var x; c.prototype.foo = function (a) { return a; }; + __names(c.prototype, ["foo"]); return c; }()); x.c = c; diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js index 16f53fe3e8b0e..332fa032924a3 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js @@ -13,6 +13,20 @@ var cReturnVal = cProp.foo(10); //// [internalAliasClassInsideTopLevelModuleWithoutExport.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var x; (function (x) { @@ -22,6 +36,7 @@ var x; c.prototype.foo = function (a) { return a; }; + __names(c.prototype, ["foo"]); return c; }()); x.c = c; diff --git a/tests/baselines/reference/invalidNewTarget.es5.js b/tests/baselines/reference/invalidNewTarget.es5.js index 1c2da520fcb2d..31a2449fc9aa7 100644 --- a/tests/baselines/reference/invalidNewTarget.es5.js +++ b/tests/baselines/reference/invalidNewTarget.es5.js @@ -25,6 +25,20 @@ const O = { }; //// [invalidNewTarget.es5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a = _newTarget; var b = function () { return _newTarget; }; var C = (function () { @@ -32,7 +46,7 @@ var C = (function () { var _newTarget = this.constructor; this.f = function () { return _newTarget; }; } - C.prototype[_newTarget] = function () { }; + C.prototype[_a = _newTarget] = function () { }; C.prototype.c = function () { var _newTarget = void 0; return _newTarget; }; Object.defineProperty(C.prototype, "d", { get: function () { var _newTarget = void 0; return _newTarget; }, @@ -56,6 +70,8 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, [_a, "c"]); + var _a; C.j = function () { return _newTarget; }; return C; }()); @@ -72,6 +88,6 @@ var O = (_a = {}, enumerable: true, configurable: true }), - _a.n = _newTarget, + _a.n = _newTarget, __names(_a, ["k"]), _a); var _a; diff --git a/tests/baselines/reference/invalidReturnStatements.js b/tests/baselines/reference/invalidReturnStatements.js index af20c18c85343..076aa3f89b259 100644 --- a/tests/baselines/reference/invalidReturnStatements.js +++ b/tests/baselines/reference/invalidReturnStatements.js @@ -21,6 +21,20 @@ function fn11(): D { return new C(); } //// [invalidReturnStatements.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -41,6 +55,7 @@ var C = (function () { function C() { } C.prototype.dispose = function () { }; + __names(C.prototype, ["dispose"]); return C; }()); var D = (function (_super) { diff --git a/tests/baselines/reference/invalidStaticField.js b/tests/baselines/reference/invalidStaticField.js index dc582e830c7c7..a72fcafdc62b3 100644 --- a/tests/baselines/reference/invalidStaticField.js +++ b/tests/baselines/reference/invalidStaticField.js @@ -3,10 +3,25 @@ class A { foo() { return B.NULL; } } class B { static NOT_NULL = new B(); } //// [invalidStaticField.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { return B.NULL; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { diff --git a/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js b/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js index d3bfa819bc908..9817156ae9b34 100644 --- a/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js +++ b/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js @@ -14,6 +14,20 @@ class TestController { //// [invalidThisEmitInContextualObjectLiteral.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TestController = (function () { function TestController() { var _this = this; @@ -23,5 +37,6 @@ var TestController = (function () { }); } TestController.prototype.m = function (def) { }; + __names(TestController.prototype, ["m"]); return TestController; }()); diff --git a/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js index 0e7ff45f16c07..4aea7a89d1be5 100644 --- a/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js +++ b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js @@ -6,6 +6,20 @@ class c { } //// [out.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var c = (function () { function c() { } @@ -13,5 +27,6 @@ var c = (function () { var _this = this; var x = function (a) { return _this.method(a); }; }; + __names(c.prototype, ["method"]); return c; }()); diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js index b549fb58a0a69..58ecdfaa4145a 100644 --- a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js +++ b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js @@ -12,6 +12,20 @@ class Component { //// [index.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); require("./jsx"); var skate; @@ -22,6 +36,7 @@ var Component = (function () { Component.prototype.renderCallback = function () { return skate.h("div", null, "test"); }; + __names(Component.prototype, ["renderCallback"]); return Component; }()); ; diff --git a/tests/baselines/reference/jsxInExtendsClause.js b/tests/baselines/reference/jsxInExtendsClause.js index 779b2d4cf8a5f..5d4fc0007b60a 100644 --- a/tests/baselines/reference/jsxInExtendsClause.js +++ b/tests/baselines/reference/jsxInExtendsClause.js @@ -22,6 +22,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function (_super) { __extends(Foo, _super); function Foo() { @@ -36,5 +50,6 @@ var Foo = (function (_super) { class_1.prototype.render = function () { return React.createElement("span", null, "Hello, world!"); }; + __names(class_1.prototype, ["render"]); return class_1; }(React.Component)); }))); diff --git a/tests/baselines/reference/jsxViaImport.2.js b/tests/baselines/reference/jsxViaImport.2.js index 813df2de93812..3406b9c9a7e4e 100644 --- a/tests/baselines/reference/jsxViaImport.2.js +++ b/tests/baselines/reference/jsxViaImport.2.js @@ -34,6 +34,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; /// var BaseComponent_1 = require("BaseComponent"); @@ -45,5 +59,6 @@ var TestComponent = (function (_super) { TestComponent.prototype.render = function () { return ; }; + __names(TestComponent.prototype, ["render"]); return TestComponent; }(React.Component)); diff --git a/tests/baselines/reference/jsxViaImport.js b/tests/baselines/reference/jsxViaImport.js index cfbbb9eb456ce..09d2f7a97aa51 100644 --- a/tests/baselines/reference/jsxViaImport.js +++ b/tests/baselines/reference/jsxViaImport.js @@ -34,6 +34,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; /// var BaseComponent = require("BaseComponent"); @@ -45,5 +59,6 @@ var TestComponent = (function (_super) { TestComponent.prototype.render = function () { return ; }; + __names(TestComponent.prototype, ["render"]); return TestComponent; }(React.Component)); diff --git a/tests/baselines/reference/keyofAndIndexedAccess.js b/tests/baselines/reference/keyofAndIndexedAccess.js index cbd9549b1637b..01972cc6dca90 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.js +++ b/tests/baselines/reference/keyofAndIndexedAccess.js @@ -565,6 +565,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Shape = (function () { function Shape() { } @@ -624,6 +638,7 @@ var Component = (function () { Component.prototype.setProperty = function (key, value) { this.props[key] = value; }; + __names(Component.prototype, ["getProperty", "setProperty"]); return Component; }()); function f20(component) { @@ -770,6 +785,7 @@ var C1 = (function () { this.set("x", 42); setProperty(this, "x", 42); }; + __names(C1.prototype, ["get", "set", "foo"]); return C1; }()); function f90(x1, x2, x3, x4) { @@ -800,6 +816,7 @@ var Base = (function () { Base.prototype.set = function (prop, value) { this[prop] = value; }; + __names(Base.prototype, ["get", "set"]); return Base; }()); var Person = (function (_super) { @@ -812,6 +829,7 @@ var Person = (function (_super) { Person.prototype.getParts = function () { return this.get("parts"); }; + __names(Person.prototype, ["getParts"]); return Person; }(Base)); var OtherPerson = (function () { @@ -821,6 +839,7 @@ var OtherPerson = (function () { OtherPerson.prototype.getParts = function () { return getProperty(this, "parts"); }; + __names(OtherPerson.prototype, ["getParts"]); return OtherPerson; }()); function path(obj) { @@ -896,6 +915,7 @@ var B = (function (_super) { B.prototype.f = function (p) { p.x; }; + __names(B.prototype, ["f"]); return B; }(A)); // Repro from #13749 @@ -905,6 +925,7 @@ var Form = (function () { Form.prototype.set = function (prop, value) { this.childFormFactories[prop](value); }; + __names(Form.prototype, ["set"]); return Form; }()); // Repro from #13787 @@ -925,6 +946,7 @@ var AnotherSampleClass = (function (_super) { AnotherSampleClass.prototype.brokenMethod = function () { this.props.foo.concat; }; + __names(AnotherSampleClass.prototype, ["brokenMethod"]); return AnotherSampleClass; }(SampleClass)); new AnotherSampleClass({}); diff --git a/tests/baselines/reference/lambdaArgCrash.js b/tests/baselines/reference/lambdaArgCrash.js index 9a903b513d9f2..01e9b419bfc9b 100644 --- a/tests/baselines/reference/lambdaArgCrash.js +++ b/tests/baselines/reference/lambdaArgCrash.js @@ -35,6 +35,20 @@ class ItemSetEvent extends Event { //// [lambdaArgCrash.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -56,6 +70,7 @@ var Event = (function () { /// The callback function to register. this._listeners.push(listener); }; + __names(Event.prototype, ["add"]); return Event; }()); var ItemSetEvent = (function (_super) { @@ -66,5 +81,6 @@ var ItemSetEvent = (function (_super) { ItemSetEvent.prototype.add = function (listener) { _super.prototype.add.call(this, listener); }; + __names(ItemSetEvent.prototype, ["add"]); return ItemSetEvent; }(Event)); diff --git a/tests/baselines/reference/lambdaPropSelf.js b/tests/baselines/reference/lambdaPropSelf.js index 5e19726f79492..a941580a95bce 100644 --- a/tests/baselines/reference/lambdaPropSelf.js +++ b/tests/baselines/reference/lambdaPropSelf.js @@ -24,6 +24,20 @@ module M { //// [lambdaPropSelf.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Person = (function () { function Person(name, children) { var _this = this; @@ -39,6 +53,7 @@ var T = (function () { T.prototype.fo = function () { var x = this; }; + __names(T.prototype, ["fo"]); return T; }()); var M; diff --git a/tests/baselines/reference/lift.js b/tests/baselines/reference/lift.js index 80eebe9cb00bc..0a952cbc2fae0 100644 --- a/tests/baselines/reference/lift.js +++ b/tests/baselines/reference/lift.js @@ -28,6 +28,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function () { function B(y) { this.y = y; @@ -44,5 +58,6 @@ var C = (function (_super) { } C.prototype.liftxyz = function () { return x + z + this.y; }; C.prototype.liftxylocllz = function () { return x + z + this.y + this.ll; }; + __names(C.prototype, ["liftxyz", "liftxylocllz"]); return C; }(B)); diff --git a/tests/baselines/reference/listFailure.js b/tests/baselines/reference/listFailure.js index ab0e9ca5bff0b..806bbb0deecfb 100644 --- a/tests/baselines/reference/listFailure.js +++ b/tests/baselines/reference/listFailure.js @@ -42,6 +42,20 @@ module Editor { } //// [listFailure.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Editor; (function (Editor) { var Buffer = (function () { @@ -53,6 +67,7 @@ var Editor; var lineEntry = this.lines.add(line); return lineEntry; }; + __names(Buffer.prototype, ["addLine"]); return Buffer; }()); Editor.Buffer = Buffer; @@ -78,6 +93,7 @@ var Editor; List.prototype.popEntry = function (head) { return (ListRemoveEntry(this.next)); }; + __names(List.prototype, ["add", "popEntry"]); return List; }()); var Line = (function () { diff --git a/tests/baselines/reference/literalTypes2.js b/tests/baselines/reference/literalTypes2.js index 415129b2d9bea..9c4cdcd025e79 100644 --- a/tests/baselines/reference/literalTypes2.js +++ b/tests/baselines/reference/literalTypes2.js @@ -180,6 +180,20 @@ aa = append(aa, 1); //// [literalTypes2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -313,6 +327,7 @@ var C2 = (function () { C2.prototype.bar = function () { return cond ? 0 : 1; }; + __names(C2.prototype, ["foo", "bar"]); return C2; }()); function f20() { diff --git a/tests/baselines/reference/localTypes1.js b/tests/baselines/reference/localTypes1.js index 4eddc5c838cfb..6e166f4640f73 100644 --- a/tests/baselines/reference/localTypes1.js +++ b/tests/baselines/reference/localTypes1.js @@ -141,6 +141,20 @@ function f6() { //// [localTypes1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -292,6 +306,7 @@ var A = (function () { enumerable: true, configurable: true }); + __names(A.prototype, ["m"]); return A; }()); function f6() { diff --git a/tests/baselines/reference/localTypes5.js b/tests/baselines/reference/localTypes5.js index c7f0f722741e8..827fabe52a913 100644 --- a/tests/baselines/reference/localTypes5.js +++ b/tests/baselines/reference/localTypes5.js @@ -16,6 +16,20 @@ var x = foo(); //// [localTypes5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { var X = (function () { function X() { @@ -30,6 +44,7 @@ function foo() { return new Y(); })(); }; + __names(X.prototype, ["m"]); return X; }()); var x = new X(); diff --git a/tests/baselines/reference/looseThisTypeInFunctions.js b/tests/baselines/reference/looseThisTypeInFunctions.js index cb1fbcc8b9572..058a72efa9b10 100644 --- a/tests/baselines/reference/looseThisTypeInFunctions.js +++ b/tests/baselines/reference/looseThisTypeInFunctions.js @@ -49,6 +49,20 @@ i.explicitThis = function(m) { //// [looseThisTypeInFunctions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -61,6 +75,7 @@ var C = (function () { C.prototype.explicitVoid = function (m) { return m + 1; }; + __names(C.prototype, ["explicitThis", "implicitThis", "explicitVoid"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/mappedTypeErrors.js b/tests/baselines/reference/mappedTypeErrors.js index dcaa737edd85c..1ed223c379071 100644 --- a/tests/baselines/reference/mappedTypeErrors.js +++ b/tests/baselines/reference/mappedTypeErrors.js @@ -145,6 +145,20 @@ let f: Foo2 = { //// [mappedTypeErrors.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f1(x) { var y; // Error } @@ -204,6 +218,7 @@ var C = (function () { this.state[k] = props[k]; } }; + __names(C.prototype, ["setState"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/mappedTypePartialConstraints.js b/tests/baselines/reference/mappedTypePartialConstraints.js index 1c83e2506dd0c..b111e292a69e4 100644 --- a/tests/baselines/reference/mappedTypePartialConstraints.js +++ b/tests/baselines/reference/mappedTypePartialConstraints.js @@ -18,6 +18,20 @@ fn(MySubClass); //// [mappedTypePartialConstraints.js] // Repro from #16985 +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -32,6 +46,7 @@ var MyClass = (function () { function MyClass() { } MyClass.prototype.doIt = function (data) { }; + __names(MyClass.prototype, ["doIt"]); return MyClass; }()); var MySubClass = (function (_super) { diff --git a/tests/baselines/reference/matchReturnTypeInAllBranches.js b/tests/baselines/reference/matchReturnTypeInAllBranches.js index 4ac2c63eb4f4d..95b61d7d8fddd 100644 --- a/tests/baselines/reference/matchReturnTypeInAllBranches.js +++ b/tests/baselines/reference/matchReturnTypeInAllBranches.js @@ -36,6 +36,20 @@ var cookieMonster: IceCreamMonster; cookieMonster = new IceCreamMonster("Chocolate Chip", false, "COOOOOKIE", "Cookie Monster"); //// [matchReturnTypeInAllBranches.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Represents a monster who enjoys ice cream var IceCreamMonster = (function () { function IceCreamMonster(iceCreamFlavor, wantsSprinkles, soundsWhenEating, name) { @@ -61,6 +75,7 @@ var IceCreamMonster = (function () { return 12345; } }; + __names(IceCreamMonster.prototype, ["eatIceCream"]); return IceCreamMonster; }()); var cookieMonster; diff --git a/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js b/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js index ecf9a14033ba0..65f1510eca46c 100644 --- a/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js @@ -50,6 +50,20 @@ var r3 = C.foo(1); // error var r4 = D.bar(''); // error //// [memberFunctionsWithPrivateOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -57,6 +71,7 @@ var C = (function () { C.prototype.bar = function (x, y) { }; C.foo = function (x, y) { }; C.bar = function (x, y) { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); var D = (function () { @@ -66,6 +81,7 @@ var D = (function () { D.prototype.bar = function (x, y) { }; D.foo = function (x, y) { }; D.bar = function (x, y) { }; + __names(D.prototype, ["foo", "bar"]); return D; }()); var c; diff --git a/tests/baselines/reference/memberFunctionsWithPublicOverloads.js b/tests/baselines/reference/memberFunctionsWithPublicOverloads.js index 91b9e82967303..3d0027bd261ee 100644 --- a/tests/baselines/reference/memberFunctionsWithPublicOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPublicOverloads.js @@ -41,6 +41,20 @@ class D { } //// [memberFunctionsWithPublicOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -48,6 +62,7 @@ var C = (function () { C.prototype.bar = function (x, y) { }; C.foo = function (x, y) { }; C.bar = function (x, y) { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); var D = (function () { @@ -57,5 +72,6 @@ var D = (function () { D.prototype.bar = function (x, y) { }; D.foo = function (x, y) { }; D.bar = function (x, y) { }; + __names(D.prototype, ["foo", "bar"]); return D; }()); diff --git a/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js b/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js index 1d8d40533c644..6492930b81053 100644 --- a/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js @@ -63,6 +63,20 @@ var d: D; var r2 = d.foo(2); // error //// [memberFunctionsWithPublicPrivateOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -72,6 +86,7 @@ var C = (function () { C.prototype.baz = function (x, y) { }; C.bar = function (x, y) { }; C.baz = function (x, y) { }; + __names(C.prototype, ["foo", "bar", "baz"]); return C; }()); var D = (function () { @@ -83,6 +98,7 @@ var D = (function () { D.foo = function (x, y) { }; D.bar = function (x, y) { }; D.baz = function (x, y) { }; + __names(D.prototype, ["foo", "bar", "baz"]); return D; }()); var c; diff --git a/tests/baselines/reference/mergedDeclarations5.js b/tests/baselines/reference/mergedDeclarations5.js index a1e144fc2230e..d641665b18a94 100644 --- a/tests/baselines/reference/mergedDeclarations5.js +++ b/tests/baselines/reference/mergedDeclarations5.js @@ -12,10 +12,25 @@ class B extends A { } //// [a.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); //// [b.js] @@ -29,11 +44,26 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function (_super) { __extends(B, _super); function B() { return _super !== null && _super.apply(this, arguments) || this; } B.prototype.foo = function () { }; + __names(B.prototype, ["foo"]); return B; }(A)); diff --git a/tests/baselines/reference/mergedDeclarations6.js b/tests/baselines/reference/mergedDeclarations6.js index 2b492b569c250..54e2435a57464 100644 --- a/tests/baselines/reference/mergedDeclarations6.js +++ b/tests/baselines/reference/mergedDeclarations6.js @@ -23,6 +23,20 @@ export class B extends A { } //// [a.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -32,6 +46,7 @@ define(["require", "exports"], function (require, exports) { A.prototype.setProtected = function (val) { this.protected = val; }; + __names(A.prototype, ["setProtected"]); return A; }()); exports.A = A; @@ -47,6 +62,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports", "./a"], function (require, exports, a_1) { "use strict"; exports.__esModule = true; @@ -57,6 +86,7 @@ define(["require", "exports", "./a"], function (require, exports, a_1) { } B.prototype.setProtected = function () { }; + __names(B.prototype, ["setProtected"]); return B; }(a_1.A)); exports.B = B; diff --git a/tests/baselines/reference/mergedInheritedClassInterface.js b/tests/baselines/reference/mergedInheritedClassInterface.js index 25ad2b8be759f..77726d28a3704 100644 --- a/tests/baselines/reference/mergedInheritedClassInterface.js +++ b/tests/baselines/reference/mergedInheritedClassInterface.js @@ -47,6 +47,20 @@ grandchild.method2(); //// [mergedInheritedClassInterface.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -61,6 +75,7 @@ var BaseClass = (function () { function BaseClass() { } BaseClass.prototype.baseMethod = function () { }; + __names(BaseClass.prototype, ["baseMethod"]); return BaseClass; }()); var Child = (function (_super) { @@ -69,12 +84,14 @@ var Child = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Child.prototype.method = function () { }; + __names(Child.prototype, ["method"]); return Child; }(BaseClass)); var ChildNoBaseClass = (function () { function ChildNoBaseClass() { } ChildNoBaseClass.prototype.method2 = function () { }; + __names(ChildNoBaseClass.prototype, ["method2"]); return ChildNoBaseClass; }()); var Grandchild = (function (_super) { diff --git a/tests/baselines/reference/methodContainingLocalFunction.js b/tests/baselines/reference/methodContainingLocalFunction.js index d051d46bb1ca9..224f3e311f3fa 100644 --- a/tests/baselines/reference/methodContainingLocalFunction.js +++ b/tests/baselines/reference/methodContainingLocalFunction.js @@ -51,6 +51,20 @@ enum E { } //// [methodContainingLocalFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // The first case here (BugExhibition) caused a crash. Try with different permutations of features. var BugExhibition = (function () { function BugExhibition() { @@ -60,6 +74,7 @@ var BugExhibition = (function () { var x; x = localFunction; }; + __names(BugExhibition.prototype, ["exhibitBug"]); return BugExhibition; }()); var BugExhibition2 = (function () { @@ -85,6 +100,7 @@ var BugExhibition3 = (function () { var x; x = localGenericFunction; }; + __names(BugExhibition3.prototype, ["exhibitBug"]); return BugExhibition3; }()); var C = (function () { @@ -95,6 +111,7 @@ var C = (function () { var x; x = funcExpr; }; + __names(C.prototype, ["exhibit"]); return C; }()); var M; diff --git a/tests/baselines/reference/methodSignatureDeclarationEmit1.js b/tests/baselines/reference/methodSignatureDeclarationEmit1.js index d8697481c68df..8258410ce6cfe 100644 --- a/tests/baselines/reference/methodSignatureDeclarationEmit1.js +++ b/tests/baselines/reference/methodSignatureDeclarationEmit1.js @@ -7,11 +7,26 @@ class C { } //// [methodSignatureDeclarationEmit1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (a) { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/mismatchedGenericArguments1.js b/tests/baselines/reference/mismatchedGenericArguments1.js index 8a1f67db190cc..20bf81461fbdc 100644 --- a/tests/baselines/reference/mismatchedGenericArguments1.js +++ b/tests/baselines/reference/mismatchedGenericArguments1.js @@ -16,12 +16,27 @@ class C2 implements IFoo { //// [mismatchedGenericArguments1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function () { @@ -30,5 +45,6 @@ var C2 = (function () { C2.prototype.foo = function (x) { return null; }; + __names(C2.prototype, ["foo"]); return C2; }()); diff --git a/tests/baselines/reference/missingDecoratorType.js b/tests/baselines/reference/missingDecoratorType.js index eca16c710e37e..8f2ba5176befd 100644 --- a/tests/baselines/reference/missingDecoratorType.js +++ b/tests/baselines/reference/missingDecoratorType.js @@ -22,6 +22,20 @@ class C { //// [a.js] //// [b.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -32,6 +46,7 @@ var C = (function () { function C() { } C.prototype.method = function () { }; + __names(C.prototype, ["method"]); __decorate([ dec ], C.prototype, "method", null); diff --git a/tests/baselines/reference/missingPropertiesOfClassExpression.js b/tests/baselines/reference/missingPropertiesOfClassExpression.js index 7f468d14def32..24a60923347a5 100644 --- a/tests/baselines/reference/missingPropertiesOfClassExpression.js +++ b/tests/baselines/reference/missingPropertiesOfClassExpression.js @@ -17,6 +17,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var George = (function (_super) { __extends(George, _super); function George() { @@ -27,5 +41,6 @@ var George = (function (_super) { function class_1() { } class_1.prototype.reset = function () { return this.y; }; + __names(class_1.prototype, ["reset"]); return class_1; }()))); diff --git a/tests/baselines/reference/missingReturnStatement.js b/tests/baselines/reference/missingReturnStatement.js index f09ccb4e26e27..44270f48df30d 100644 --- a/tests/baselines/reference/missingReturnStatement.js +++ b/tests/baselines/reference/missingReturnStatement.js @@ -8,6 +8,20 @@ module Test { //// [missingReturnStatement.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test; (function (Test) { var Bug = (function () { @@ -15,6 +29,7 @@ var Test; } Bug.prototype.foo = function () { }; + __names(Bug.prototype, ["foo"]); return Bug; }()); Test.Bug = Bug; diff --git a/tests/baselines/reference/missingReturnStatement1.js b/tests/baselines/reference/missingReturnStatement1.js index 9e24623fa6c2e..e3262b9664086 100644 --- a/tests/baselines/reference/missingReturnStatement1.js +++ b/tests/baselines/reference/missingReturnStatement1.js @@ -7,11 +7,26 @@ class Foo { //// [missingReturnStatement1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.foo = function () { //return 4; }; + __names(Foo.prototype, ["foo"]); return Foo; }()); diff --git a/tests/baselines/reference/missingSelf.js b/tests/baselines/reference/missingSelf.js index e1020ea635b34..5f7a96023a4bc 100644 --- a/tests/baselines/reference/missingSelf.js +++ b/tests/baselines/reference/missingSelf.js @@ -19,11 +19,26 @@ c2.b(); //// [missingSelf.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var CalcButton = (function () { function CalcButton() { } CalcButton.prototype.a = function () { this.onClick(); }; CalcButton.prototype.onClick = function () { }; + __names(CalcButton.prototype, ["a", "onClick"]); return CalcButton; }()); var CalcButton2 = (function () { @@ -34,6 +49,7 @@ var CalcButton2 = (function () { (function () { return _this.onClick(); }); }; CalcButton2.prototype.onClick = function () { }; + __names(CalcButton2.prototype, ["b", "onClick"]); return CalcButton2; }()); var c = new CalcButton(); diff --git a/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js b/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js index eac3729abcdfa..4f00ce2ba3775 100644 --- a/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js +++ b/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js @@ -16,12 +16,27 @@ class B { } //// [mixedStaticAndInstanceClassMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.f = function () { }; A.prototype.m1 = function (a) { }; + __names(A.prototype, ["f", "m1"]); return A; }()); var B = (function () { @@ -30,5 +45,6 @@ var B = (function () { B.prototype.f = function () { }; B.prototype.m1 = function (a) { }; + __names(B.prototype, ["f", "m1"]); return B; }()); diff --git a/tests/baselines/reference/mixinAccessModifiers.js b/tests/baselines/reference/mixinAccessModifiers.js index 736808455bbcb..c47a24a063b42 100644 --- a/tests/baselines/reference/mixinAccessModifiers.js +++ b/tests/baselines/reference/mixinAccessModifiers.js @@ -118,6 +118,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Private = (function () { function Private() { var args = []; @@ -227,6 +241,7 @@ var C4 = (function (_super) { C5.s; C6.s; }; + __names(C4.prototype, ["f"]); return C4; }(Mix(Protected, Protected2))); var C5 = (function (_super) { @@ -244,6 +259,7 @@ var C5 = (function (_super) { C5.s; C6.s; }; + __names(C5.prototype, ["f"]); return C5; }(Mix(Protected, Public))); var C6 = (function (_super) { @@ -261,6 +277,7 @@ var C6 = (function (_super) { C5.s; C6.s; }; + __names(C6.prototype, ["f"]); return C6; }(Mix(Public, Public2))); diff --git a/tests/baselines/reference/mixinClassesAnnotated.js b/tests/baselines/reference/mixinClassesAnnotated.js index 15282a11dd8fc..e46d76986b5ce 100644 --- a/tests/baselines/reference/mixinClassesAnnotated.js +++ b/tests/baselines/reference/mixinClassesAnnotated.js @@ -77,6 +77,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base(x, y) { this.x = x; @@ -101,6 +115,7 @@ var Printable = function (superClass) { return _a = (function (_super) { class_1.prototype.print = function () { var output = this.x + "," + this.y; }; + __names(class_1.prototype, ["print"]); return class_1; }(superClass)), _a.message = "hello", @@ -145,6 +160,7 @@ var Thing3 = (function (_super) { Thing3.prototype.test = function () { this.print(); }; + __names(Thing3.prototype, ["test"]); return Thing3; }(Thing2)); diff --git a/tests/baselines/reference/mixinClassesAnonymous.js b/tests/baselines/reference/mixinClassesAnonymous.js index aa148c25acf0d..d0ccd9a8f9371 100644 --- a/tests/baselines/reference/mixinClassesAnonymous.js +++ b/tests/baselines/reference/mixinClassesAnonymous.js @@ -76,6 +76,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base(x, y) { this.x = x; @@ -100,6 +114,7 @@ var Printable = function (superClass) { return _a = (function (_super) { class_1.prototype.print = function () { var output = this.x + "," + this.y; }; + __names(class_1.prototype, ["print"]); return class_1; }(superClass)), _a.message = "hello", @@ -144,6 +159,7 @@ var Thing3 = (function (_super) { Thing3.prototype.test = function () { this.print(); }; + __names(Thing3.prototype, ["test"]); return Thing3; }(Thing2)); // Repro from #13805 diff --git a/tests/baselines/reference/mixinClassesMembers.js b/tests/baselines/reference/mixinClassesMembers.js index 4771cec384d61..4224fb869207d 100644 --- a/tests/baselines/reference/mixinClassesMembers.js +++ b/tests/baselines/reference/mixinClassesMembers.js @@ -109,6 +109,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f1() { var x1 = new Mixed1("hello"); var x2 = new Mixed1(42); @@ -177,6 +191,7 @@ var C3 = (function (_super) { return _this; } C3.prototype.f = function () { return _super.prototype.f.call(this); }; + __names(C3.prototype, ["f"]); return C3; }(Mixed3)); diff --git a/tests/baselines/reference/mixinPrivateAndProtected.js b/tests/baselines/reference/mixinPrivateAndProtected.js index 9b8f3ee0c128a..694af2293b123 100644 --- a/tests/baselines/reference/mixinPrivateAndProtected.js +++ b/tests/baselines/reference/mixinPrivateAndProtected.js @@ -101,6 +101,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { this.pb = 2; @@ -167,6 +181,7 @@ var Person = (function () { Person.prototype.myProtectedFunction = function () { // do something }; + __names(Person.prototype, ["myProtectedFunction"]); return Person; }()); function PersonMixin(Base) { @@ -183,6 +198,7 @@ function PersonMixin(Base) { _super.prototype.myProtectedFunction.call(this); // do more things }; + __names(class_4.prototype, ["myProtectedFunction"]); return class_4; }(Base)); } @@ -193,5 +209,6 @@ var Customer = (function (_super) { } Customer.prototype.f = function () { }; + __names(Customer.prototype, ["f"]); return Customer; }(PersonMixin(Person))); diff --git a/tests/baselines/reference/mixingStaticAndInstanceOverloads.js b/tests/baselines/reference/mixingStaticAndInstanceOverloads.js index ee405be1f431a..44852f3274bb3 100644 --- a/tests/baselines/reference/mixingStaticAndInstanceOverloads.js +++ b/tests/baselines/reference/mixingStaticAndInstanceOverloads.js @@ -36,6 +36,20 @@ class C5 { } //// [mixingStaticAndInstanceOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } @@ -46,12 +60,14 @@ var C2 = (function () { function C2() { } C2.prototype.foo2 = function (a) { }; + __names(C2.prototype, ["foo2"]); return C2; }()); var C3 = (function () { function C3() { } C3.prototype.foo3 = function (a) { }; + __names(C3.prototype, ["foo3"]); return C3; }()); var C4 = (function () { @@ -65,5 +81,6 @@ var C5 = (function () { } C5.prototype.foo5 = function (a) { }; C5.foo5 = function (a) { }; + __names(C5.prototype, ["foo5"]); return C5; }()); diff --git a/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js b/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js index 464e0c6f37be0..634f21cc55ae4 100644 --- a/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js +++ b/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js @@ -8,6 +8,20 @@ function f() { } //// [modifierOnClassDeclarationMemberInFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f() { var C = (function () { function C() { @@ -15,6 +29,7 @@ function f() { } C.foo = function () { }; C.prototype.bar = function () { }; + __names(C.prototype, ["bar"]); return C; }()); } diff --git a/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js b/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js index 3403a376d42dd..f4fac0f61abab 100644 --- a/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js +++ b/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js @@ -8,12 +8,27 @@ function g() { } //// [modifierOnClassExpressionMemberInFunction.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function g() { var x = (_a = (function () { function C() { this.prop1 = 1; } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()), _a.prop2 = 43, diff --git a/tests/baselines/reference/moduleAliasInterface.js b/tests/baselines/reference/moduleAliasInterface.js index 2dee62dcca0f8..051a2ac7c31bc 100644 --- a/tests/baselines/reference/moduleAliasInterface.js +++ b/tests/baselines/reference/moduleAliasInterface.js @@ -56,6 +56,20 @@ module B1 { //// [moduleAliasInterface.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var _modes; (function (_modes) { var Mode = (function () { @@ -75,6 +89,7 @@ var editor; } // should be an error on p2 - it's not exported Bug.prototype.foo = function (p1) { }; + __names(Bug.prototype, ["foo"]); return Bug; }()); })(editor || (editor = {})); diff --git a/tests/baselines/reference/moduleCodeGenTest5.js b/tests/baselines/reference/moduleCodeGenTest5.js index ee6fd2ab3176b..cf34adbe61289 100644 --- a/tests/baselines/reference/moduleCodeGenTest5.js +++ b/tests/baselines/reference/moduleCodeGenTest5.js @@ -23,6 +23,20 @@ var v = E2.B; //// [moduleCodeGenTest5.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; exports.x = 0; var y = 0; @@ -34,6 +48,7 @@ var C1 = (function () { this.p1 = 0; } C1.prototype.p2 = function () { }; + __names(C1.prototype, ["p2"]); return C1; }()); exports.C1 = C1; @@ -42,6 +57,7 @@ var C2 = (function () { this.p1 = 0; } C2.prototype.p2 = function () { }; + __names(C2.prototype, ["p2"]); return C2; }()); var E1; diff --git a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js index e0e95b3c72b65..63ed994c03f17 100644 --- a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js +++ b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js @@ -47,6 +47,20 @@ module TypeScript.Syntax { //// [moduleMemberWithoutTypeAnnotation1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var TypeScript; (function (TypeScript) { var Parser; @@ -57,6 +71,7 @@ var TypeScript; SyntaxCursor.prototype.currentNode = function () { return null; }; + __names(SyntaxCursor.prototype, ["currentNode"]); return SyntaxCursor; }()); })(Parser = TypeScript.Parser || (TypeScript.Parser = {})); @@ -70,6 +85,7 @@ var TypeScript; PositionedElement.prototype.childIndex = function (child) { return TypeScript.Syntax.childIndex(); }; + __names(PositionedElement.prototype, ["childIndex"]); return PositionedElement; }()); TypeScript.PositionedElement = PositionedElement; @@ -92,6 +108,7 @@ var TypeScript; SyntaxNode.prototype.findTokenInternal = function (x, y, z) { return null; }; + __names(SyntaxNode.prototype, ["findToken", "findTokenInternal"]); return SyntaxNode; }()); TypeScript.SyntaxNode = SyntaxNode; @@ -107,6 +124,7 @@ var TypeScript; VariableWidthTokenWithTrailingTrivia.prototype.findTokenInternal = function (parent, position, fullStart) { return new TypeScript.PositionedToken(parent, this, fullStart); }; + __names(VariableWidthTokenWithTrailingTrivia.prototype, ["findTokenInternal"]); return VariableWidthTokenWithTrailingTrivia; }()); Syntax.VariableWidthTokenWithTrailingTrivia = VariableWidthTokenWithTrailingTrivia; diff --git a/tests/baselines/reference/moduleMerge.js b/tests/baselines/reference/moduleMerge.js index 4e5aac120fc96..1fe47289ed18e 100644 --- a/tests/baselines/reference/moduleMerge.js +++ b/tests/baselines/reference/moduleMerge.js @@ -25,6 +25,20 @@ module A //// [moduleMerge.js] // This should not compile both B classes are in the same module this should be a collission +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var B = (function () { @@ -33,6 +47,7 @@ var A; B.prototype.Hello = function () { return "from private B"; }; + __names(B.prototype, ["Hello"]); return B; }()); })(A || (A = {})); @@ -43,6 +58,7 @@ var A; B.prototype.Hello = function () { return "from export B"; }; + __names(B.prototype, ["Hello"]); return B; }()); A.B = B; diff --git a/tests/baselines/reference/moduleNewExportBug.js b/tests/baselines/reference/moduleNewExportBug.js index b48f6dd73b07c..f192058b2841d 100644 --- a/tests/baselines/reference/moduleNewExportBug.js +++ b/tests/baselines/reference/moduleNewExportBug.js @@ -14,12 +14,27 @@ var c : mod1.C; // ERROR: C should not be visible //// [moduleNewExportBug.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var mod1; (function (mod1) { var C = (function () { function C() { } C.prototype.moo = function () { }; + __names(C.prototype, ["moo"]); return C; }()); })(mod1 || (mod1 = {})); diff --git a/tests/baselines/reference/moduleReopenedTypeOtherBlock.js b/tests/baselines/reference/moduleReopenedTypeOtherBlock.js index 007090a0c1178..d6522168aaeb9 100644 --- a/tests/baselines/reference/moduleReopenedTypeOtherBlock.js +++ b/tests/baselines/reference/moduleReopenedTypeOtherBlock.js @@ -9,6 +9,20 @@ module M { //// [moduleReopenedTypeOtherBlock.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C1 = (function () { @@ -23,6 +37,7 @@ var M; function C2() { } C2.prototype.f = function () { return null; }; + __names(C2.prototype, ["f"]); return C2; }()); M.C2 = C2; diff --git a/tests/baselines/reference/moduleReopenedTypeSameBlock.js b/tests/baselines/reference/moduleReopenedTypeSameBlock.js index 07b5e8e657eb3..21b2c926a5b0f 100644 --- a/tests/baselines/reference/moduleReopenedTypeSameBlock.js +++ b/tests/baselines/reference/moduleReopenedTypeSameBlock.js @@ -7,6 +7,20 @@ module M { //// [moduleReopenedTypeSameBlock.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C1 = (function () { @@ -21,6 +35,7 @@ var M; function C2() { } C2.prototype.f = function () { return null; }; + __names(C2.prototype, ["f"]); return C2; }()); M.C2 = C2; diff --git a/tests/baselines/reference/moduleVisibilityTest1.js b/tests/baselines/reference/moduleVisibilityTest1.js index 1bae7ecfd1fc2..d42cc12fd8a98 100644 --- a/tests/baselines/reference/moduleVisibilityTest1.js +++ b/tests/baselines/reference/moduleVisibilityTest1.js @@ -66,6 +66,20 @@ c.someMethodThatCallsAnOuterMethod(); //// [moduleVisibilityTest1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var OuterMod; (function (OuterMod) { function someExportedOuterFunc() { return -1; } @@ -108,6 +122,7 @@ var M; C.prototype.someMethodThatCallsAnInnerMethod = function () { return InnerMod.someExportedInnerFunc(); }; C.prototype.someMethodThatCallsAnOuterInnerMethod = function () { return OuterMod.someExportedOuterFunc(); }; C.prototype.someMethod = function () { return 0; }; + __names(C.prototype, ["someMethodThatCallsAnOuterMethod", "someMethodThatCallsAnInnerMethod", "someMethodThatCallsAnOuterInnerMethod", "someMethod"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/moduleVisibilityTest2.js b/tests/baselines/reference/moduleVisibilityTest2.js index b40d1721b6531..f4c5266a0e017 100644 --- a/tests/baselines/reference/moduleVisibilityTest2.js +++ b/tests/baselines/reference/moduleVisibilityTest2.js @@ -67,6 +67,20 @@ c.someMethodThatCallsAnOuterMethod(); //// [moduleVisibilityTest2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var OuterMod; (function (OuterMod) { function someExportedOuterFunc() { return -1; } @@ -109,6 +123,7 @@ var M; C.prototype.someMethodThatCallsAnInnerMethod = function () { return InnerMod.someExportedInnerFunc(); }; C.prototype.someMethodThatCallsAnOuterInnerMethod = function () { return OuterMod.someExportedOuterFunc(); }; C.prototype.someMethod = function () { return 0; }; + __names(C.prototype, ["someMethodThatCallsAnOuterMethod", "someMethodThatCallsAnInnerMethod", "someMethodThatCallsAnOuterInnerMethod", "someMethod"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/moduledecl.js b/tests/baselines/reference/moduledecl.js index b2dd3caaf3512..33d213f097a57 100644 --- a/tests/baselines/reference/moduledecl.js +++ b/tests/baselines/reference/moduledecl.js @@ -233,6 +233,20 @@ var m3eVar: mAmbient.m3.e; //// [moduledecl.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m0; (function (m0) { function f1() { @@ -263,6 +277,7 @@ var m1; c1.prototype.d = function () { return "Hello"; }; + __names(c1.prototype, ["d"]); return c1; }()); m1.c1 = c1; @@ -312,6 +327,7 @@ var exportTests; C1_public.prototype.f3 = function () { return "string"; }; + __names(C1_public.prototype, ["f2", "f3"]); return C1_public; }()); exportTests.C1_public = C1_public; @@ -324,6 +340,7 @@ var exportTests; C2_private.prototype.f3 = function () { return "string"; }; + __names(C2_private.prototype, ["f2", "f3"]); return C2_private; }()); var C3_public = (function () { @@ -353,6 +370,7 @@ var exportTests; enumerable: true, configurable: true }); + __names(C3_public.prototype, ["getC2_private", "setC2_private", "getC1_public", "setC1_public"]); return C3_public; }()); exportTests.C3_public = C3_public; diff --git a/tests/baselines/reference/multiImportExport.js b/tests/baselines/reference/multiImportExport.js index 07e353cb301b2..6a5d15c6484c7 100644 --- a/tests/baselines/reference/multiImportExport.js +++ b/tests/baselines/reference/multiImportExport.js @@ -27,11 +27,26 @@ export = Adder; //// [Adder.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Adder = (function () { function Adder() { } Adder.prototype.add = function (a, b) { }; + __names(Adder.prototype, ["add"]); return Adder; }()); module.exports = Adder; diff --git a/tests/baselines/reference/multiModuleClodule1.js b/tests/baselines/reference/multiModuleClodule1.js index eac6bfa8d51a0..4f28b85a9ff86 100644 --- a/tests/baselines/reference/multiModuleClodule1.js +++ b/tests/baselines/reference/multiModuleClodule1.js @@ -19,12 +19,27 @@ var c = new C(C.x); c.foo = C.foo; //// [multiModuleClodule1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x) { } C.prototype.foo = function () { }; C.prototype.bar = function () { }; C.boo = function () { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); (function (C) { diff --git a/tests/baselines/reference/multipleDeclarations.js b/tests/baselines/reference/multipleDeclarations.js index 7fb7e0bca026f..19ee0cef10070 100644 --- a/tests/baselines/reference/multipleDeclarations.js +++ b/tests/baselines/reference/multipleDeclarations.js @@ -36,6 +36,20 @@ y.mistake(); //// [output.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function C() { this.m = null; } @@ -51,6 +65,7 @@ var X = (function () { }; X.prototype.mistake = function () { }; + __names(X.prototype, ["m", "mistake"]); return X; }()); var x = new X(); @@ -66,6 +81,7 @@ var Y = (function () { }; Y.prototype.m = function () { }; + __names(Y.prototype, ["mistake", "m"]); return Y; }()); Y.prototype.mistake = true; diff --git a/tests/baselines/reference/multipleInheritance.js b/tests/baselines/reference/multipleInheritance.js index 59abc8cd469e7..94a7e30402721 100644 --- a/tests/baselines/reference/multipleInheritance.js +++ b/tests/baselines/reference/multipleInheritance.js @@ -49,6 +49,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B1 = (function () { function B1() { } @@ -104,6 +118,7 @@ var Good = (function () { this.f = function () { return 0; }; } Good.prototype.g = function () { return 0; }; + __names(Good.prototype, ["g"]); return Good; }()); var Baad = (function (_super) { @@ -113,5 +128,6 @@ var Baad = (function (_super) { } Baad.prototype.f = function () { return 0; }; Baad.prototype.g = function (n) { return 0; }; + __names(Baad.prototype, ["f", "g"]); return Baad; }(Good)); diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js index 7977134b2ed94..44f6799a035c5 100644 --- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js +++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js @@ -11,6 +11,20 @@ var test = new foo(); //// [mutuallyRecursiveGenericBaseTypes2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -25,6 +39,7 @@ var foo = (function () { function foo() { } foo.prototype.bar = function () { return null; }; + __names(foo.prototype, ["bar"]); return foo; }()); var foo2 = (function (_super) { diff --git a/tests/baselines/reference/narrowTypeByInstanceof.js b/tests/baselines/reference/narrowTypeByInstanceof.js index 0415c72b9fd76..effd065ceba55 100644 --- a/tests/baselines/reference/narrowTypeByInstanceof.js +++ b/tests/baselines/reference/narrowTypeByInstanceof.js @@ -26,12 +26,27 @@ if (elementA instanceof FileMatch && elementB instanceof FileMatch) { //// [narrowTypeByInstanceof.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Match = (function () { function Match() { } Match.prototype.range = function () { return undefined; }; + __names(Match.prototype, ["range"]); return Match; }()); var FileMatch = (function () { @@ -40,6 +55,7 @@ var FileMatch = (function () { FileMatch.prototype.resource = function () { return undefined; }; + __names(FileMatch.prototype, ["resource"]); return FileMatch; }()); var elementA, elementB; diff --git a/tests/baselines/reference/narrowedConstInMethod.js b/tests/baselines/reference/narrowedConstInMethod.js index e86b6df6a460b..83f7680a9993a 100644 --- a/tests/baselines/reference/narrowedConstInMethod.js +++ b/tests/baselines/reference/narrowedConstInMethod.js @@ -20,6 +20,20 @@ function f2() { //// [narrowedConstInMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Fixes #10501, possibly null 'x' function f() { var x = {}; @@ -36,6 +50,7 @@ function f2() { function class_1() { } class_1.prototype.bar = function () { return x.length; }; // ok + __names(class_1.prototype, ["bar"]); return class_1; }()); } diff --git a/tests/baselines/reference/nestedLoops.js b/tests/baselines/reference/nestedLoops.js index 6b01eae55cd9e..41ae7693dfb0c 100644 --- a/tests/baselines/reference/nestedLoops.js +++ b/tests/baselines/reference/nestedLoops.js @@ -19,6 +19,20 @@ export class Test { //// [nestedLoops.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); Object.defineProperty(exports, "__esModule", { value: true }); var Test = (function () { function Test() { @@ -43,6 +57,7 @@ var Test = (function () { } Test.prototype.aFunction = function (func) { }; + __names(Test.prototype, ["aFunction"]); return Test; }()); exports.Test = Test; diff --git a/tests/baselines/reference/nestedSelf.js b/tests/baselines/reference/nestedSelf.js index ea6abc8e1e8fc..80a6aa2c1ab85 100644 --- a/tests/baselines/reference/nestedSelf.js +++ b/tests/baselines/reference/nestedSelf.js @@ -9,6 +9,20 @@ module M { //// [nestedSelf.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { @@ -19,6 +33,7 @@ var M; var _this = this; [1, 2, 3].map(function (x) { return _this.n * x; }); }; + __names(C.prototype, ["foo"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/neverType.js b/tests/baselines/reference/neverType.js index e21a2fedf8ecc..4043194256caf 100644 --- a/tests/baselines/reference/neverType.js +++ b/tests/baselines/reference/neverType.js @@ -91,6 +91,20 @@ test(errorCallback); //// [neverType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function error(message) { throw new Error(message); } @@ -146,6 +160,7 @@ var C = (function () { C.prototype.never2 = function () { while (true) { } }; + __names(C.prototype, ["void1", "void2", "never1", "never2"]); return C; }()); function f1(x) { diff --git a/tests/baselines/reference/newArrays.js b/tests/baselines/reference/newArrays.js index d156ee24f1c13..a8a7789caec1d 100644 --- a/tests/baselines/reference/newArrays.js +++ b/tests/baselines/reference/newArrays.js @@ -13,6 +13,20 @@ module M { } //// [newArrays.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var Foo = (function () { @@ -28,6 +42,7 @@ var M; Gar.prototype.m = function () { this.fa = new Array(this.x * this.y); }; + __names(Gar.prototype, ["m"]); return Gar; }()); })(M || (M = {})); diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js index b7fdfc5a49d5d..add229d862f6a 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js @@ -20,6 +20,20 @@ class a { } //// [noCollisionThisExpressionAndLocalVarInMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var _this = 2; var a = (function () { function a() { @@ -40,5 +54,6 @@ var a = (function () { }; } }; }; + __names(a.prototype, ["method1", "method2"]); return a; }()); diff --git a/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js b/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js index 63788fd860ffe..8f98404eabb37 100644 --- a/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js +++ b/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js @@ -13,6 +13,20 @@ export declare class Bar2 { //// [noImplicitAnyDestructuringInPrivateMethod.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Bar = (function () { function Bar() { @@ -21,6 +35,7 @@ var Bar = (function () { var a = _a.a; return a; }; + __names(Bar.prototype, ["bar"]); return Bar; }()); exports.Bar = Bar; diff --git a/tests/baselines/reference/noImplicitAnyForMethodParameters.js b/tests/baselines/reference/noImplicitAnyForMethodParameters.js index ea868ee7503a2..ba103f863c399 100644 --- a/tests/baselines/reference/noImplicitAnyForMethodParameters.js +++ b/tests/baselines/reference/noImplicitAnyForMethodParameters.js @@ -15,15 +15,31 @@ class D { } //// [noImplicitAnyForMethodParameters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (a) { }; // OK - non-ambient class and private method - error + __names(C.prototype, ["foo"]); return C; }()); var D = (function () { function D() { } D.prototype.foo = function (a) { }; // OK - non-ambient class and public method - error + __names(D.prototype, ["foo"]); return D; }()); diff --git a/tests/baselines/reference/noImplicitAnyParametersInClass.js b/tests/baselines/reference/noImplicitAnyParametersInClass.js index 648f93dccdc28..6b46d090091a5 100644 --- a/tests/baselines/reference/noImplicitAnyParametersInClass.js +++ b/tests/baselines/reference/noImplicitAnyParametersInClass.js @@ -92,6 +92,20 @@ class C { } //// [noImplicitAnyParametersInClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { // No implicit-'any' errors. @@ -194,5 +208,6 @@ var C = (function () { } }; C.prototype.priv_f8 = function (x3, y3) { }; + __names(C.prototype, ["pub_f1", "pub_f2", "pub_f3", "pub_f4", "pub_f5", "pub_f6", "pub_f7", "pub_f8", "priv_f1", "priv_f2", "priv_f3", "priv_f4", "priv_f5", "priv_f6", "priv_f7", "priv_f8"]); return C; }()); diff --git a/tests/baselines/reference/noTypeArgumentOnReturnType1.js b/tests/baselines/reference/noTypeArgumentOnReturnType1.js index 7ede1e57c3e56..0a6c0cab192bd 100644 --- a/tests/baselines/reference/noTypeArgumentOnReturnType1.js +++ b/tests/baselines/reference/noTypeArgumentOnReturnType1.js @@ -7,11 +7,26 @@ class A{ } //// [noTypeArgumentOnReturnType1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { return null; }; + __names(A.prototype, ["foo"]); return A; }()); diff --git a/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js b/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js index d4ac9685f6171..d4d5574751339 100644 --- a/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js +++ b/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js @@ -9,11 +9,26 @@ class A { } //// [nonMergedDeclarationsAndOverloads.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.f = function () { }; A.prototype.m1 = function (a) { }; + __names(A.prototype, ["f", "m1"]); return A; }()); diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js index 33a03705965c5..747bb47e73ced 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js @@ -99,6 +99,20 @@ var b: { [x: number]: string; } = { //// [numericIndexerConstrainsPropertyDeclarations.js] // String indexer types constrain the types of named properties in their containing type +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } // ok @@ -122,6 +136,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js index 9e501b5d92c3e..0ca16f8dc91c8 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js @@ -47,6 +47,20 @@ var b: { [x: number]: A } = { //// [numericIndexerConstrainsPropertyDeclarations2.js] // String indexer providing a constraint of a user defined type +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -61,6 +75,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return ''; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -69,6 +84,7 @@ var B = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } B.prototype.bar = function () { return ''; }; + __names(B.prototype, ["bar"]); return B; }(A)); var Foo = (function () { diff --git a/tests/baselines/reference/numericIndexerConstraint1.js b/tests/baselines/reference/numericIndexerConstraint1.js index 1065f7d9dc885..8598b71c118d1 100644 --- a/tests/baselines/reference/numericIndexerConstraint1.js +++ b/tests/baselines/reference/numericIndexerConstraint1.js @@ -5,10 +5,25 @@ var result: Foo = x["one"]; // error //// [numericIndexerConstraint1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.foo = function () { }; + __names(Foo.prototype, ["foo"]); return Foo; }()); var x; diff --git a/tests/baselines/reference/numericIndexerConstraint2.js b/tests/baselines/reference/numericIndexerConstraint2.js index a8063a2548d60..feaba238cc044 100644 --- a/tests/baselines/reference/numericIndexerConstraint2.js +++ b/tests/baselines/reference/numericIndexerConstraint2.js @@ -5,10 +5,25 @@ var a: { one: number; }; x = a; //// [numericIndexerConstraint2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.foo = function () { }; + __names(Foo.prototype, ["foo"]); return Foo; }()); var x; diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js index 72645662e01da..d1dc0daeb131f 100644 --- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js +++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js @@ -56,6 +56,20 @@ var foods2: MonsterFood[] = new PetFood[new IceCream('Mint chocolate chip') , Co //// [objectCreationOfElementAccessExpression.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -81,6 +95,7 @@ var Food = (function () { return true; } }; + __names(Food.prototype, ["eat"]); return Food; }()); var MonsterFood = (function (_super) { diff --git a/tests/baselines/reference/objectRestParameterES5.js b/tests/baselines/reference/objectRestParameterES5.js index d16a0c68df0de..333c52710cae0 100644 --- a/tests/baselines/reference/objectRestParameterES5.js +++ b/tests/baselines/reference/objectRestParameterES5.js @@ -22,6 +22,20 @@ foobar({ bar: { greeting: 'hello' } }); //// [objectRestParameterES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -58,6 +72,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["m"]); return C; }()); function foobar(_a) { diff --git a/tests/baselines/reference/objectSpread.js b/tests/baselines/reference/objectSpread.js index 2bc3b9e11bd8f..56e49cdb9f18b 100644 --- a/tests/baselines/reference/objectSpread.js +++ b/tests/baselines/reference/objectSpread.js @@ -83,6 +83,20 @@ let spreadNonPrimitive = { ...{}}; //// [objectSpread.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; @@ -123,6 +137,7 @@ var C = (function () { this.p = 1; } C.prototype.m = function () { }; + __names(C.prototype, ["m"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/objectSpreadNegative.js b/tests/baselines/reference/objectSpreadNegative.js index 0cc93692b595d..8c8d65110a83c 100644 --- a/tests/baselines/reference/objectSpreadNegative.js +++ b/tests/baselines/reference/objectSpreadNegative.js @@ -85,6 +85,20 @@ const a3: A = { ...extra3 }; // same here //// [objectSpreadNegative.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; @@ -142,6 +156,7 @@ var C = (function () { this.p = 1; } C.prototype.m = function () { }; + __names(C.prototype, ["m"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js index 22a852e156c57..b8d90e27d8949 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js @@ -65,6 +65,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -81,6 +95,7 @@ var C = (function () { function C() { } C.prototype.valueOf = function () { }; + __names(C.prototype, ["valueOf"]); return C; }()); var c; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObject.js b/tests/baselines/reference/objectTypeHidingMembersOfObject.js index bae6b56ff38b3..4e1bfbad11fe5 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObject.js @@ -29,10 +29,25 @@ var r4: void = b.valueOf(); //// [objectTypeHidingMembersOfObject.js] // all of these valueOf calls should return the type shown in the overriding signatures here +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.valueOf = function () { }; + __names(C.prototype, ["valueOf"]); return C; }()); var c; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js index 65fc548ed6e6d..65bebfd628657 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js @@ -22,6 +22,20 @@ o = a; // error a = o; // ok //// [objectTypeHidingMembersOfObjectAssignmentCompat.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var i; var o; o = i; // error @@ -30,6 +44,7 @@ var C = (function () { function C() { } C.prototype.toString = function () { }; + __names(C.prototype, ["toString"]); return C; }()); var c; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js index 6898e69cedc03..0fbc932027327 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js @@ -22,6 +22,20 @@ o = a; // error a = o; // ok //// [objectTypeHidingMembersOfObjectAssignmentCompat2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var i; var o; o = i; // error @@ -30,6 +44,7 @@ var C = (function () { function C() { } C.prototype.toString = function () { return 1; }; + __names(C.prototype, ["toString"]); return C; }()); var c; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js index a3e1e4fa4444c..01a3178b198b0 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js @@ -102,22 +102,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithCallSignatures.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js index 3b6956435f9b4..a50c1b0a4d6cb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js @@ -102,22 +102,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithCallSignatures2.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js index a9909c7283ff8..af45d5726e1a5 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js @@ -102,22 +102,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithCallSignaturesDifferingParamCounts.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js index 3f72347a00f47..8e17c0def5f99 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js @@ -118,22 +118,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithCallSignaturesWithOverloads.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js index 2289665621c92..6052c106f0f05 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js @@ -102,22 +102,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithGenericCallSignatures.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js index d6a61b8d304a8..93460429a25f7 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js @@ -102,22 +102,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithGenericCallSignatures2.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x, y) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js index a1b383a70e309..c456df6bb95ff 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js @@ -106,22 +106,39 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js index fbcba9d121e12..edae16682f362 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js @@ -118,28 +118,46 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x, y) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function () { function D() { } D.prototype.foo = function (x, y) { return null; }; + __names(D.prototype, ["foo"]); return D; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js index 48131af3212f3..6055e11b5e091 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js @@ -127,6 +127,20 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var One = (function () { function One() { } @@ -141,24 +155,28 @@ var A = (function () { function A() { } A.prototype.foo = function (x, y) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function () { function D() { } D.prototype.foo = function (x, y) { return null; }; + __names(D.prototype, ["foo"]); return D; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js index 43147c28f55a6..1969f5b6ef739 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js @@ -106,22 +106,39 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js index c3758bc6c08e5..79258ae678ae9 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js @@ -106,22 +106,39 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js index de6a4724cd707..41ccc9db1a792 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js @@ -102,22 +102,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js index c27f7095d16d2..6d6814a8c59f5 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js @@ -102,22 +102,39 @@ function foo15(x: any) { } //// [objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js] // object types are identical structurally +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js index 327cc15eddbd7..004ebd9f4d8b2 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js @@ -106,22 +106,39 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x, y) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js index 753548bc360e7..3a4f0f84a7a2c 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js @@ -106,22 +106,39 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x, y) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js index da4bb20591bf9..e6b76b836f5a3 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js @@ -106,22 +106,39 @@ function foo15(x: any) { } // Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those // parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required, // optional or rest) and types, and identical return types. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function (x, y) { return null; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { function B() { } B.prototype.foo = function (x, y) { return null; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { function C() { } C.prototype.foo = function (x, y) { return null; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/objectTypesWithOptionalProperties2.js b/tests/baselines/reference/objectTypesWithOptionalProperties2.js index 1612e6785c70e..105b84f8665df 100644 --- a/tests/baselines/reference/objectTypesWithOptionalProperties2.js +++ b/tests/baselines/reference/objectTypesWithOptionalProperties2.js @@ -28,17 +28,33 @@ var b = { //// [objectTypesWithOptionalProperties2.js] // Illegal attempts to define optional methods +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a; var C = (function () { function C() { } C.prototype.x = function () { }; + __names(C.prototype, ["x"]); return C; }()); var C2 = (function () { function C2() { } C2.prototype.x = function () { }; + __names(C2.prototype, ["x"]); return C2; }()); var b = { diff --git a/tests/baselines/reference/optionalArgsWithDefaultValues.js b/tests/baselines/reference/optionalArgsWithDefaultValues.js index b2bdc7a9a658c..2df38f084d9f1 100644 --- a/tests/baselines/reference/optionalArgsWithDefaultValues.js +++ b/tests/baselines/reference/optionalArgsWithDefaultValues.js @@ -10,6 +10,20 @@ var a = (x?=0) => { return 1; }; var b = (x, y?:number = 2) => { x; }; //// [optionalArgsWithDefaultValues.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x, y, z) { if (y === void 0) { y = false; } if (z === void 0) { z = 0; } @@ -25,6 +39,7 @@ var CCC = (function () { if (y === void 0) { y = false; } if (z === void 0) { z = 0; } }; + __names(CCC.prototype, ["foo"]); return CCC; }()); var a = function (x) { diff --git a/tests/baselines/reference/optionalConstructorArgInSuper.js b/tests/baselines/reference/optionalConstructorArgInSuper.js index 2412ce67ffe9c..a321412c28324 100644 --- a/tests/baselines/reference/optionalConstructorArgInSuper.js +++ b/tests/baselines/reference/optionalConstructorArgInSuper.js @@ -11,6 +11,20 @@ d2.foo(); //// [optionalConstructorArgInSuper.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -25,6 +39,7 @@ var Base = (function () { function Base(opt) { } Base.prototype.foo = function (other) { }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived = (function (_super) { diff --git a/tests/baselines/reference/optionalMethods.js b/tests/baselines/reference/optionalMethods.js index 2abcd20927703..2703f216d4cab 100644 --- a/tests/baselines/reference/optionalMethods.js +++ b/tests/baselines/reference/optionalMethods.js @@ -57,6 +57,20 @@ class Derived extends Base { //// [optionalMethods.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -89,6 +103,7 @@ var Bar = (function () { Bar.prototype.h = function () { return 2; }; + __names(Bar.prototype, ["f", "h"]); return Bar; }()); function test2(x) { @@ -118,6 +133,7 @@ var Derived = (function (_super) { return _this; } Derived.prototype.f = function () { return 1; }; + __names(Derived.prototype, ["f"]); return Derived; }(Base)); diff --git a/tests/baselines/reference/optionalParamArgsTest.js b/tests/baselines/reference/optionalParamArgsTest.js index 5c8503a9bef77..cdb3c7a0f4620 100644 --- a/tests/baselines/reference/optionalParamArgsTest.js +++ b/tests/baselines/reference/optionalParamArgsTest.js @@ -125,6 +125,20 @@ fnOpt2(1, [2, 3], [1], true); //// [optionalParamArgsTest.js] // Optional parameter and default argument tests +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -161,6 +175,7 @@ var C1 = (function () { if (C1M5A2 === void 0) { C1M5A2 = 0; } return C1M5A1 + C1M5A2; }; + __names(C1.prototype, ["C1M1", "C1M2", "C1M3", "C1M4", "C1M5", "C1M5"]); return C1; }()); var C2 = (function (_super) { diff --git a/tests/baselines/reference/optionalParamInOverride.js b/tests/baselines/reference/optionalParamInOverride.js index 601cb4d6f1e16..9be1e47e0d2e3 100644 --- a/tests/baselines/reference/optionalParamInOverride.js +++ b/tests/baselines/reference/optionalParamInOverride.js @@ -8,6 +8,20 @@ class Y extends Z { //// [optionalParamInOverride.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -22,6 +36,7 @@ var Z = (function () { function Z() { } Z.prototype.func = function () { }; + __names(Z.prototype, ["func"]); return Z; }()); var Y = (function (_super) { @@ -30,5 +45,6 @@ var Y = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Y.prototype.func = function (value) { }; + __names(Y.prototype, ["func"]); return Y; }(Z)); diff --git a/tests/baselines/reference/out-flag.js b/tests/baselines/reference/out-flag.js index a8c689f9736d9..2ac1ae636fe16 100644 --- a/tests/baselines/reference/out-flag.js +++ b/tests/baselines/reference/out-flag.js @@ -18,6 +18,20 @@ class MyClass //// [out-flag.js] //// @out: bin\ +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // my class comments var MyClass = (function () { function MyClass() { @@ -29,6 +43,7 @@ var MyClass = (function () { MyClass.prototype.SetCount = function (value) { // }; + __names(MyClass.prototype, ["Count", "SetCount"]); return MyClass; }()); //# sourceMappingURL=out-flag.js.map diff --git a/tests/baselines/reference/out-flag.js.map b/tests/baselines/reference/out-flag.js.map index 5d3af0ec652ae..aeb82811451fa 100644 --- a/tests/baselines/reference/out-flag.js.map +++ b/tests/baselines/reference/out-flag.js.map @@ -1,2 +1,2 @@ //// [out-flag.js.map] -{"version":3,"file":"out-flag.js","sourceRoot":"","sources":["out-flag.ts"],"names":[],"mappings":"AAAA,eAAe;AAEf,oBAAoB;AACpB;IAAA;IAYA,CAAC;IAVG,uBAAuB;IAChB,uBAAK,GAAZ;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IAEM,0BAAQ,GAAf,UAAgB,KAAa;QAEzB,EAAE;IACN,CAAC;IACL,cAAC;AAAD,CAAC,AAZD,IAYC"} \ No newline at end of file +{"version":3,"file":"out-flag.js","sourceRoot":"","sources":["out-flag.ts"],"names":[],"mappings":"AAAA,eAAe;;;;;;;;;;;;;;;AAEf,oBAAoB;AACpB;IAAA;IAYA,CAAC;IAVG,uBAAuB;IAChB,uBAAK,GAAZ;QAEI,MAAM,CAAC,EAAE,CAAC;IACd,CAAC;IAEM,0BAAQ,GAAf,UAAgB,KAAa;QAEzB,EAAE;IACN,CAAC;;IACL,cAAC;AAAD,CAAC,AAZD,IAYC"} \ No newline at end of file diff --git a/tests/baselines/reference/out-flag.sourcemap.txt b/tests/baselines/reference/out-flag.sourcemap.txt index 6bc04d8c453b2..5659e3a7bd444 100644 --- a/tests/baselines/reference/out-flag.sourcemap.txt +++ b/tests/baselines/reference/out-flag.sourcemap.txt @@ -11,12 +11,26 @@ sourceFile:out-flag.ts >>>//// @out: bin\ 1 > 2 >^^^^^^^^^^^^^^^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >//// @out: bin\ 1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) 2 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) --- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>// my class comments 1-> 2 >^^^^^^^^^^^^^^^^^^^^ @@ -25,21 +39,21 @@ sourceFile:out-flag.ts > > 2 >// my class comments -1->Emitted(2, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(2, 21) Source(3, 21) + SourceIndex(0) +1->Emitted(16, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(16, 21) Source(3, 21) + SourceIndex(0) --- >>>var MyClass = (function () { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(3, 1) Source(4, 1) + SourceIndex(0) +1->Emitted(17, 1) Source(4, 1) + SourceIndex(0) --- >>> function MyClass() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(4, 5) Source(4, 1) + SourceIndex(0) +1->Emitted(18, 5) Source(4, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -59,8 +73,8 @@ sourceFile:out-flag.ts > } > 2 > } -1->Emitted(5, 5) Source(16, 1) + SourceIndex(0) -2 >Emitted(5, 6) Source(16, 2) + SourceIndex(0) +1->Emitted(19, 5) Source(16, 1) + SourceIndex(0) +2 >Emitted(19, 6) Source(16, 2) + SourceIndex(0) --- >>> // my function comments 1->^^^^ @@ -68,8 +82,8 @@ sourceFile:out-flag.ts 3 > ^^^^^^^^^^^^^^^^^-> 1-> 2 > // my function comments -1->Emitted(6, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(6, 28) Source(6, 28) + SourceIndex(0) +1->Emitted(20, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(20, 28) Source(6, 28) + SourceIndex(0) --- >>> MyClass.prototype.Count = function () { 1->^^^^ @@ -79,9 +93,9 @@ sourceFile:out-flag.ts > public 2 > Count 3 > -1->Emitted(7, 5) Source(7, 12) + SourceIndex(0) -2 >Emitted(7, 28) Source(7, 17) + SourceIndex(0) -3 >Emitted(7, 31) Source(7, 5) + SourceIndex(0) +1->Emitted(21, 5) Source(7, 12) + SourceIndex(0) +2 >Emitted(21, 28) Source(7, 17) + SourceIndex(0) +3 >Emitted(21, 31) Source(7, 5) + SourceIndex(0) --- >>> return 42; 1 >^^^^^^^^ @@ -96,11 +110,11 @@ sourceFile:out-flag.ts 3 > 4 > 42 5 > ; -1 >Emitted(8, 9) Source(9, 9) + SourceIndex(0) -2 >Emitted(8, 15) Source(9, 15) + SourceIndex(0) -3 >Emitted(8, 16) Source(9, 16) + SourceIndex(0) -4 >Emitted(8, 18) Source(9, 18) + SourceIndex(0) -5 >Emitted(8, 19) Source(9, 19) + SourceIndex(0) +1 >Emitted(22, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(22, 15) Source(9, 15) + SourceIndex(0) +3 >Emitted(22, 16) Source(9, 16) + SourceIndex(0) +4 >Emitted(22, 18) Source(9, 18) + SourceIndex(0) +5 >Emitted(22, 19) Source(9, 19) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -109,8 +123,8 @@ sourceFile:out-flag.ts 1 > > 2 > } -1 >Emitted(9, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(9, 6) Source(10, 6) + SourceIndex(0) +1 >Emitted(23, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(23, 6) Source(10, 6) + SourceIndex(0) --- >>> MyClass.prototype.SetCount = function (value) { 1->^^^^ @@ -125,11 +139,11 @@ sourceFile:out-flag.ts 3 > 4 > public SetCount( 5 > value: number -1->Emitted(10, 5) Source(12, 12) + SourceIndex(0) -2 >Emitted(10, 31) Source(12, 20) + SourceIndex(0) -3 >Emitted(10, 34) Source(12, 5) + SourceIndex(0) -4 >Emitted(10, 44) Source(12, 21) + SourceIndex(0) -5 >Emitted(10, 49) Source(12, 34) + SourceIndex(0) +1->Emitted(24, 5) Source(12, 12) + SourceIndex(0) +2 >Emitted(24, 31) Source(12, 20) + SourceIndex(0) +3 >Emitted(24, 34) Source(12, 5) + SourceIndex(0) +4 >Emitted(24, 44) Source(12, 21) + SourceIndex(0) +5 >Emitted(24, 49) Source(12, 34) + SourceIndex(0) --- >>> // 1 >^^^^^^^^ @@ -138,27 +152,28 @@ sourceFile:out-flag.ts > { > 2 > // -1 >Emitted(11, 9) Source(14, 9) + SourceIndex(0) -2 >Emitted(11, 11) Source(14, 11) + SourceIndex(0) +1 >Emitted(25, 9) Source(14, 9) + SourceIndex(0) +2 >Emitted(25, 11) Source(14, 11) + SourceIndex(0) --- >>> }; 1 >^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) -2 >Emitted(12, 6) Source(15, 6) + SourceIndex(0) +1 >Emitted(26, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(26, 6) Source(15, 6) + SourceIndex(0) --- +>>> __names(MyClass.prototype, ["Count", "SetCount"]); >>> return MyClass; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> > 2 > } -1->Emitted(13, 5) Source(16, 1) + SourceIndex(0) -2 >Emitted(13, 19) Source(16, 2) + SourceIndex(0) +1->Emitted(28, 5) Source(16, 1) + SourceIndex(0) +2 >Emitted(28, 19) Source(16, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -182,9 +197,9 @@ sourceFile:out-flag.ts > // > } > } -1 >Emitted(14, 1) Source(16, 1) + SourceIndex(0) -2 >Emitted(14, 2) Source(16, 2) + SourceIndex(0) -3 >Emitted(14, 2) Source(4, 1) + SourceIndex(0) -4 >Emitted(14, 6) Source(16, 2) + SourceIndex(0) +1 >Emitted(29, 1) Source(16, 1) + SourceIndex(0) +2 >Emitted(29, 2) Source(16, 2) + SourceIndex(0) +3 >Emitted(29, 2) Source(4, 1) + SourceIndex(0) +4 >Emitted(29, 6) Source(16, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=out-flag.js.map \ No newline at end of file diff --git a/tests/baselines/reference/overloadConsecutiveness.js b/tests/baselines/reference/overloadConsecutiveness.js index 6a245ea18fa7f..519bc8e33eea4 100644 --- a/tests/baselines/reference/overloadConsecutiveness.js +++ b/tests/baselines/reference/overloadConsecutiveness.js @@ -14,6 +14,20 @@ class C { //// [overloadConsecutiveness.js] // Making sure compiler won't break with declarations that are consecutive in the AST but not consecutive in the source. Syntax errors intentional. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f1() { } function f2() { } function f2() { } @@ -25,5 +39,6 @@ var C = (function () { C.prototype.m2 = function () { }; C.prototype.m2 = function () { }; C.prototype.m3 = function () { }; + __names(C.prototype, ["m1", "m2", "m2", "m3"]); return C; }()); diff --git a/tests/baselines/reference/overloadModifiersMustAgree.js b/tests/baselines/reference/overloadModifiersMustAgree.js index 783bf854a8424..0b051ad36f0b0 100644 --- a/tests/baselines/reference/overloadModifiersMustAgree.js +++ b/tests/baselines/reference/overloadModifiersMustAgree.js @@ -17,11 +17,26 @@ interface I { //// [overloadModifiersMustAgree.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var baz = (function () { function baz() { } baz.prototype.foo = function (bar) { }; // error - access modifiers do not agree + __names(baz.prototype, ["foo"]); return baz; }()); function bar(s) { } diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks1.js b/tests/baselines/reference/overloadOnConstConstraintChecks1.js index 6a4cc01bf8563..1b466da8659e3 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks1.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks1.js @@ -23,6 +23,20 @@ class D implements MyDoc { } //// [overloadOnConstConstraintChecks1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -37,6 +51,7 @@ var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived1 = (function (_super) { @@ -45,6 +60,7 @@ var Derived1 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived1.prototype.bar = function () { }; + __names(Derived1.prototype, ["bar"]); return Derived1; }(Base)); var Derived2 = (function (_super) { @@ -53,6 +69,7 @@ var Derived2 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived2.prototype.baz = function () { }; + __names(Derived2.prototype, ["baz"]); return Derived2; }(Base)); var Derived3 = (function (_super) { @@ -61,6 +78,7 @@ var Derived3 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived3.prototype.biz = function () { }; + __names(Derived3.prototype, ["biz"]); return Derived3; }(Base)); var D = (function () { @@ -69,5 +87,6 @@ var D = (function () { D.prototype.createElement = function (tagName) { return null; }; + __names(D.prototype, ["createElement"]); return D; }()); diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks2.js b/tests/baselines/reference/overloadOnConstConstraintChecks2.js index 379de55da885e..485617d000876 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks2.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks2.js @@ -22,6 +22,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -40,6 +54,7 @@ var C = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }(A)); function foo(name) { diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks3.js b/tests/baselines/reference/overloadOnConstConstraintChecks3.js index de843b9f44cab..3cee3d0d435b0 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks3.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks3.js @@ -23,6 +23,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { this.x = 1; @@ -42,6 +56,7 @@ var C = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }(A)); function foo(name) { diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks4.js b/tests/baselines/reference/overloadOnConstConstraintChecks4.js index 3f7664ff6c8d5..6d8e660b56eb8 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks4.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks4.js @@ -24,6 +24,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Z = (function () { function Z() { } @@ -51,6 +65,7 @@ var C = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }(A)); function foo(name) { diff --git a/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js b/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js index 188e4d0214023..da7c4b197a246 100644 --- a/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js +++ b/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js @@ -9,10 +9,25 @@ class C implements I { } //// [overloadOnConstInBaseWithBadImplementationInDerived.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.x1 = function (a, callback) { }; + __names(C.prototype, ["x1"]); return C; }()); diff --git a/tests/baselines/reference/overloadOnConstInCallback1.js b/tests/baselines/reference/overloadOnConstInCallback1.js index d00779081774d..d9a1b3eb18e53 100644 --- a/tests/baselines/reference/overloadOnConstInCallback1.js +++ b/tests/baselines/reference/overloadOnConstInCallback1.js @@ -10,6 +10,20 @@ class C { } //// [overloadOnConstInCallback1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -19,5 +33,6 @@ var C = (function () { var hm = "hm"; callback(hm); }; + __names(C.prototype, ["x1"]); return C; }()); diff --git a/tests/baselines/reference/overloadOnConstInheritance4.js b/tests/baselines/reference/overloadOnConstInheritance4.js index f493d9ef2de0f..8cac3643f8cff 100644 --- a/tests/baselines/reference/overloadOnConstInheritance4.js +++ b/tests/baselines/reference/overloadOnConstInheritance4.js @@ -10,10 +10,25 @@ class C implements I { //// [overloadOnConstInheritance4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.x1 = function (a, callback) { }; + __names(C.prototype, ["x1"]); return C; }()); diff --git a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js index 5e3110abd3dd3..364899a14bcb4 100644 --- a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js +++ b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js @@ -22,6 +22,20 @@ c.x1(1, (x) => { return 1; } ); c.x1(1, (x: number) => { return 1; } ); //// [overloadOnConstNoAnyImplementation2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -32,6 +46,7 @@ var C = (function () { callback(hm); callback(1); // error }; + __names(C.prototype, ["x1"]); return C; }()); var c; diff --git a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js index 8a610f30922aa..09c8635c50c1e 100644 --- a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js +++ b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js @@ -6,9 +6,24 @@ class C { //// [overloadOnConstNoNonSpecializedSignature.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.x1 = function (a) { }; + __names(C.prototype, ["x1"]); return C; }()); diff --git a/tests/baselines/reference/overloadOnConstNoStringImplementation2.js b/tests/baselines/reference/overloadOnConstNoStringImplementation2.js index 98ee0f45c152d..db7365a46f6e1 100644 --- a/tests/baselines/reference/overloadOnConstNoStringImplementation2.js +++ b/tests/baselines/reference/overloadOnConstNoStringImplementation2.js @@ -21,6 +21,20 @@ c.x1(1, (x: string) => { return 1; } ); c.x1(1, (x: number) => { return 1; } ); //// [overloadOnConstNoStringImplementation2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -31,6 +45,7 @@ var C = (function () { callback(hm); callback(1); }; + __names(C.prototype, ["x1"]); return C; }()); var c; diff --git a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js index 5488ea03ee8b6..5632b76d6a317 100644 --- a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js +++ b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js @@ -12,6 +12,20 @@ function foo(name: "DIV"): Derived2 { foo("HI"); //// [overloadOnConstantsInvalidOverload1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -26,6 +40,7 @@ var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived1 = (function (_super) { @@ -34,6 +49,7 @@ var Derived1 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived1.prototype.bar = function () { }; + __names(Derived1.prototype, ["bar"]); return Derived1; }(Base)); var Derived2 = (function (_super) { @@ -42,6 +58,7 @@ var Derived2 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived2.prototype.baz = function () { }; + __names(Derived2.prototype, ["baz"]); return Derived2; }(Base)); var Derived3 = (function (_super) { @@ -50,6 +67,7 @@ var Derived3 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived3.prototype.biz = function () { }; + __names(Derived3.prototype, ["biz"]); return Derived3; }(Base)); function foo(name) { diff --git a/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js b/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js index 49ac12e615223..1f816352b50e8 100644 --- a/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js +++ b/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js @@ -6,11 +6,26 @@ class Bar { } //// [overloadResolutionOnDefaultConstructor1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Bar = (function () { function Bar() { } Bar.prototype.clone = function () { return new Bar(0); }; + __names(Bar.prototype, ["clone"]); return Bar; }()); diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js index c741abade66dc..0a67c6299f52f 100644 --- a/tests/baselines/reference/overloadingOnConstants1.js +++ b/tests/baselines/reference/overloadingOnConstants1.js @@ -26,6 +26,20 @@ var htmlDivElement2: Derived1 = d2.createElement("div"); var htmlSpanElement2: Derived1 = d2.createElement("span"); //// [overloadingOnConstants1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -40,6 +54,7 @@ var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived1 = (function (_super) { @@ -48,6 +63,7 @@ var Derived1 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived1.prototype.bar = function () { }; + __names(Derived1.prototype, ["bar"]); return Derived1; }(Base)); var Derived2 = (function (_super) { @@ -56,6 +72,7 @@ var Derived2 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived2.prototype.baz = function () { }; + __names(Derived2.prototype, ["baz"]); return Derived2; }(Base)); var Derived3 = (function (_super) { @@ -64,6 +81,7 @@ var Derived3 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived3.prototype.biz = function () { }; + __names(Derived3.prototype, ["biz"]); return Derived3; }(Base)); var d2; diff --git a/tests/baselines/reference/overloadsWithinClasses.js b/tests/baselines/reference/overloadsWithinClasses.js index 0cd191c8f4437..f12dd107312d7 100644 --- a/tests/baselines/reference/overloadsWithinClasses.js +++ b/tests/baselines/reference/overloadsWithinClasses.js @@ -24,6 +24,20 @@ class X { //// [overloadsWithinClasses.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var foo = (function () { function foo() { } @@ -42,5 +56,6 @@ var X = (function () { } X.prototype.attr = function (first, second) { }; + __names(X.prototype, ["attr"]); return X; }()); diff --git a/tests/baselines/reference/overrideBaseIntersectionMethod.js b/tests/baselines/reference/overrideBaseIntersectionMethod.js index ed17ef4e18948..1c637a1f9fe8a 100644 --- a/tests/baselines/reference/overrideBaseIntersectionMethod.js +++ b/tests/baselines/reference/overrideBaseIntersectionMethod.js @@ -43,6 +43,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var WithLocation = function (Base) { return (function (_super) { __extends(class_1, _super); function class_1() { @@ -52,6 +66,7 @@ var WithLocation = function (Base) { return (function (_super) { var _a = _super.prototype.getLocation.call(this), x = _a[0], y = _a[1]; return [this.x | x, this.y | y]; }; + __names(class_1.prototype, ["getLocation"]); return class_1; }(Base)); }; var Point = (function () { @@ -62,6 +77,7 @@ var Point = (function () { Point.prototype.getLocation = function () { return [0, 0]; }; + __names(Point.prototype, ["getLocation"]); return Point; }()); var Foo = (function (_super) { @@ -78,5 +94,6 @@ var Foo = (function (_super) { Foo.prototype.whereAmI = function () { return this.getLocation(); }; + __names(Foo.prototype, ["calculate", "getLocation", "whereAmI"]); return Foo; }(WithLocation(Point))); diff --git a/tests/baselines/reference/parameterInitializersForwardReferencing.js b/tests/baselines/reference/parameterInitializersForwardReferencing.js index e43ba42fbb8c8..9ec7288dbc8fd 100644 --- a/tests/baselines/reference/parameterInitializersForwardReferencing.js +++ b/tests/baselines/reference/parameterInitializersForwardReferencing.js @@ -42,6 +42,20 @@ function f(a, b = function () { return c; }, c = b()) { } //// [parameterInitializersForwardReferencing.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function left(a, b, c) { if (b === void 0) { b = a; } if (c === void 0) { c = b; } @@ -90,6 +104,7 @@ var C = (function () { if (a === void 0) { a = b; } if (b === void 0) { b = 1; } }; + __names(C.prototype, ["method"]); return C; }()); // Function expressions diff --git a/tests/baselines/reference/parameterNamesInTypeParameterList.js b/tests/baselines/reference/parameterNamesInTypeParameterList.js index f4d74b89782f1..808fe980dea3f 100644 --- a/tests/baselines/reference/parameterNamesInTypeParameterList.js +++ b/tests/baselines/reference/parameterNamesInTypeParameterList.js @@ -24,6 +24,20 @@ class A { } //// [parameterNamesInTypeParameterList.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f0(a) { a.b; } @@ -49,5 +63,6 @@ var A = (function () { var a = _a[0]; a.b; }; + __names(A.prototype, ["m0", "m1", "m2"]); return A; }()); diff --git a/tests/baselines/reference/parameterPropertyOutsideConstructor.js b/tests/baselines/reference/parameterPropertyOutsideConstructor.js index 151b766cf5dc1..3904c5f9ba98a 100644 --- a/tests/baselines/reference/parameterPropertyOutsideConstructor.js +++ b/tests/baselines/reference/parameterPropertyOutsideConstructor.js @@ -5,10 +5,25 @@ class C { } //// [parameterPropertyOutsideConstructor.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/parametersWithNoAnnotationAreAny.js b/tests/baselines/reference/parametersWithNoAnnotationAreAny.js index 54d9d1b6e037c..edd5b2eb3e6a9 100644 --- a/tests/baselines/reference/parametersWithNoAnnotationAreAny.js +++ b/tests/baselines/reference/parametersWithNoAnnotationAreAny.js @@ -30,6 +30,20 @@ var b = { } //// [parametersWithNoAnnotationAreAny.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { return x; } var f = function foo(x) { return x; }; var f2 = function (x) { return x; }; @@ -40,6 +54,7 @@ var C = (function () { C.prototype.foo = function (x) { return x; }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/parser509667.js b/tests/baselines/reference/parser509667.js index 0b68d0e0f59bd..cb3561ec4b308 100644 --- a/tests/baselines/reference/parser509667.js +++ b/tests/baselines/reference/parser509667.js @@ -12,6 +12,20 @@ class Foo { } //// [parser509667.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -24,5 +38,6 @@ var Foo = (function () { }; Foo.prototype.f3 = function () { }; + __names(Foo.prototype, ["f1", "f2", "f3"]); return Foo; }()); diff --git a/tests/baselines/reference/parser553699.js b/tests/baselines/reference/parser553699.js index a8a39c9bea6d6..21bdb63a2bc33 100644 --- a/tests/baselines/reference/parser553699.js +++ b/tests/baselines/reference/parser553699.js @@ -9,10 +9,25 @@ class Bar { } //// [parser553699.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.banana = function (x) { }; + __names(Foo.prototype, ["banana"]); return Foo; }()); var Bar = (function () { diff --git a/tests/baselines/reference/parser618973.js b/tests/baselines/reference/parser618973.js index bfef06b061f70..e3f1dfd1f959a 100644 --- a/tests/baselines/reference/parser618973.js +++ b/tests/baselines/reference/parser618973.js @@ -6,12 +6,27 @@ export export class Foo { //// [parser618973.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Foo = (function () { function Foo() { } Foo.prototype.Bar = function () { }; + __names(Foo.prototype, ["Bar"]); return Foo; }()); exports.Foo = Foo; diff --git a/tests/baselines/reference/parserAstSpans1.js b/tests/baselines/reference/parserAstSpans1.js index ed4943046fa88..7ef97bd74dd4b 100644 --- a/tests/baselines/reference/parserAstSpans1.js +++ b/tests/baselines/reference/parserAstSpans1.js @@ -220,6 +220,20 @@ class c6 extends c5 { } //// [parserAstSpans1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -243,6 +257,7 @@ var c1 = (function () { /** c1_nc_f1*/ c1.prototype.nc_f1 = function () { }; + __names(c1.prototype, ["i1_f1", "i1_nc_f1", "f1", "nc_f1"]); return c1; }()); var i1_i; @@ -318,6 +333,7 @@ var c2 = (function () { enumerable: true, configurable: true }); + __names(c2.prototype, ["c2_f1", "c2_nc_f1", "f1", "nc_f1"]); return c2; }()); var c3 = (function (_super) { @@ -347,6 +363,7 @@ var c3 = (function (_super) { enumerable: true, configurable: true }); + __names(c3.prototype, ["f1", "nc_f1"]); return c3; }(c2)); var c2_i = new c2(10); diff --git a/tests/baselines/reference/parserClass1.js b/tests/baselines/reference/parserClass1.js index 7fcbf29f242be..dc4e0c1d51073 100644 --- a/tests/baselines/reference/parserClass1.js +++ b/tests/baselines/reference/parserClass1.js @@ -11,6 +11,20 @@ //// [parserClass1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var NullLogger = (function () { function NullLogger() { @@ -22,6 +36,7 @@ var NullLogger = (function () { NullLogger.prototype.fatal = function () { return false; }; NullLogger.prototype.log = function (s) { }; + __names(NullLogger.prototype, ["information", "debug", "warning", "error", "fatal", "log"]); return NullLogger; }()); exports.NullLogger = NullLogger; diff --git a/tests/baselines/reference/parserClassDeclaration11.js b/tests/baselines/reference/parserClassDeclaration11.js index 5749fa24f855b..83b356419dade 100644 --- a/tests/baselines/reference/parserClassDeclaration11.js +++ b/tests/baselines/reference/parserClassDeclaration11.js @@ -5,9 +5,24 @@ class C { } //// [parserClassDeclaration11.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/parserClassDeclaration13.js b/tests/baselines/reference/parserClassDeclaration13.js index ad0ca6d502f2d..3e18333b7c843 100644 --- a/tests/baselines/reference/parserClassDeclaration13.js +++ b/tests/baselines/reference/parserClassDeclaration13.js @@ -5,9 +5,24 @@ class C { } //// [parserClassDeclaration13.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar = function () { }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/parserClassDeclaration16.js b/tests/baselines/reference/parserClassDeclaration16.js index 94ce889b9ba58..ddccb1d445f2f 100644 --- a/tests/baselines/reference/parserClassDeclaration16.js +++ b/tests/baselines/reference/parserClassDeclaration16.js @@ -5,9 +5,24 @@ class C { } //// [parserClassDeclaration16.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/parserClassDeclaration19.js b/tests/baselines/reference/parserClassDeclaration19.js index 9be5032e6986d..b6fe222c7f37f 100644 --- a/tests/baselines/reference/parserClassDeclaration19.js +++ b/tests/baselines/reference/parserClassDeclaration19.js @@ -5,9 +5,24 @@ class C { } //// [parserClassDeclaration19.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype["foo"] = function () { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/parserClassDeclaration20.js b/tests/baselines/reference/parserClassDeclaration20.js index 56dc7c2ce9df9..23cbff954ec6a 100644 --- a/tests/baselines/reference/parserClassDeclaration20.js +++ b/tests/baselines/reference/parserClassDeclaration20.js @@ -5,9 +5,24 @@ class C { } //// [parserClassDeclaration20.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype["0"] = function () { }; + __names(C.prototype, ["0"]); return C; }()); diff --git a/tests/baselines/reference/parserClassDeclaration21.js b/tests/baselines/reference/parserClassDeclaration21.js index c28d25963c282..61c4d25dbcf53 100644 --- a/tests/baselines/reference/parserClassDeclaration21.js +++ b/tests/baselines/reference/parserClassDeclaration21.js @@ -5,9 +5,24 @@ class C { } //// [parserClassDeclaration21.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype[1] = function () { }; + __names(C.prototype, [1]); return C; }()); diff --git a/tests/baselines/reference/parserClassDeclaration22.js b/tests/baselines/reference/parserClassDeclaration22.js index 2b979579ddac0..2703e882479a0 100644 --- a/tests/baselines/reference/parserClassDeclaration22.js +++ b/tests/baselines/reference/parserClassDeclaration22.js @@ -5,9 +5,24 @@ class C { } //// [parserClassDeclaration22.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype["bar"] = function () { }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3.js b/tests/baselines/reference/parserES5ComputedPropertyName3.js index 1fdb5ced65dcd..2d2867cee5dff 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName3.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName3.js @@ -2,5 +2,19 @@ var v = { [e]() { } }; //// [parserES5ComputedPropertyName3.js] -var v = (_a = {}, _a[e] = function () { }, _a); -var _a; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); +var v = (_a = {}, _a[_b = e] = function () { }, __names(_a, [_b]), _a); +var _a, _b; diff --git a/tests/baselines/reference/parserES5SymbolProperty7.js b/tests/baselines/reference/parserES5SymbolProperty7.js index 4965f7867c310..f147c0a03aa01 100644 --- a/tests/baselines/reference/parserES5SymbolProperty7.js +++ b/tests/baselines/reference/parserES5SymbolProperty7.js @@ -4,9 +4,25 @@ class C { } //// [parserES5SymbolProperty7.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } - C.prototype[Symbol.toStringTag] = function () { }; + C.prototype[_a = Symbol.toStringTag] = function () { }; + __names(C.prototype, [_a]); return C; + var _a; }()); diff --git a/tests/baselines/reference/parserErrantSemicolonInClass1.js b/tests/baselines/reference/parserErrantSemicolonInClass1.js index 7dbe9f579d289..e294b308a30c7 100644 --- a/tests/baselines/reference/parserErrantSemicolonInClass1.js +++ b/tests/baselines/reference/parserErrantSemicolonInClass1.js @@ -36,6 +36,20 @@ class a { //// [parserErrantSemicolonInClass1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var a = (function () { function a(ns) { } @@ -69,5 +83,6 @@ var a = (function () { a.prototype.foo = function (ns) { return ns.toString(); }; + __names(a.prototype, ["pgF", "foo"]); return a; }()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement1.js b/tests/baselines/reference/parserErrorRecoveryIfStatement1.js index 03e3de32cc175..1aada6507a708 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement1.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement1.js @@ -10,6 +10,20 @@ class Foo { } //// [parserErrorRecoveryIfStatement1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -21,5 +35,6 @@ var Foo = (function () { }; Foo.prototype.f3 = function () { }; + __names(Foo.prototype, ["f1", "f2", "f3"]); return Foo; }()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement2.js b/tests/baselines/reference/parserErrorRecoveryIfStatement2.js index 84daa435711b0..c5da613c2796b 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement2.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement2.js @@ -10,6 +10,20 @@ class Foo { } //// [parserErrorRecoveryIfStatement2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -21,5 +35,6 @@ var Foo = (function () { }; Foo.prototype.f3 = function () { }; + __names(Foo.prototype, ["f1", "f2", "f3"]); return Foo; }()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement3.js b/tests/baselines/reference/parserErrorRecoveryIfStatement3.js index b58c0ccd524ef..01144e18c9f6b 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement3.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement3.js @@ -10,6 +10,20 @@ class Foo { } //// [parserErrorRecoveryIfStatement3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -21,5 +35,6 @@ var Foo = (function () { }; Foo.prototype.f3 = function () { }; + __names(Foo.prototype, ["f1", "f2", "f3"]); return Foo; }()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement4.js b/tests/baselines/reference/parserErrorRecoveryIfStatement4.js index 3d5e6af1fe6aa..2a9310214d856 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement4.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement4.js @@ -10,6 +10,20 @@ class Foo { } //// [parserErrorRecoveryIfStatement4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -21,5 +35,6 @@ var Foo = (function () { }; Foo.prototype.f3 = function () { }; + __names(Foo.prototype, ["f1", "f2", "f3"]); return Foo; }()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement5.js b/tests/baselines/reference/parserErrorRecoveryIfStatement5.js index b3a4f897aa7ff..1239d992a34ac 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement5.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement5.js @@ -10,6 +10,20 @@ class Foo { } //// [parserErrorRecoveryIfStatement5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -23,5 +37,6 @@ var Foo = (function () { { } }; + __names(Foo.prototype, ["f1"]); return Foo; }()); diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement6.js b/tests/baselines/reference/parserErrorRecoveryIfStatement6.js index 86454bed4f2f2..97888b6a84183 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement6.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement6.js @@ -11,6 +11,20 @@ class Foo { //// [parserErrorRecoveryIfStatement6.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } @@ -22,5 +36,6 @@ var Foo = (function () { }; Foo.prototype.f3 = function () { }; + __names(Foo.prototype, ["f1", "f2", "f3"]); return Foo; }()); diff --git a/tests/baselines/reference/parserErrorRecovery_Block3.js b/tests/baselines/reference/parserErrorRecovery_Block3.js index 842533c680143..a4e068f1192f2 100644 --- a/tests/baselines/reference/parserErrorRecovery_Block3.js +++ b/tests/baselines/reference/parserErrorRecovery_Block3.js @@ -7,6 +7,20 @@ class C { } //// [parserErrorRecovery_Block3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -14,5 +28,6 @@ var C = (function () { }; C.prototype.b = function () { }; + __names(C.prototype, ["a", "b"]); return C; }()); diff --git a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js index 9bb4395e55655..faecf0f05a207 100644 --- a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js +++ b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js @@ -29,6 +29,20 @@ var dist = p.getDist(); //// [parserErrorRecovery_IncompleteMemberVariable1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Module var Shapes; (function (Shapes) { @@ -41,6 +55,7 @@ var Shapes; } // Instance member Point.prototype.getDist = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; + __names(Point.prototype, ["getDist"]); // Static member Point.origin = new Point(0, 0); return Point; diff --git a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js index 0ee73b8b1e5bf..1ba61fb18222e 100644 --- a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js +++ b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js @@ -29,6 +29,20 @@ var dist = p.getDist(); //// [parserErrorRecovery_IncompleteMemberVariable2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Module var Shapes; (function (Shapes) { @@ -42,6 +56,7 @@ var Shapes; } // Instance member Point.prototype.getDist = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; + __names(Point.prototype, ["getDist"]); // Static member Point.origin = new Point(0, 0); return Point; diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration1.js b/tests/baselines/reference/parserMemberFunctionDeclaration1.js index 21a4793b19084..afd699cd0c4f9 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration1.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration1.js @@ -4,9 +4,24 @@ class C { } //// [parserMemberFunctionDeclaration1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.Foo = function () { }; + __names(C.prototype, ["Foo"]); return C; }()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration4.js b/tests/baselines/reference/parserMemberFunctionDeclaration4.js index 8911fe60c1ffb..f2acf1018bc03 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration4.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration4.js @@ -4,9 +4,24 @@ class C { } //// [parserMemberFunctionDeclaration4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.Foo = function () { }; + __names(C.prototype, ["Foo"]); return C; }()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration5.js b/tests/baselines/reference/parserMemberFunctionDeclaration5.js index 8d060cb7cc9c5..e018e44ad7724 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration5.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration5.js @@ -4,9 +4,24 @@ class C { } //// [parserMemberFunctionDeclaration5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.Foo = function () { }; + __names(C.prototype, ["Foo"]); return C; }()); diff --git a/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js b/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js index f84123762107f..424bd93e70483 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js +++ b/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js @@ -14,6 +14,20 @@ class C { } //// [parserMemberFunctionDeclarationAmbiguities1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -25,5 +39,6 @@ var C = (function () { C.static = function () { }; C.public = function () { }; C.static = function () { }; + __names(C.prototype, ["public", "static", "public", "static"]); return C; }()); diff --git a/tests/baselines/reference/parserMissingLambdaOpenBrace1.js b/tests/baselines/reference/parserMissingLambdaOpenBrace1.js index 36b3d92fcd787..36c2e80b9f9da 100644 --- a/tests/baselines/reference/parserMissingLambdaOpenBrace1.js +++ b/tests/baselines/reference/parserMissingLambdaOpenBrace1.js @@ -9,6 +9,20 @@ class C { } //// [parserMissingLambdaOpenBrace1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -19,5 +33,6 @@ var C = (function () { return _this.doWhile(function (item, i) { return filter(item, i) ? test(item, index++) : true; }); }); }; + __names(C.prototype, ["where"]); return C; }()); diff --git a/tests/baselines/reference/parserParameterList1.js b/tests/baselines/reference/parserParameterList1.js index 01ef6a149dcd6..015e0a4d2c20a 100644 --- a/tests/baselines/reference/parserParameterList1.js +++ b/tests/baselines/reference/parserParameterList1.js @@ -4,9 +4,24 @@ class C { } //// [parserParameterList1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.F = function (B) { }; + __names(C.prototype, ["F"]); return C; }()); diff --git a/tests/baselines/reference/parserParameterList10.js b/tests/baselines/reference/parserParameterList10.js index f899901728c20..a44f1fa5e32d5 100644 --- a/tests/baselines/reference/parserParameterList10.js +++ b/tests/baselines/reference/parserParameterList10.js @@ -4,6 +4,20 @@ class C { } //// [parserParameterList10.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -13,5 +27,6 @@ var C = (function () { bar[_i] = arguments[_i]; } }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/parserParameterList16.js b/tests/baselines/reference/parserParameterList16.js index 9565cba53c1ca..c4e156c17fa7f 100644 --- a/tests/baselines/reference/parserParameterList16.js +++ b/tests/baselines/reference/parserParameterList16.js @@ -5,9 +5,24 @@ class C { } //// [parserParameterList16.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function (a, b) { }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/parserParameterList2.js b/tests/baselines/reference/parserParameterList2.js index 8fcddb532dca8..73351eac79eb1 100644 --- a/tests/baselines/reference/parserParameterList2.js +++ b/tests/baselines/reference/parserParameterList2.js @@ -4,11 +4,26 @@ class C { } //// [parserParameterList2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.F = function (A) { if (A === void 0) { A = 0; } }; + __names(C.prototype, ["F"]); return C; }()); diff --git a/tests/baselines/reference/parserParameterList3.js b/tests/baselines/reference/parserParameterList3.js index d2cf7c5c9f519..0ac53eeffefbe 100644 --- a/tests/baselines/reference/parserParameterList3.js +++ b/tests/baselines/reference/parserParameterList3.js @@ -4,9 +4,24 @@ class C { } //// [parserParameterList3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.F = function (A, B) { }; + __names(C.prototype, ["F"]); return C; }()); diff --git a/tests/baselines/reference/parserParameterList9.js b/tests/baselines/reference/parserParameterList9.js index 3ccc1d0202569..8e1e92f8ce816 100644 --- a/tests/baselines/reference/parserParameterList9.js +++ b/tests/baselines/reference/parserParameterList9.js @@ -4,6 +4,20 @@ class C { } //// [parserParameterList9.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -13,5 +27,6 @@ var C = (function () { bar[_i] = arguments[_i]; } }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/parserRealSource1.js b/tests/baselines/reference/parserRealSource1.js index e41cb2a4b3f17..3bd1e926839f9 100644 --- a/tests/baselines/reference/parserRealSource1.js +++ b/tests/baselines/reference/parserRealSource1.js @@ -157,6 +157,20 @@ module TypeScript { //// [parserRealSource1.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -196,6 +210,7 @@ var TypeScript; NullLogger.prototype.fatal = function () { return false; }; NullLogger.prototype.log = function (s) { }; + __names(NullLogger.prototype, ["information", "debug", "warning", "error", "fatal", "log"]); return NullLogger; }()); TypeScript.NullLogger = NullLogger; @@ -216,6 +231,7 @@ var TypeScript; LoggerAdapter.prototype.log = function (s) { this.logger.log(s); }; + __names(LoggerAdapter.prototype, ["information", "debug", "warning", "error", "fatal", "log"]); return LoggerAdapter; }()); TypeScript.LoggerAdapter = LoggerAdapter; @@ -231,6 +247,7 @@ var TypeScript; BufferedLogger.prototype.log = function (s) { this.logContents.push(s); }; + __names(BufferedLogger.prototype, ["information", "debug", "warning", "error", "fatal", "log"]); return BufferedLogger; }()); TypeScript.BufferedLogger = BufferedLogger; diff --git a/tests/baselines/reference/parserRealSource10.js b/tests/baselines/reference/parserRealSource10.js index 0d42dc5f47b72..c7c4fd5effab4 100644 --- a/tests/baselines/reference/parserRealSource10.js +++ b/tests/baselines/reference/parserRealSource10.js @@ -458,6 +458,20 @@ module TypeScript { //// [parserRealSource10.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -825,6 +839,7 @@ var TypeScript; } return TokenClass.Punctuation; }; + __names(Token.prototype, ["toString", "print", "getText", "classification"]); return Token; }()); TypeScript.Token = Token; @@ -842,6 +857,7 @@ var TypeScript; NumberLiteralToken.prototype.classification = function () { return TokenClass.Literal; }; + __names(NumberLiteralToken.prototype, ["getText", "classification"]); return NumberLiteralToken; }(Token)); TypeScript.NumberLiteralToken = NumberLiteralToken; @@ -858,6 +874,7 @@ var TypeScript; StringLiteralToken.prototype.classification = function () { return TokenClass.Literal; }; + __names(StringLiteralToken.prototype, ["getText", "classification"]); return StringLiteralToken; }(Token)); TypeScript.StringLiteralToken = StringLiteralToken; @@ -875,6 +892,7 @@ var TypeScript; IdentifierToken.prototype.classification = function () { return TokenClass.Identifier; }; + __names(IdentifierToken.prototype, ["getText", "classification"]); return IdentifierToken; }(Token)); TypeScript.IdentifierToken = IdentifierToken; @@ -891,6 +909,7 @@ var TypeScript; WhitespaceToken.prototype.classification = function () { return TokenClass.Whitespace; }; + __names(WhitespaceToken.prototype, ["getText", "classification"]); return WhitespaceToken; }(Token)); TypeScript.WhitespaceToken = WhitespaceToken; @@ -911,6 +930,7 @@ var TypeScript; CommentToken.prototype.classification = function () { return TokenClass.Comment; }; + __names(CommentToken.prototype, ["getText", "classification"]); return CommentToken; }(Token)); TypeScript.CommentToken = CommentToken; @@ -927,6 +947,7 @@ var TypeScript; RegularExpressionLiteralToken.prototype.classification = function () { return TokenClass.Literal; }; + __names(RegularExpressionLiteralToken.prototype, ["getText", "classification"]); return RegularExpressionLiteralToken; }(Token)); TypeScript.RegularExpressionLiteralToken = RegularExpressionLiteralToken; diff --git a/tests/baselines/reference/parserRealSource11.js b/tests/baselines/reference/parserRealSource11.js index 0d942cb1c68d4..f0afc72c13562 100644 --- a/tests/baselines/reference/parserRealSource11.js +++ b/tests/baselines/reference/parserRealSource11.js @@ -2377,6 +2377,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -2542,6 +2556,7 @@ var TypeScript; resolved += name.substring(start); return resolved; }; + __names(AST.prototype, ["isExpression", "isStatementOrExpression", "isCompoundStatement", "isLeaf", "typeCheck", "emit", "print", "printLabel", "addToControlFlow", "netFreeUses", "treeViewLabel"]); return AST; }(ASTSpan)); TypeScript.AST = AST; @@ -2609,6 +2624,7 @@ var TypeScript; typeFlow.nestingLevel--; return this; }; + __names(ASTList.prototype, ["addToControlFlow", "append", "appendAll", "emit", "typeCheck"]); return ASTList; }(AST)); TypeScript.ASTList = ASTList; @@ -2666,6 +2682,7 @@ var TypeScript; Identifier.fromToken = function (token) { return new Identifier(token.getText(), token.hasEscapeSequence); }; + __names(Identifier.prototype, ["setText", "isMissing", "isLeaf", "treeViewLabel", "printLabel", "typeCheck", "emit"]); return Identifier; }(AST)); TypeScript.Identifier = Identifier; @@ -2680,6 +2697,7 @@ var TypeScript; MissingIdentifier.prototype.emit = function (emitter, tokenId, startLine) { // Emit nothing for a missing ID }; + __names(MissingIdentifier.prototype, ["isMissing", "emit"]); return MissingIdentifier; }(Identifier)); TypeScript.MissingIdentifier = MissingIdentifier; @@ -2705,6 +2723,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(Label.prototype, ["printLabel", "typeCheck", "emit"]); return Label; }(AST)); TypeScript.Label = Label; @@ -2715,6 +2734,7 @@ var TypeScript; } Expression.prototype.isExpression = function () { return true; }; Expression.prototype.isStatementOrExpression = function () { return true; }; + __names(Expression.prototype, ["isExpression", "isStatementOrExpression"]); return Expression; }(AST)); TypeScript.Expression = Expression; @@ -2860,6 +2880,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(UnaryExpression.prototype, ["addToControlFlow", "typeCheck", "emit"]); return UnaryExpression; }(Expression)); TypeScript.UnaryExpression = UnaryExpression; @@ -2893,6 +2914,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(CallExpression.prototype, ["typeCheck", "emit"]); return CallExpression; }(Expression)); TypeScript.CallExpression = CallExpression; @@ -3046,6 +3068,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(BinaryExpression.prototype, ["typeCheck", "emit"]); return BinaryExpression; }(Expression)); TypeScript.BinaryExpression = BinaryExpression; @@ -3072,6 +3095,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(ConditionalExpression.prototype, ["typeCheck", "emit"]); return ConditionalExpression; }(Expression)); TypeScript.ConditionalExpression = ConditionalExpression; @@ -3114,6 +3138,7 @@ var TypeScript; return this.value.toString(); } }; + __names(NumberLiteral.prototype, ["typeCheck", "treeViewLabel", "emit", "printLabel"]); return NumberLiteral; }(Expression)); TypeScript.NumberLiteral = NumberLiteral; @@ -3135,6 +3160,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(RegexLiteral.prototype, ["typeCheck", "emit"]); return RegexLiteral; }(Expression)); TypeScript.RegexLiteral = RegexLiteral; @@ -3162,6 +3188,7 @@ var TypeScript; StringLiteral.prototype.printLabel = function () { return this.text; }; + __names(StringLiteral.prototype, ["emit", "typeCheck", "treeViewLabel", "printLabel"]); return StringLiteral; }(Expression)); TypeScript.StringLiteral = StringLiteral; @@ -3230,6 +3257,7 @@ var TypeScript; return firstMod.actualText; } }; + __names(ImportDeclaration.prototype, ["isStatementOrExpression", "emit", "typeCheck", "getAliasName", "firstAliasedModToString"]); return ImportDeclaration; }(ModuleElement)); TypeScript.ImportDeclaration = ImportDeclaration; @@ -3255,6 +3283,7 @@ var TypeScript; BoundDecl.prototype.printLabel = function () { return this.treeViewLabel(); }; + __names(BoundDecl.prototype, ["isStatementOrExpression", "isPrivate", "isPublic", "isProperty", "typeCheck", "printLabel"]); return BoundDecl; }(AST)); TypeScript.BoundDecl = BoundDecl; @@ -3272,6 +3301,7 @@ var TypeScript; VarDecl.prototype.treeViewLabel = function () { return "var " + this.id.actualText; }; + __names(VarDecl.prototype, ["isAmbient", "isExported", "isStatic", "emit", "treeViewLabel"]); return VarDecl; }(BoundDecl)); TypeScript.VarDecl = VarDecl; @@ -3294,6 +3324,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(ArgDecl.prototype, ["isOptionalArg", "treeViewLabel", "emit"]); return ArgDecl; }(BoundDecl)); TypeScript.ArgDecl = ArgDecl; @@ -3426,6 +3457,7 @@ var TypeScript; }; FuncDecl.prototype.isSignature = function () { return (this.fncFlags & FncFlags.Signature) != FncFlags.None; }; FuncDecl.prototype.hasStaticDeclarations = function () { return (!this.isConstructor && (this.statics.members.length > 0 || this.innerStaticFuncs.length > 0)); }; + __names(FuncDecl.prototype, ["internalName", "hasSelfReference", "setHasSelfReference", "addCloRef", "addJumpRef", "buildControlFlow", "typeCheck", "emit", "getNameText", "isMethod", "isCallMember", "isConstructMember", "isIndexerMember", "isSpecialFn", "isAnonymousFn", "isAccessor", "isGetAccessor", "isSetAccessor", "isAmbient", "isExported", "isPrivate", "isPublic", "isStatic", "treeViewLabel", "ClearFlags", "isSignature", "hasStaticDeclarations"]); return FuncDecl; }(AST)); TypeScript.FuncDecl = FuncDecl; @@ -3506,6 +3538,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); } }; + __names(Script.prototype, ["typeCheck", "treeViewLabel", "emitRequired", "emit"]); return Script; }(FuncDecl)); TypeScript.Script = Script; @@ -3555,6 +3588,7 @@ var TypeScript; emitter.emitParensAndCommentsInPlace(this, false); } }; + __names(ModuleDeclaration.prototype, ["isExported", "isAmbient", "isEnum", "recordNonInterface", "typeCheck", "emit"]); return ModuleDeclaration; }(NamedDeclaration)); TypeScript.ModuleDeclaration = ModuleDeclaration; @@ -3573,6 +3607,7 @@ var TypeScript; TypeDeclaration.prototype.isAmbient = function () { return hasFlag(this.varFlags, VarFlags.Ambient); }; + __names(TypeDeclaration.prototype, ["isExported", "isAmbient"]); return TypeDeclaration; }(NamedDeclaration)); TypeScript.TypeDeclaration = TypeDeclaration; @@ -3592,6 +3627,7 @@ var TypeScript; ClassDeclaration.prototype.emit = function (emitter, tokenId, startLine) { emitter.emitJavascriptClass(this); }; + __names(ClassDeclaration.prototype, ["typeCheck", "emit"]); return ClassDeclaration; }(TypeDeclaration)); TypeScript.ClassDeclaration = ClassDeclaration; @@ -3605,6 +3641,7 @@ var TypeScript; }; InterfaceDeclaration.prototype.emit = function (emitter, tokenId, startLine) { }; + __names(InterfaceDeclaration.prototype, ["typeCheck", "emit"]); return InterfaceDeclaration; }(TypeDeclaration)); TypeScript.InterfaceDeclaration = InterfaceDeclaration; @@ -3622,6 +3659,7 @@ var TypeScript; this.type = typeFlow.voidType; return this; }; + __names(Statement.prototype, ["isLoop", "isStatementOrExpression", "isCompoundStatement", "typeCheck"]); return Statement; }(ModuleElement)); TypeScript.Statement = Statement; @@ -3657,6 +3695,7 @@ var TypeScript; context.current = bb; beforeBB.addSuccessor(bb); }; + __names(LabeledStatement.prototype, ["emit", "typeCheck", "addToControlFlow"]); return LabeledStatement; }(Statement)); TypeScript.LabeledStatement = LabeledStatement; @@ -3713,6 +3752,7 @@ var TypeScript; typeFlow.typeCheck(this.statements); return this; }; + __names(Block.prototype, ["emit", "addToControlFlow", "typeCheck"]); return Block; }(Statement)); TypeScript.Block = Block; @@ -3765,6 +3805,7 @@ var TypeScript; emitter.writeToOutput(";"); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(Jump.prototype, ["hasExplicitTarget", "setResolvedTarget", "addToControlFlow", "emit"]); return Jump; }(Statement)); TypeScript.Jump = Jump; @@ -3818,6 +3859,7 @@ var TypeScript; context.noContinuation = false; context.walker.options.goChildren = false; }; + __names(WhileStatement.prototype, ["isLoop", "emit", "typeCheck", "addToControlFlow"]); return WhileStatement; }(Statement)); TypeScript.WhileStatement = WhileStatement; @@ -3875,6 +3917,7 @@ var TypeScript; } context.walker.options.goChildren = false; }; + __names(DoWhileStatement.prototype, ["isLoop", "emit", "typeCheck", "addToControlFlow"]); return DoWhileStatement; }(Statement)); TypeScript.DoWhileStatement = DoWhileStatement; @@ -3954,6 +3997,7 @@ var TypeScript; } context.walker.options.goChildren = false; }; + __names(IfStatement.prototype, ["isCompoundStatement", "emit", "typeCheck", "addToControlFlow"]); return IfStatement; }(Statement)); TypeScript.IfStatement = IfStatement; @@ -3986,6 +4030,7 @@ var TypeScript; ReturnStatement.prototype.typeCheck = function (typeFlow) { return typeFlow.typeCheckReturn(this); }; + __names(ReturnStatement.prototype, ["emit", "addToControlFlow", "typeCheck"]); return ReturnStatement; }(Statement)); TypeScript.ReturnStatement = ReturnStatement; @@ -4110,6 +4155,7 @@ var TypeScript; loopHeader.addSuccessor(afterLoop); context.walker.options.goChildren = false; }; + __names(ForInStatement.prototype, ["isLoop", "isFiltered", "emit", "typeCheck", "addToControlFlow"]); return ForInStatement; }(Statement)); TypeScript.ForInStatement = ForInStatement; @@ -4202,6 +4248,7 @@ var TypeScript; } context.walker.options.goChildren = false; }; + __names(ForStatement.prototype, ["isLoop", "emit", "typeCheck", "addToControlFlow"]); return ForStatement; }(Statement)); TypeScript.ForStatement = ForStatement; @@ -4229,6 +4276,7 @@ var TypeScript; WithStatement.prototype.typeCheck = function (typeFlow) { return typeFlow.typeCheckWith(this); }; + __names(WithStatement.prototype, ["isCompoundStatement", "emit", "typeCheck"]); return WithStatement; }(Statement)); TypeScript.WithStatement = WithStatement; @@ -4302,6 +4350,7 @@ var TypeScript; } context.walker.options.goChildren = false; }; + __names(SwitchStatement.prototype, ["isCompoundStatement", "emit", "typeCheck", "addToControlFlow"]); return SwitchStatement; }(Statement)); TypeScript.SwitchStatement = SwitchStatement; @@ -4356,6 +4405,7 @@ var TypeScript; context.noContinuation = false; context.walker.options.goChildren = false; }; + __names(CaseStatement.prototype, ["emit", "typeCheck", "addToControlFlow"]); return CaseStatement; }(Statement)); TypeScript.CaseStatement = CaseStatement; @@ -4387,6 +4437,7 @@ var TypeScript; typeFlow.inTypeRefTypeCheck = prevInTCTR; return this; }; + __names(TypeReference.prototype, ["emit", "typeCheck"]); return TypeReference; }(AST)); TypeScript.TypeReference = TypeReference; @@ -4433,6 +4484,7 @@ var TypeScript; context.popStatement(); context.walker.options.goChildren = false; }; + __names(TryFinally.prototype, ["isCompoundStatement", "emit", "typeCheck", "addToControlFlow"]); return TryFinally; }(Statement)); TypeScript.TryFinally = TryFinally; @@ -4484,6 +4536,7 @@ var TypeScript; this.type = typeFlow.voidType; return this; }; + __names(TryCatch.prototype, ["isCompoundStatement", "emit", "addToControlFlow", "typeCheck"]); return TryCatch; }(Statement)); TypeScript.TryCatch = TryCatch; @@ -4513,6 +4566,7 @@ var TypeScript; context.walker.options.goChildren = false; context.noContinuation = false; }; + __names(Try.prototype, ["emit", "typeCheck", "addToControlFlow"]); return Try; }(Statement)); TypeScript.Try = Try; @@ -4587,6 +4641,7 @@ var TypeScript; typeFlow.scope = prevScope; return this; }; + __names(Catch.prototype, ["emit", "addToControlFlow", "typeCheck"]); return Catch; }(Statement)); TypeScript.Catch = Catch; @@ -4616,6 +4671,7 @@ var TypeScript; this.body = typeFlow.typeCheck(this.body); return this; }; + __names(Finally.prototype, ["emit", "addToControlFlow", "typeCheck"]); return Finally; }(Statement)); TypeScript.Finally = Finally; @@ -4643,6 +4699,7 @@ var TypeScript; } return this.text; }; + __names(Comment.prototype, ["getText"]); return Comment; }(AST)); TypeScript.Comment = Comment; @@ -4658,6 +4715,7 @@ var TypeScript; emitter.recordSourceMappingEnd(this); emitter.emitParensAndCommentsInPlace(this, false); }; + __names(DebuggerStatement.prototype, ["emit"]); return DebuggerStatement; }(Statement)); TypeScript.DebuggerStatement = DebuggerStatement; diff --git a/tests/baselines/reference/parserRealSource12.js b/tests/baselines/reference/parserRealSource12.js index fccb1fa45e087..de2f0bcc4a32d 100644 --- a/tests/baselines/reference/parserRealSource12.js +++ b/tests/baselines/reference/parserRealSource12.js @@ -533,6 +533,20 @@ module TypeScript { //// [parserRealSource12.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -547,6 +561,7 @@ var TypeScript; this.goChildren = !stop; this.goNextSibling = !stop; }; + __names(AstWalkOptions.prototype, ["stopWalk"]); return AstWalkOptions; }()); TypeScript.AstWalkOptions = AstWalkOptions; @@ -585,6 +600,7 @@ var TypeScript; return preAst; } }; + __names(AstWalker.prototype, ["walk"]); return AstWalker; }()); var AstWalkerFactory = (function () { @@ -719,6 +735,7 @@ var TypeScript; } } }; + __names(AstWalkerFactory.prototype, ["walk", "getWalker", "getSlowWalker", "initChildrenWalkers"]); return AstWalkerFactory; }()); TypeScript.AstWalkerFactory = AstWalkerFactory; diff --git a/tests/baselines/reference/parserRealSource14.js b/tests/baselines/reference/parserRealSource14.js index 635d122db04eb..86786c8f67825 100644 --- a/tests/baselines/reference/parserRealSource14.js +++ b/tests/baselines/reference/parserRealSource14.js @@ -578,6 +578,20 @@ module TypeScript { //// [parserRealSource14.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -939,6 +953,7 @@ var TypeScript; this.asts[this.top - 0].nodeType === TypeScript.NodeType.Block && this.asts[this.top - 0].isStatementBlock === false; }; + __names(AstPath.prototype, ["clone", "pop", "push", "up", "down", "nodeType", "ast", "parent", "count", "get", "isNameOfClass", "isNameOfInterface", "isNameOfArgument", "isNameOfVariable", "isNameOfModule", "isNameOfFunction", "isChildOfScript", "isChildOfModule", "isChildOfClass", "isArgumentOfClassConstructor", "isChildOfInterface", "isTopLevelImplicitModule", "isBodyOfTopLevelImplicitModule", "isBodyOfScript", "isBodyOfSwitch", "isBodyOfModule", "isBodyOfClass", "isBodyOfFunction", "isBodyOfInterface", "isBodyOfBlock", "isBodyOfFor", "isBodyOfCase", "isBodyOfTry", "isBodyOfCatch", "isBodyOfDoWhile", "isBodyOfWhile", "isBodyOfForIn", "isBodyOfWith", "isBodyOfFinally", "isCaseOfSwitch", "isDefaultCaseOfSwitch", "isListOfObjectLit", "isBodyOfObjectLit", "isEmptyListOfObjectLit", "isMemberOfObjectLit", "isNameOfMemberOfObjectLit", "isListOfArrayLit", "isTargetOfMember", "isMemberOfMember", "isItemOfList", "isThenOfIf", "isElseOfIf", "isBodyOfDefaultCase", "isSingleStatementList", "isArgumentListOfFunction", "isArgumentOfFunction", "isArgumentListOfCall", "isArgumentListOfNew", "isSynthesizedBlock"]); return AstPath; }()); TypeScript.AstPath = AstPath; diff --git a/tests/baselines/reference/parserRealSource4.js b/tests/baselines/reference/parserRealSource4.js index 39d17fb6ef4f3..1b2f8eb5fa1f6 100644 --- a/tests/baselines/reference/parserRealSource4.js +++ b/tests/baselines/reference/parserRealSource4.js @@ -298,6 +298,20 @@ module TypeScript { //// [parserRealSource4.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -387,6 +401,7 @@ var TypeScript; return (null); } }; + __names(StringHashTable.prototype, ["getAllKeys", "add", "addOrUpdate", "map", "every", "some", "count", "lookup"]); return StringHashTable; }()); TypeScript.StringHashTable = StringHashTable; @@ -440,6 +455,7 @@ var TypeScript; return this.secondaryTable.lookup(key); } }; + __names(DualStringHashTable.prototype, ["getAllKeys", "add", "addOrUpdate", "map", "every", "some", "count", "lookup"]); return DualStringHashTable; }()); TypeScript.DualStringHashTable = DualStringHashTable; @@ -525,6 +541,7 @@ var TypeScript; } return (null); }; + __names(HashTable.prototype, ["add", "remove", "count", "lookup"]); return HashTable; }()); TypeScript.HashTable = HashTable; @@ -558,6 +575,7 @@ var TypeScript; this.values[this.values.length] = data; return true; }; + __names(SimpleHashTable.prototype, ["lookup", "add"]); return SimpleHashTable; }()); TypeScript.SimpleHashTable = SimpleHashTable; diff --git a/tests/baselines/reference/parserRealSource5.js b/tests/baselines/reference/parserRealSource5.js index 4f4db59746e34..a08f8ccb73b31 100644 --- a/tests/baselines/reference/parserRealSource5.js +++ b/tests/baselines/reference/parserRealSource5.js @@ -69,6 +69,20 @@ module TypeScript { //// [parserRealSource5.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -110,6 +124,7 @@ var TypeScript; this.outfile.WriteLine(this.builder); this.builder = ""; }; + __names(PrintContext.prototype, ["increaseIndent", "decreaseIndent", "startLine", "write", "writeLine"]); return PrintContext; }()); TypeScript.PrintContext = PrintContext; diff --git a/tests/baselines/reference/parserRealSource6.js b/tests/baselines/reference/parserRealSource6.js index c7dcc5e497bfa..cce9fd32aa4ac 100644 --- a/tests/baselines/reference/parserRealSource6.js +++ b/tests/baselines/reference/parserRealSource6.js @@ -224,6 +224,20 @@ module TypeScript { //// [parserRealSource6.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -292,6 +306,7 @@ var TypeScript; } return this.scriptFragment; }; + __names(EnclosingScopeContext.prototype, ["getScope", "getObjectLiteralScope", "getScopeAST", "getScopePosition", "getScriptFragmentStartAST", "getScriptFragmentPosition", "getScriptFragment"]); return EnclosingScopeContext; }()); TypeScript.EnclosingScopeContext = EnclosingScopeContext; diff --git a/tests/baselines/reference/parserRealSource8.js b/tests/baselines/reference/parserRealSource8.js index d23297954bec9..b813855eeb779 100644 --- a/tests/baselines/reference/parserRealSource8.js +++ b/tests/baselines/reference/parserRealSource8.js @@ -469,6 +469,20 @@ module TypeScript { //// [parserRealSource8.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -524,6 +538,7 @@ var TypeScript; return false; } }; + __names(ScopeSearchFilter.prototype, ["reset", "update"]); return ScopeSearchFilter; }()); TypeScript.ScopeSearchFilter = ScopeSearchFilter; diff --git a/tests/baselines/reference/parserRealSource9.js b/tests/baselines/reference/parserRealSource9.js index e278f88c8e9fe..7619c17c4bc13 100644 --- a/tests/baselines/reference/parserRealSource9.js +++ b/tests/baselines/reference/parserRealSource9.js @@ -212,6 +212,20 @@ module TypeScript { //// [parserRealSource9.js] // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0. // See LICENSE.txt in the project root for complete license information. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var TypeScript; (function (TypeScript) { @@ -395,6 +409,7 @@ var TypeScript; binder.bindSymbol(scope, sym); }, this); }; + __names(Binder.prototype, ["resolveBaseTypeLinks", "resolveBases", "resolveSignatureGroup", "bindType", "bindSymbol", "bind"]); return Binder; }()); TypeScript.Binder = Binder; diff --git a/tests/baselines/reference/parserSuperExpression1.js b/tests/baselines/reference/parserSuperExpression1.js index 02bd49653fe6e..74bfa264c55fa 100644 --- a/tests/baselines/reference/parserSuperExpression1.js +++ b/tests/baselines/reference/parserSuperExpression1.js @@ -14,12 +14,27 @@ module M1.M2 { } //// [parserSuperExpression1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { _super.prototype.foo.call(this); }; + __names(C.prototype, ["foo"]); return C; }()); var M1; @@ -32,6 +47,7 @@ var M1; C.prototype.foo = function () { _super.prototype.foo.call(this); }; + __names(C.prototype, ["foo"]); return C; }()); })(M2 = M1.M2 || (M1.M2 = {})); diff --git a/tests/baselines/reference/parserSuperExpression2.js b/tests/baselines/reference/parserSuperExpression2.js index ebd43ad318033..5b3349e98c77f 100644 --- a/tests/baselines/reference/parserSuperExpression2.js +++ b/tests/baselines/reference/parserSuperExpression2.js @@ -6,11 +6,26 @@ class C { } //// [parserSuperExpression2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.M = function () { _super.prototype..call(this, 0); }; + __names(C.prototype, ["M"]); return C; }()); diff --git a/tests/baselines/reference/parserSuperExpression3.js b/tests/baselines/reference/parserSuperExpression3.js index 064353669c80c..e994dc9be0655 100644 --- a/tests/baselines/reference/parserSuperExpression3.js +++ b/tests/baselines/reference/parserSuperExpression3.js @@ -6,11 +6,26 @@ class C { } //// [parserSuperExpression3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.M = function () { this["super"](0); }; + __names(C.prototype, ["M"]); return C; }()); diff --git a/tests/baselines/reference/parserSuperExpression4.js b/tests/baselines/reference/parserSuperExpression4.js index 97f6ad26c4b63..5ecfd475faa51 100644 --- a/tests/baselines/reference/parserSuperExpression4.js +++ b/tests/baselines/reference/parserSuperExpression4.js @@ -14,12 +14,27 @@ module M1.M2 { } //// [parserSuperExpression4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { _super.prototype.foo = 1; }; + __names(C.prototype, ["foo"]); return C; }()); var M1; @@ -32,6 +47,7 @@ var M1; C.prototype.foo = function () { _super.prototype.foo = 1; }; + __names(C.prototype, ["foo"]); return C; }()); })(M2 = M1.M2 || (M1.M2 = {})); diff --git a/tests/baselines/reference/parserharness.js b/tests/baselines/reference/parserharness.js index 2275a1f682e1b..09be994d88ac9 100644 --- a/tests/baselines/reference/parserharness.js +++ b/tests/baselines/reference/parserharness.js @@ -2096,6 +2096,20 @@ module Harness { // See the License for the specific language governing permissions and // limitations under the License. // +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -2286,6 +2300,7 @@ var Harness; Logger.prototype.error = function (test, error) { }; Logger.prototype.comment = function (comment) { }; Logger.prototype.verify = function (test, passed, actual, expected, message) { }; + __names(Logger.prototype, ["start", "end", "scenarioStart", "scenarioEnd", "testStart", "pass", "bug", "fail", "error", "comment", "verify"]); return Logger; }()); Harness.Logger = Logger; @@ -2376,6 +2391,7 @@ var Harness; errorHandlerStack[errorHandlerStack.length - 1](e); } }; + __names(Runnable.prototype, ["addChild", "call", "run", "runBlock", "runChild"]); // The current stack of Runnable objects Runnable.currentStack = []; Runnable.errorHandlerStack = []; @@ -2414,6 +2430,7 @@ var Harness; }); } }; + __names(TestCase.prototype, ["addChild", "run"]); return TestCase; }(Runnable)); Harness.TestCase = TestCase; @@ -2470,6 +2487,7 @@ var Harness; emitLog('scenarioEnd', metadata); done(); }; + __names(Scenario.prototype, ["run", "runChildren"]); return Scenario; }(Runnable)); Harness.Scenario = Scenario; @@ -2501,6 +2519,7 @@ var Harness; Perf.runBenchmarks(); emitLog('end'); }; + __names(Run.prototype, ["run", "runChildren"]); return Run; }(Runnable)); Harness.Run = Run; @@ -2536,6 +2555,7 @@ var Harness; // Set time to MS. this.time = (Clock.now() - this.startTime) / Clock.resolution * 1000; }; + __names(Timer.prototype, ["start", "end"]); return Timer; }()); Perf.Timer = Timer; @@ -2579,6 +2599,7 @@ var Harness; } return Math.sqrt(sumOfSquares / this.data.length); }; + __names(Dataset.prototype, ["add", "mean", "min", "max", "stdDev"]); return Dataset; }()); Perf.Dataset = Dataset; @@ -2598,6 +2619,7 @@ var Harness; this.results[name] = this.results[name] || new Dataset(); this.results[name].add(timing); }; + __names(Benchmark.prototype, ["bench", "before", "beforeEach", "after", "afterEach", "addTimingFor"]); return Benchmark; }()); Perf.Benchmark = Benchmark; @@ -2679,6 +2701,7 @@ var Harness; this.lines = []; this.currentLine = ""; }; + __names(WriterAggregator.prototype, ["Write", "WriteLine", "Close", "reset"]); return WriterAggregator; }()); Compiler.WriterAggregator = WriterAggregator; @@ -2715,6 +2738,7 @@ var Harness; } return result; }; + __names(EmitterIOHost.prototype, ["createFile", "directoryExists", "fileExists", "resolvePath", "reset", "toArray"]); return EmitterIOHost; }()); Compiler.EmitterIOHost = EmitterIOHost; @@ -2879,6 +2903,7 @@ var Harness; _this.assertNotAssignmentCompatibleWith(notThese); }); }; + __names(Type.prototype, ["normalizeToArray", "compilesOk", "isSubtypeOf", "assertSubtypeOf", "assertNotSubtypeOf", "isAssignmentCompatibleWith", "assertAssignmentCompatibleWith", "assertNotAssignmentCompatibleWith", "assertThisCanBeAssignedTo"]); return Type; }()); Compiler.Type = Type; @@ -3020,6 +3045,7 @@ var Harness; assert.equal(actualType.type, expectedType); }); }; + __names(TypeFactory.prototype, ["get", "getTypeInfoName", "isOfType"]); return TypeFactory; }()); Compiler.TypeFactory = TypeFactory; @@ -3116,6 +3142,7 @@ var Harness; } return false; }; + __names(CompilerResult.prototype, ["isErrorAt"]); return CompilerResult; }()); Compiler.CompilerResult = CompilerResult; @@ -3130,6 +3157,7 @@ var Harness; CompilerError.prototype.toString = function () { return this.file + "(" + this.line + "," + this.column + "): " + this.message; }; + __names(CompilerError.prototype, ["toString"]); return CompilerError; }()); Compiler.CompilerError = CompilerError; @@ -3458,6 +3486,7 @@ var Harness; var aggDelta = entries.map(function (x) { return x.editRange.delta; }).reduce(function (prev, current) { return prev + current; }); return new TypeScript.ScriptEditRange(minDistFromStart, entries[0].length - minDistFromEnd, aggDelta); }; + __names(ScriptInfo.prototype, ["updateContent", "editContent", "getEditRangeSinceVersion"]); return ScriptInfo; }()); Harness.ScriptInfo = ScriptInfo; @@ -3660,6 +3689,7 @@ var Harness; TypeScriptLS.prototype.getHostSettings = function () { return JSON.stringify({ usePullLanguageService: Harness.usePull }); }; + __names(TypeScriptLS.prototype, ["addDefaultLibrary", "addFile", "addScript", "updateScript", "editScript", "getScriptContent", "information", "debug", "warning", "error", "fatal", "log", "getCompilationSettings", "getScriptCount", "getScriptSourceText", "getScriptSourceLength", "getScriptId", "getScriptIsResident", "getScriptVersion", "getScriptEditRangeSinceVersion", "getLanguageService", "parseSourceText", "parseFile", "lineColToPosition", "positionToZeroBasedLineCol", "checkEdits", "applyEdits", "normalizeEdits", "getHostSettings"]); return TypeScriptLS; }()); Harness.TypeScriptLS = TypeScriptLS; diff --git a/tests/baselines/reference/parserindenter.js b/tests/baselines/reference/parserindenter.js index 17f713189405a..5fc4aaca9a768 100644 --- a/tests/baselines/reference/parserindenter.js +++ b/tests/baselines/reference/parserindenter.js @@ -756,6 +756,20 @@ module Formatting { // See the License for the specific language governing permissions and // limitations under the License. // +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); /// var Formatting; (function (Formatting) { @@ -1339,6 +1353,7 @@ var Formatting; return token.tokenID === TypeScript.TokenID.StringLiteral && this.snapshot.GetLineNumberFromPosition(token.Span.endPosition()) > this.snapshot.GetLineNumberFromPosition(token.Span.startPosition()); }; + __names(Indenter.prototype, ["GetIndentationEdits", "GetIndentationEditsWorker", "GetCommentIndentationEdits", "GetSpecialCaseIndentation", "GetSpecialCaseIndentationForLCurly", "GetSpecialCaseIndentationForSemicolon", "GetSpecialCaseIndentationForComment", "CanIndentComment", "ApplyScriptBlockIndentation", "GetIndentEdit", "ApplyIndentationLevel", "GetIndentString", "ApplyIndentationDeltaFromParent", "ApplyIndentationDelta1", "ApplyIndentationDelta2", "GetIndentationDelta", "FillInheritedIndentation", "GetLineIndentationForOffset", "RegisterIndentation", "RegisterIndentation2", "AdjustStartOffsetIfNeeded", "IsMultiLineString"]); return Indenter; }()); Formatting.Indenter = Indenter; diff --git a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js index de5777feca800..96cbda63158b4 100644 --- a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js +++ b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js @@ -6,10 +6,25 @@ class C { //// [parsingClassRecoversWhenHittingUnexpectedSemicolon.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.f = function () { }; ; + __names(C.prototype, ["f"]); return C; }()); diff --git a/tests/baselines/reference/primitiveConstraints2.js b/tests/baselines/reference/primitiveConstraints2.js index c8c49b2a16487..d333bd95b9558 100644 --- a/tests/baselines/reference/primitiveConstraints2.js +++ b/tests/baselines/reference/primitiveConstraints2.js @@ -10,12 +10,27 @@ x.bar2(2, ""); // should error x.bar2(2, ""); // should error //// [primitiveConstraints2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.bar2 = function (x, y) { return null; }; + __names(C.prototype, ["bar2"]); return C; }()); var x = new C(); diff --git a/tests/baselines/reference/primitiveMembers.js b/tests/baselines/reference/primitiveMembers.js index 163c5c8873d83..ec9c66e35b206 100644 --- a/tests/baselines/reference/primitiveMembers.js +++ b/tests/baselines/reference/primitiveMembers.js @@ -32,6 +32,20 @@ class foo extends baz { public bar(){ return undefined}; } //// [primitiveMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -63,6 +77,7 @@ var baz = (function () { } baz.prototype.bar = function () { }; ; + __names(baz.prototype, ["bar"]); return baz; }()); var foo = (function (_super) { @@ -72,5 +87,6 @@ var foo = (function (_super) { } foo.prototype.bar = function () { return undefined; }; ; + __names(foo.prototype, ["bar"]); return foo; }(baz)); diff --git a/tests/baselines/reference/privacyClass.js b/tests/baselines/reference/privacyClass.js index 95b12f4e2fa4f..5f5d2e807d7b6 100644 --- a/tests/baselines/reference/privacyClass.js +++ b/tests/baselines/reference/privacyClass.js @@ -129,6 +129,20 @@ export class glo_C12_public extends glo_c_private implements glo_i_private, glo //// [privacyClass.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -147,6 +161,7 @@ var m1; } m1_c_public.prototype.f1 = function () { }; + __names(m1_c_public.prototype, ["f1"]); return m1_c_public; }()); m1.m1_c_public = m1_c_public; @@ -245,6 +260,7 @@ var m2; } m2_c_public.prototype.f1 = function () { }; + __names(m2_c_public.prototype, ["f1"]); return m2_c_public; }()); m2.m2_c_public = m2_c_public; @@ -341,6 +357,7 @@ var glo_c_public = (function () { } glo_c_public.prototype.f1 = function () { }; + __names(glo_c_public.prototype, ["f1"]); return glo_c_public; }()); exports.glo_c_public = glo_c_public; diff --git a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js index 857d52e99bf17..10a5d57b9e258 100644 --- a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js +++ b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js @@ -98,6 +98,20 @@ class publicClassExtendingPublicClassInGlobal extends publicClassInGlobal { //// [privacyClassExtendsClauseDeclFile_externalModule.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -116,6 +130,7 @@ var publicModule; } publicClassInPublicModule.prototype.f1 = function () { }; + __names(publicClassInPublicModule.prototype, ["f1"]); return publicClassInPublicModule; }()); publicModule.publicClassInPublicModule = publicClassInPublicModule; @@ -177,6 +192,7 @@ var privateModule; } publicClassInPrivateModule.prototype.f1 = function () { }; + __names(publicClassInPrivateModule.prototype, ["f1"]); return publicClassInPrivateModule; }()); privateModule.publicClassInPrivateModule = publicClassInPrivateModule; @@ -236,6 +252,7 @@ var publicClass = (function () { } publicClass.prototype.f1 = function () { }; + __names(publicClass.prototype, ["f1"]); return publicClass; }()); exports.publicClass = publicClass; @@ -290,6 +307,20 @@ var publicClassExtendingFromPrivateModuleClass = (function (_super) { }(privateModule.publicClassInPrivateModule)); exports.publicClassExtendingFromPrivateModuleClass = publicClassExtendingFromPrivateModuleClass; //// [privacyClassExtendsClauseDeclFile_GlobalFile.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -307,6 +338,7 @@ var publicModuleInGlobal; } publicClassInPublicModule.prototype.f1 = function () { }; + __names(publicClassInPublicModule.prototype, ["f1"]); return publicClassInPublicModule; }()); publicModuleInGlobal.publicClassInPublicModule = publicClassInPublicModule; diff --git a/tests/baselines/reference/privacyFunc.js b/tests/baselines/reference/privacyFunc.js index b9c0e8e13c97b..844c9747bb30b 100644 --- a/tests/baselines/reference/privacyFunc.js +++ b/tests/baselines/reference/privacyFunc.js @@ -229,6 +229,20 @@ function f10_public(): C6_public { //// [privacyFunc.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m1; (function (m1) { var C1_public = (function () { @@ -236,6 +250,7 @@ var m1; } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; @@ -279,6 +294,7 @@ var m1; C3_public.prototype.f12_public = function () { return new C2_private(); //error }; + __names(C3_public.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return C3_public; }()); m1.C3_public = C3_public; @@ -317,6 +333,7 @@ var m1; C4_private.prototype.f12_public = function () { return new C2_private(); }; + __names(C4_private.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return C4_private; }()); var C5_public = (function () { @@ -404,6 +421,7 @@ var C7_public = (function () { C7_public.prototype.f10_public = function () { return new C6_public(); }; + __names(C7_public.prototype, ["f1_private", "f2_public", "f5_private", "f6_public", "f9_private", "f10_public"]); return C7_public; }()); var C9_public = (function () { diff --git a/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js b/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js index 6b0ea3cafd220..03a235e954c1e 100644 --- a/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js @@ -207,6 +207,20 @@ function createExportedWidget4() { exports.createExportedWidget4 = createExportedWidget4; //// [privacyFunctionCannotNameParameterTypeDeclFile_consumer.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var exporter = require("./privacyFunctionCannotNameParameterTypeDeclFile_exporter"); var publicClassWithWithPrivateParmeterTypes = (function () { @@ -229,6 +243,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget1(); } }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateParmeterTypes; }()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -252,6 +267,7 @@ var publicClassWithWithPrivateParmeterTypes1 = (function () { publicClassWithWithPrivateParmeterTypes1.prototype.myPrivateMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget3(); } }; + __names(publicClassWithWithPrivateParmeterTypes1.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateParmeterTypes1; }()); exports.publicClassWithWithPrivateParmeterTypes1 = publicClassWithWithPrivateParmeterTypes1; @@ -275,6 +291,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget1(); } }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPrivateParmeterTypes2 = (function () { @@ -297,6 +314,7 @@ var privateClassWithWithPrivateParmeterTypes2 = (function () { privateClassWithWithPrivateParmeterTypes2.prototype.myPrivateMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget3(); } }; + __names(privateClassWithWithPrivateParmeterTypes2.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateParmeterTypes2; }()); function publicFunctionWithPrivateParmeterTypes(param) { @@ -327,6 +345,7 @@ var publicClassWithPrivateModuleParameterTypes = (function () { publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget2(); } }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return publicClassWithPrivateModuleParameterTypes; }()); exports.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -344,6 +363,7 @@ var publicClassWithPrivateModuleParameterTypes2 = (function () { publicClassWithPrivateModuleParameterTypes2.prototype.myPublicMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget4(); } }; + __names(publicClassWithPrivateModuleParameterTypes2.prototype, ["myPublicMethod"]); return publicClassWithPrivateModuleParameterTypes2; }()); exports.publicClassWithPrivateModuleParameterTypes2 = publicClassWithPrivateModuleParameterTypes2; @@ -369,6 +389,7 @@ var privateClassWithPrivateModuleParameterTypes = (function () { privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget2(); } }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return privateClassWithPrivateModuleParameterTypes; }()); var privateClassWithPrivateModuleParameterTypes1 = (function () { @@ -385,6 +406,7 @@ var privateClassWithPrivateModuleParameterTypes1 = (function () { privateClassWithPrivateModuleParameterTypes1.prototype.myPublicMethod = function (param) { if (param === void 0) { param = exporter.createExportedWidget4(); } }; + __names(privateClassWithPrivateModuleParameterTypes1.prototype, ["myPublicMethod"]); return privateClassWithPrivateModuleParameterTypes1; }()); function privateFunctionWithPrivateModuleParameterTypes(param) { diff --git a/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js b/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js index 61c7e0014db74..a015f0cb3d1ab 100644 --- a/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js @@ -214,6 +214,20 @@ function createExportedWidget4() { exports.createExportedWidget4 = createExportedWidget4; //// [privacyFunctionReturnTypeDeclFile_consumer.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var exporter = require("./privacyFunctionReturnTypeDeclFile_exporter"); var publicClassWithWithPrivateParmeterTypes = (function () { @@ -249,6 +263,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { return exporter.createExportedWidget3(); ; }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPrivateParmeterTypes; }()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -285,6 +300,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { return exporter.createExportedWidget3(); ; }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPrivateParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes() { @@ -316,6 +332,7 @@ var publicClassWithPrivateModuleReturnTypes = (function () { publicClassWithPrivateModuleReturnTypes.prototype.myPublicMethod1 = function () { return exporter.createExportedWidget4(); }; + __names(publicClassWithPrivateModuleReturnTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return publicClassWithPrivateModuleReturnTypes; }()); exports.publicClassWithPrivateModuleReturnTypes = publicClassWithPrivateModuleReturnTypes; @@ -342,6 +359,7 @@ var privateClassWithPrivateModuleReturnTypes = (function () { privateClassWithPrivateModuleReturnTypes.prototype.myPublicMethod1 = function () { return exporter.createExportedWidget4(); }; + __names(privateClassWithPrivateModuleReturnTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return privateClassWithPrivateModuleReturnTypes; }()); function privateFunctionWithPrivateModuleReturnTypes() { diff --git a/tests/baselines/reference/privacyFunctionParameterDeclFile.js b/tests/baselines/reference/privacyFunctionParameterDeclFile.js index db00fb67d8a21..92ae70665859b 100644 --- a/tests/baselines/reference/privacyFunctionParameterDeclFile.js +++ b/tests/baselines/reference/privacyFunctionParameterDeclFile.js @@ -687,6 +687,20 @@ module publicModuleInGlobal { //// [privacyFunctionParameterDeclFile_externalModule.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var privateClass = (function () { function privateClass() { @@ -712,6 +726,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { }; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateParmeterTypes; }()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -728,6 +743,7 @@ var publicClassWithWithPublicParmeterTypes = (function () { }; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicParmeterTypes; }()); exports.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -744,6 +760,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { }; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -759,6 +776,7 @@ var privateClassWithWithPublicParmeterTypes = (function () { }; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes(param) { @@ -780,6 +798,7 @@ var publicClassWithPrivateModuleParameterTypes = (function () { }; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return publicClassWithPrivateModuleParameterTypes; }()); exports.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -795,6 +814,7 @@ var privateClassWithPrivateModuleParameterTypes = (function () { }; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes(param) { @@ -825,6 +845,7 @@ var publicModule; }; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateParmeterTypes; }()); publicModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -841,6 +862,7 @@ var publicModule; }; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicParmeterTypes; }()); publicModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -857,6 +879,7 @@ var publicModule; }; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -872,6 +895,7 @@ var publicModule; }; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes(param) { @@ -893,6 +917,7 @@ var publicModule; }; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return publicClassWithPrivateModuleParameterTypes; }()); publicModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -908,6 +933,7 @@ var publicModule; }; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes(param) { @@ -939,6 +965,7 @@ var privateModule; }; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateParmeterTypes; }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -955,6 +982,7 @@ var privateModule; }; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicParmeterTypes; }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -971,6 +999,7 @@ var privateModule; }; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -986,6 +1015,7 @@ var privateModule; }; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes(param) { @@ -1007,6 +1037,7 @@ var privateModule; }; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return publicClassWithPrivateModuleParameterTypes; }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -1022,12 +1053,27 @@ var privateModule; }; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes(param) { } })(privateModule || (privateModule = {})); //// [privacyFunctionParameterDeclFile_GlobalFile.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var publicClassInGlobal = (function () { function publicClassInGlobal() { } @@ -1046,6 +1092,7 @@ var publicClassWithWithPublicParmeterTypesInGlobal = (function () { }; publicClassWithWithPublicParmeterTypesInGlobal.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPublicParmeterTypesInGlobal.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicParmeterTypesInGlobal; }()); function publicFunctionWithPublicParmeterTypesInGlobal(param) { @@ -1089,6 +1136,7 @@ var publicModuleInGlobal; }; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateParmeterTypes; }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -1105,6 +1153,7 @@ var publicModuleInGlobal; }; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicParmeterTypes; }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -1121,6 +1170,7 @@ var publicModuleInGlobal; }; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -1136,6 +1186,7 @@ var publicModuleInGlobal; }; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes(param) { @@ -1157,6 +1208,7 @@ var publicModuleInGlobal; }; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return publicClassWithPrivateModuleParameterTypes; }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -1172,6 +1224,7 @@ var publicModuleInGlobal; }; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes(param) { @@ -1190,6 +1243,7 @@ var publicModuleInGlobal; }; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateParmeterTypes; }()); publicModuleInGlobal.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -1206,6 +1260,7 @@ var publicModuleInGlobal; }; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicParmeterTypes; }()); publicModuleInGlobal.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -1222,6 +1277,7 @@ var publicModuleInGlobal; }; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -1237,6 +1293,7 @@ var publicModuleInGlobal; }; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod = function (param) { }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes(param) { @@ -1258,6 +1315,7 @@ var publicModuleInGlobal; }; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return publicClassWithPrivateModuleParameterTypes; }()); publicModuleInGlobal.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -1273,6 +1331,7 @@ var publicModuleInGlobal; }; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod = function (param) { }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes(param) { diff --git a/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js b/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js index d3136f4310ed3..70d24560354f5 100644 --- a/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js @@ -1194,6 +1194,20 @@ module publicModuleInGlobal { //// [privacyFunctionReturnTypeDeclFile_externalModule.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var privateClass = (function () { function privateClass() { @@ -1233,6 +1247,7 @@ var publicClassWithWithPrivateParmeterTypes = (function () { publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPrivateParmeterTypes; }()); exports.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -1263,6 +1278,7 @@ var publicClassWithWithPublicParmeterTypes = (function () { publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPublicParmeterTypes; }()); exports.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -1293,6 +1309,7 @@ var privateClassWithWithPrivateParmeterTypes = (function () { privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -1322,6 +1339,7 @@ var privateClassWithWithPublicParmeterTypes = (function () { privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes() { @@ -1367,6 +1385,7 @@ var publicClassWithPrivateModuleParameterTypes = (function () { publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return publicClassWithPrivateModuleParameterTypes; }()); exports.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -1393,6 +1412,7 @@ var privateClassWithPrivateModuleParameterTypes = (function () { privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes() { @@ -1441,6 +1461,7 @@ var publicModule; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPrivateParmeterTypes; }()); publicModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -1471,6 +1492,7 @@ var publicModule; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPublicParmeterTypes; }()); publicModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -1501,6 +1523,7 @@ var publicModule; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -1530,6 +1553,7 @@ var publicModule; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes() { @@ -1575,6 +1599,7 @@ var publicModule; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return publicClassWithPrivateModuleParameterTypes; }()); publicModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -1601,6 +1626,7 @@ var publicModule; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes() { @@ -1650,6 +1676,7 @@ var privateModule; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPrivateParmeterTypes; }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -1680,6 +1707,7 @@ var privateModule; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPublicParmeterTypes; }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -1710,6 +1738,7 @@ var privateModule; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -1739,6 +1768,7 @@ var privateModule; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes() { @@ -1784,6 +1814,7 @@ var privateModule; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return publicClassWithPrivateModuleParameterTypes; }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -1810,6 +1841,7 @@ var privateModule; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes() { @@ -1820,6 +1852,20 @@ var privateModule; } })(privateModule || (privateModule = {})); //// [privacyFunctionReturnTypeDeclFile_GlobalFile.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var publicClassInGlobal = (function () { function publicClassInGlobal() { } @@ -1852,6 +1898,7 @@ var publicClassWithWithPublicParmeterTypesInGlobal = (function () { publicClassWithWithPublicParmeterTypesInGlobal.prototype.myPrivateMethod1 = function () { return new publicClassInGlobal(); }; + __names(publicClassWithWithPublicParmeterTypesInGlobal.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPublicParmeterTypesInGlobal; }()); function publicFunctionWithPublicParmeterTypesInGlobal() { @@ -1913,6 +1960,7 @@ var publicModuleInGlobal; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPrivateParmeterTypes; }()); privateModule.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -1943,6 +1991,7 @@ var publicModuleInGlobal; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPublicParmeterTypes; }()); privateModule.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -1973,6 +2022,7 @@ var publicModuleInGlobal; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -2002,6 +2052,7 @@ var publicModuleInGlobal; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes() { @@ -2047,6 +2098,7 @@ var publicModuleInGlobal; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return publicClassWithPrivateModuleParameterTypes; }()); privateModule.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -2073,6 +2125,7 @@ var publicModuleInGlobal; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes() { @@ -2109,6 +2162,7 @@ var publicModuleInGlobal; publicClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(publicClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPrivateParmeterTypes; }()); publicModuleInGlobal.publicClassWithWithPrivateParmeterTypes = publicClassWithWithPrivateParmeterTypes; @@ -2139,6 +2193,7 @@ var publicModuleInGlobal; publicClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(publicClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return publicClassWithWithPublicParmeterTypes; }()); publicModuleInGlobal.publicClassWithWithPublicParmeterTypes = publicClassWithWithPublicParmeterTypes; @@ -2169,6 +2224,7 @@ var publicModuleInGlobal; privateClassWithWithPrivateParmeterTypes.prototype.myPrivateMethod1 = function () { return new privateClass(); }; + __names(privateClassWithWithPrivateParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPrivateParmeterTypes; }()); var privateClassWithWithPublicParmeterTypes = (function () { @@ -2198,6 +2254,7 @@ var publicModuleInGlobal; privateClassWithWithPublicParmeterTypes.prototype.myPrivateMethod1 = function () { return new publicClass(); }; + __names(privateClassWithWithPublicParmeterTypes.prototype, ["myPublicMethod", "myPrivateMethod", "myPublicMethod1", "myPrivateMethod1"]); return privateClassWithWithPublicParmeterTypes; }()); function publicFunctionWithPrivateParmeterTypes() { @@ -2243,6 +2300,7 @@ var publicModuleInGlobal; publicClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(publicClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return publicClassWithPrivateModuleParameterTypes; }()); publicModuleInGlobal.publicClassWithPrivateModuleParameterTypes = publicClassWithPrivateModuleParameterTypes; @@ -2269,6 +2327,7 @@ var publicModuleInGlobal; privateClassWithPrivateModuleParameterTypes.prototype.myPublicMethod1 = function () { return new privateModule.publicClass(); }; + __names(privateClassWithPrivateModuleParameterTypes.prototype, ["myPublicMethod", "myPublicMethod1"]); return privateClassWithPrivateModuleParameterTypes; }()); function privateFunctionWithPrivateModuleParameterTypes() { diff --git a/tests/baselines/reference/privacyGetter.js b/tests/baselines/reference/privacyGetter.js index 255d21edcdb83..0ea2cb2aea8e3 100644 --- a/tests/baselines/reference/privacyGetter.js +++ b/tests/baselines/reference/privacyGetter.js @@ -208,6 +208,20 @@ class C8_private { } //// [privacyGetter.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -218,6 +232,7 @@ define(["require", "exports"], function (require, exports) { } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; @@ -317,6 +332,7 @@ define(["require", "exports"], function (require, exports) { } m2_C1_public.prototype.f1 = function () { }; + __names(m2_C1_public.prototype, ["f1"]); return m2_C1_public; }()); m2.m2_C1_public = m2_C1_public; @@ -414,6 +430,7 @@ define(["require", "exports"], function (require, exports) { } C5_private.prototype.f = function () { }; + __names(C5_private.prototype, ["f"]); return C5_private; }()); var C6_public = (function () { diff --git a/tests/baselines/reference/privacyGloClass.js b/tests/baselines/reference/privacyGloClass.js index 85acba1148b3a..1d78afc065328 100644 --- a/tests/baselines/reference/privacyGloClass.js +++ b/tests/baselines/reference/privacyGloClass.js @@ -61,6 +61,20 @@ class glo_C11_public extends glo_c_public implements glo_i_public { //// [privacyGloClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -78,6 +92,7 @@ var m1; } m1_c_public.prototype.f1 = function () { }; + __names(m1_c_public.prototype, ["f1"]); return m1_c_public; }()); m1.m1_c_public = m1_c_public; @@ -174,6 +189,7 @@ var glo_c_public = (function () { } glo_c_public.prototype.f1 = function () { }; + __names(glo_c_public.prototype, ["f1"]); return glo_c_public; }()); var glo_C3_public = (function (_super) { diff --git a/tests/baselines/reference/privacyGloFunc.js b/tests/baselines/reference/privacyGloFunc.js index 6bc177946809c..85eef926ac3b2 100644 --- a/tests/baselines/reference/privacyGloFunc.js +++ b/tests/baselines/reference/privacyGloFunc.js @@ -531,6 +531,20 @@ export function f12_public(): C5_private { //error //// [privacyGloFunc.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -541,6 +555,7 @@ define(["require", "exports"], function (require, exports) { } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; @@ -584,6 +599,7 @@ define(["require", "exports"], function (require, exports) { C3_public.prototype.f12_public = function () { return new C2_private(); //error }; + __names(C3_public.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return C3_public; }()); m1.C3_public = C3_public; @@ -622,6 +638,7 @@ define(["require", "exports"], function (require, exports) { C4_private.prototype.f12_public = function () { return new C2_private(); }; + __names(C4_private.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return C4_private; }()); var C5_public = (function () { @@ -692,6 +709,7 @@ define(["require", "exports"], function (require, exports) { } m2_C1_public.prototype.f = function () { }; + __names(m2_C1_public.prototype, ["f"]); return m2_C1_public; }()); m2.m2_C1_public = m2_C1_public; @@ -735,6 +753,7 @@ define(["require", "exports"], function (require, exports) { m2_C3_public.prototype.f12_public = function () { return new m2_C2_private(); }; + __names(m2_C3_public.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return m2_C3_public; }()); m2.m2_C3_public = m2_C3_public; @@ -773,6 +792,7 @@ define(["require", "exports"], function (require, exports) { m2_C4_private.prototype.f12_public = function () { return new m2_C2_private(); }; + __names(m2_C4_private.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return m2_C4_private; }()); var m2_C5_public = (function () { @@ -841,6 +861,7 @@ define(["require", "exports"], function (require, exports) { } C5_private.prototype.f = function () { }; + __names(C5_private.prototype, ["f"]); return C5_private; }()); var C6_public = (function () { @@ -884,6 +905,7 @@ define(["require", "exports"], function (require, exports) { C7_public.prototype.f12_public = function () { return new C5_private(); //error }; + __names(C7_public.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return C7_public; }()); exports.C7_public = C7_public; @@ -922,6 +944,7 @@ define(["require", "exports"], function (require, exports) { C8_private.prototype.f12_public = function () { return new C5_private(); }; + __names(C8_private.prototype, ["f1_private", "f2_public", "f3_private", "f4_public", "f5_private", "f6_public", "f7_private", "f8_public", "f9_private", "f10_public", "f11_private", "f12_public"]); return C8_private; }()); var C9_public = (function () { diff --git a/tests/baselines/reference/privacyGloGetter.js b/tests/baselines/reference/privacyGloGetter.js index 2ae94a0d321f9..da13e682ed519 100644 --- a/tests/baselines/reference/privacyGloGetter.js +++ b/tests/baselines/reference/privacyGloGetter.js @@ -89,6 +89,20 @@ class C7_public { } //// [privacyGloGetter.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m1; (function (m1) { var C1_public = (function () { @@ -96,6 +110,7 @@ var m1; } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; diff --git a/tests/baselines/reference/privacyGloInterface.js b/tests/baselines/reference/privacyGloInterface.js index 671977678a39a..214e1447b4be7 100644 --- a/tests/baselines/reference/privacyGloInterface.js +++ b/tests/baselines/reference/privacyGloInterface.js @@ -120,6 +120,20 @@ interface glo_C3_public extends glo_i_public { //// [privacyGloInterface.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m1; (function (m1) { var C1_public = (function () { @@ -127,6 +141,7 @@ var m1; } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; @@ -141,5 +156,6 @@ var C5_public = (function () { } C5_public.prototype.f1 = function () { }; + __names(C5_public.prototype, ["f1"]); return C5_public; }()); diff --git a/tests/baselines/reference/privacyGloVar.js b/tests/baselines/reference/privacyGloVar.js index 678d6cfdc99ed..56cb7bf091993 100644 --- a/tests/baselines/reference/privacyGloVar.js +++ b/tests/baselines/reference/privacyGloVar.js @@ -81,6 +81,20 @@ var glo_v22_public: glo_C1_public = new glo_C1_public(); //// [privacyGloVar.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var m1; (function (m1) { var C1_public = (function () { @@ -88,6 +102,7 @@ var m1; } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; @@ -139,6 +154,7 @@ var glo_C1_public = (function () { } glo_C1_public.prototype.f1 = function () { }; + __names(glo_C1_public.prototype, ["f1"]); return glo_C1_public; }()); var glo_C3_public = (function () { diff --git a/tests/baselines/reference/privacyInterface.js b/tests/baselines/reference/privacyInterface.js index 360f1683b6a27..0f5477644f5da 100644 --- a/tests/baselines/reference/privacyInterface.js +++ b/tests/baselines/reference/privacyInterface.js @@ -266,6 +266,20 @@ export interface glo_C6_public extends glo_i_private, glo_i_public { //// [privacyInterface.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var m1; (function (m1) { @@ -274,6 +288,7 @@ var m1; } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; @@ -290,6 +305,7 @@ var m2; } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m2.C1_public = C1_public; @@ -304,6 +320,7 @@ var C5_public = (function () { } C5_public.prototype.f1 = function () { }; + __names(C5_public.prototype, ["f1"]); return C5_public; }()); exports.C5_public = C5_public; diff --git a/tests/baselines/reference/privacyTypeParameterOfFunction.js b/tests/baselines/reference/privacyTypeParameterOfFunction.js index 98e0a57d59ea3..0cf0c1308695d 100644 --- a/tests/baselines/reference/privacyTypeParameterOfFunction.js +++ b/tests/baselines/reference/privacyTypeParameterOfFunction.js @@ -134,6 +134,20 @@ function privateFunctionWithPublicTypeParametersWithoutExtends() { //// [privacyTypeParameterOfFunction.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var privateClass = (function () { function privateClass() { @@ -159,6 +173,7 @@ var publicClassWithWithPrivateTypeParameters = (function () { }; publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateTypeParameters; }()); exports.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; @@ -173,6 +188,7 @@ var publicClassWithWithPublicTypeParameters = (function () { }; publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParameters; }()); exports.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; @@ -187,6 +203,7 @@ var privateClassWithWithPrivateTypeParameters = (function () { }; privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateTypeParameters; }()); var privateClassWithWithPublicTypeParameters = (function () { @@ -200,6 +217,7 @@ var privateClassWithWithPublicTypeParameters = (function () { }; privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParameters; }()); // TypeParameter_0_of_exported_function_has_or_is_using_private_type_1 @@ -224,6 +242,7 @@ var publicClassWithWithPublicTypeParametersWithoutExtends = (function () { }; publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParametersWithoutExtends; }()); exports.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; @@ -238,6 +257,7 @@ var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { }; privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParametersWithoutExtends; }()); function publicFunctionWithPublicTypeParametersWithoutExtends() { diff --git a/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js b/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js index f5fdf6dfff868..7763611c04fa6 100644 --- a/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js +++ b/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js @@ -440,6 +440,20 @@ module privateModule { //// [privacyTypeParameterOfFunctionDeclFile.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var privateClass = (function () { function privateClass() { @@ -463,6 +477,7 @@ var publicClassWithWithPrivateTypeParameters = (function () { }; publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateTypeParameters; }()); exports.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; @@ -477,6 +492,7 @@ var publicClassWithWithPublicTypeParameters = (function () { }; publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParameters; }()); exports.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; @@ -491,6 +507,7 @@ var privateClassWithWithPrivateTypeParameters = (function () { }; privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateTypeParameters; }()); var privateClassWithWithPublicTypeParameters = (function () { @@ -504,6 +521,7 @@ var privateClassWithWithPublicTypeParameters = (function () { }; privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParameters; }()); function publicFunctionWithPrivateTypeParameters() { @@ -527,6 +545,7 @@ var publicClassWithWithPublicTypeParametersWithoutExtends = (function () { }; publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParametersWithoutExtends; }()); exports.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; @@ -541,6 +560,7 @@ var privateClassWithWithPublicTypeParametersWithoutExtends = (function () { }; privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParametersWithoutExtends; }()); function publicFunctionWithPublicTypeParametersWithoutExtends() { @@ -555,6 +575,7 @@ var publicClassWithWithPrivateModuleTypeParameters = (function () { }; publicClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; + __names(publicClassWithWithPrivateModuleTypeParameters.prototype, ["myPublicMethod"]); return publicClassWithWithPrivateModuleTypeParameters; }()); exports.publicClassWithWithPrivateModuleTypeParameters = publicClassWithWithPrivateModuleTypeParameters; @@ -568,6 +589,7 @@ var privateClassWithWithPrivateModuleTypeParameters = (function () { }; privateClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; + __names(privateClassWithWithPrivateModuleTypeParameters.prototype, ["myPublicMethod"]); return privateClassWithWithPrivateModuleTypeParameters; }()); function privateFunctionWithPrivateMopduleTypeParameters() { @@ -596,6 +618,7 @@ var publicModule; }; publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateTypeParameters; }()); publicModule.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; @@ -610,6 +633,7 @@ var publicModule; }; publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParameters; }()); publicModule.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; @@ -624,6 +648,7 @@ var publicModule; }; privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateTypeParameters; }()); var privateClassWithWithPublicTypeParameters = (function () { @@ -637,6 +662,7 @@ var publicModule; }; privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParameters; }()); function publicFunctionWithPrivateTypeParameters() { @@ -660,6 +686,7 @@ var publicModule; }; publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParametersWithoutExtends; }()); publicModule.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; @@ -674,6 +701,7 @@ var publicModule; }; privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParametersWithoutExtends; }()); function publicFunctionWithPublicTypeParametersWithoutExtends() { @@ -688,6 +716,7 @@ var publicModule; }; publicClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; + __names(publicClassWithWithPrivateModuleTypeParameters.prototype, ["myPublicMethod"]); return publicClassWithWithPrivateModuleTypeParameters; }()); publicModule.publicClassWithWithPrivateModuleTypeParameters = publicClassWithWithPrivateModuleTypeParameters; @@ -701,6 +730,7 @@ var publicModule; }; privateClassWithWithPrivateModuleTypeParameters.prototype.myPublicMethod = function () { }; + __names(privateClassWithWithPrivateModuleTypeParameters.prototype, ["myPublicMethod"]); return privateClassWithWithPrivateModuleTypeParameters; }()); function privateFunctionWithPrivateMopduleTypeParameters() { @@ -730,6 +760,7 @@ var privateModule; }; publicClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPrivateTypeParameters; }()); privateModule.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; @@ -744,6 +775,7 @@ var privateModule; }; publicClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParameters; }()); privateModule.publicClassWithWithPublicTypeParameters = publicClassWithWithPublicTypeParameters; @@ -758,6 +790,7 @@ var privateModule; }; privateClassWithWithPrivateTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPrivateTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPrivateTypeParameters; }()); var privateClassWithWithPublicTypeParameters = (function () { @@ -771,6 +804,7 @@ var privateModule; }; privateClassWithWithPublicTypeParameters.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParameters.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParameters; }()); function publicFunctionWithPrivateTypeParameters() { @@ -794,6 +828,7 @@ var privateModule; }; publicClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(publicClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return publicClassWithWithPublicTypeParametersWithoutExtends; }()); privateModule.publicClassWithWithPublicTypeParametersWithoutExtends = publicClassWithWithPublicTypeParametersWithoutExtends; @@ -808,6 +843,7 @@ var privateModule; }; privateClassWithWithPublicTypeParametersWithoutExtends.prototype.myPrivateMethod = function () { }; + __names(privateClassWithWithPublicTypeParametersWithoutExtends.prototype, ["myPublicMethod", "myPrivateMethod"]); return privateClassWithWithPublicTypeParametersWithoutExtends; }()); function publicFunctionWithPublicTypeParametersWithoutExtends() { diff --git a/tests/baselines/reference/privacyTypeParametersOfClass.js b/tests/baselines/reference/privacyTypeParametersOfClass.js index ba1a9bd10e07a..d0563c18bc356 100644 --- a/tests/baselines/reference/privacyTypeParametersOfClass.js +++ b/tests/baselines/reference/privacyTypeParametersOfClass.js @@ -45,6 +45,20 @@ class privateClassWithPublicTypeParametersWithoutExtends { //// [privacyTypeParametersOfClass.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var privateClass = (function () { function privateClass() { @@ -64,6 +78,7 @@ var publicClassWithPrivateTypeParameters = (function () { publicClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPrivateTypeParameters.prototype, ["myMethod"]); return publicClassWithPrivateTypeParameters; }()); exports.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; @@ -73,6 +88,7 @@ var publicClassWithPublicTypeParameters = (function () { publicClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParameters.prototype, ["myMethod"]); return publicClassWithPublicTypeParameters; }()); exports.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; @@ -82,6 +98,7 @@ var privateClassWithPrivateTypeParameters = (function () { privateClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPrivateTypeParameters.prototype, ["myMethod"]); return privateClassWithPrivateTypeParameters; }()); var privateClassWithPublicTypeParameters = (function () { @@ -90,6 +107,7 @@ var privateClassWithPublicTypeParameters = (function () { privateClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParameters.prototype, ["myMethod"]); return privateClassWithPublicTypeParameters; }()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { @@ -98,6 +116,7 @@ var publicClassWithPublicTypeParametersWithoutExtends = (function () { publicClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return publicClassWithPublicTypeParametersWithoutExtends; }()); exports.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; @@ -107,5 +126,6 @@ var privateClassWithPublicTypeParametersWithoutExtends = (function () { privateClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return privateClassWithPublicTypeParametersWithoutExtends; }()); diff --git a/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js b/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js index 8e21589de4229..cd19ff1a9b371 100644 --- a/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js +++ b/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js @@ -156,6 +156,20 @@ module privateModule { //// [privacyTypeParametersOfClassDeclFile.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var privateClass = (function () { function privateClass() { @@ -174,6 +188,7 @@ var publicClassWithPrivateTypeParameters = (function () { publicClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPrivateTypeParameters.prototype, ["myMethod"]); return publicClassWithPrivateTypeParameters; }()); exports.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; @@ -183,6 +198,7 @@ var publicClassWithPublicTypeParameters = (function () { publicClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParameters.prototype, ["myMethod"]); return publicClassWithPublicTypeParameters; }()); exports.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; @@ -192,6 +208,7 @@ var privateClassWithPrivateTypeParameters = (function () { privateClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPrivateTypeParameters.prototype, ["myMethod"]); return privateClassWithPrivateTypeParameters; }()); var privateClassWithPublicTypeParameters = (function () { @@ -200,6 +217,7 @@ var privateClassWithPublicTypeParameters = (function () { privateClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParameters.prototype, ["myMethod"]); return privateClassWithPublicTypeParameters; }()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { @@ -208,6 +226,7 @@ var publicClassWithPublicTypeParametersWithoutExtends = (function () { publicClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return publicClassWithPublicTypeParametersWithoutExtends; }()); exports.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; @@ -217,6 +236,7 @@ var privateClassWithPublicTypeParametersWithoutExtends = (function () { privateClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return privateClassWithPublicTypeParametersWithoutExtends; }()); var publicClassWithTypeParametersFromPrivateModule = (function () { @@ -225,6 +245,7 @@ var publicClassWithTypeParametersFromPrivateModule = (function () { publicClassWithTypeParametersFromPrivateModule.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithTypeParametersFromPrivateModule.prototype, ["myMethod"]); return publicClassWithTypeParametersFromPrivateModule; }()); exports.publicClassWithTypeParametersFromPrivateModule = publicClassWithTypeParametersFromPrivateModule; @@ -234,6 +255,7 @@ var privateClassWithTypeParametersFromPrivateModule = (function () { privateClassWithTypeParametersFromPrivateModule.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithTypeParametersFromPrivateModule.prototype, ["myMethod"]); return privateClassWithTypeParametersFromPrivateModule; }()); var publicModule; @@ -255,6 +277,7 @@ var publicModule; publicClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPrivateTypeParameters.prototype, ["myMethod"]); return publicClassWithPrivateTypeParameters; }()); publicModule.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; @@ -264,6 +287,7 @@ var publicModule; publicClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParameters.prototype, ["myMethod"]); return publicClassWithPublicTypeParameters; }()); publicModule.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; @@ -273,6 +297,7 @@ var publicModule; privateClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPrivateTypeParameters.prototype, ["myMethod"]); return privateClassWithPrivateTypeParameters; }()); var privateClassWithPublicTypeParameters = (function () { @@ -281,6 +306,7 @@ var publicModule; privateClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParameters.prototype, ["myMethod"]); return privateClassWithPublicTypeParameters; }()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { @@ -289,6 +315,7 @@ var publicModule; publicClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return publicClassWithPublicTypeParametersWithoutExtends; }()); publicModule.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; @@ -298,6 +325,7 @@ var publicModule; privateClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return privateClassWithPublicTypeParametersWithoutExtends; }()); var publicClassWithTypeParametersFromPrivateModule = (function () { @@ -306,6 +334,7 @@ var publicModule; publicClassWithTypeParametersFromPrivateModule.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithTypeParametersFromPrivateModule.prototype, ["myMethod"]); return publicClassWithTypeParametersFromPrivateModule; }()); publicModule.publicClassWithTypeParametersFromPrivateModule = publicClassWithTypeParametersFromPrivateModule; @@ -315,6 +344,7 @@ var publicModule; privateClassWithTypeParametersFromPrivateModule.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithTypeParametersFromPrivateModule.prototype, ["myMethod"]); return privateClassWithTypeParametersFromPrivateModule; }()); })(publicModule = exports.publicModule || (exports.publicModule = {})); @@ -337,6 +367,7 @@ var privateModule; publicClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPrivateTypeParameters.prototype, ["myMethod"]); return publicClassWithPrivateTypeParameters; }()); privateModule.publicClassWithPrivateTypeParameters = publicClassWithPrivateTypeParameters; @@ -346,6 +377,7 @@ var privateModule; publicClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParameters.prototype, ["myMethod"]); return publicClassWithPublicTypeParameters; }()); privateModule.publicClassWithPublicTypeParameters = publicClassWithPublicTypeParameters; @@ -355,6 +387,7 @@ var privateModule; privateClassWithPrivateTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPrivateTypeParameters.prototype, ["myMethod"]); return privateClassWithPrivateTypeParameters; }()); var privateClassWithPublicTypeParameters = (function () { @@ -363,6 +396,7 @@ var privateModule; privateClassWithPublicTypeParameters.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParameters.prototype, ["myMethod"]); return privateClassWithPublicTypeParameters; }()); var publicClassWithPublicTypeParametersWithoutExtends = (function () { @@ -371,6 +405,7 @@ var privateModule; publicClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(publicClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return publicClassWithPublicTypeParametersWithoutExtends; }()); privateModule.publicClassWithPublicTypeParametersWithoutExtends = publicClassWithPublicTypeParametersWithoutExtends; @@ -380,6 +415,7 @@ var privateModule; privateClassWithPublicTypeParametersWithoutExtends.prototype.myMethod = function (val) { return val; }; + __names(privateClassWithPublicTypeParametersWithoutExtends.prototype, ["myMethod"]); return privateClassWithPublicTypeParametersWithoutExtends; }()); })(privateModule || (privateModule = {})); diff --git a/tests/baselines/reference/privacyVar.js b/tests/baselines/reference/privacyVar.js index 4c97d273c3e98..08ff572d565df 100644 --- a/tests/baselines/reference/privacyVar.js +++ b/tests/baselines/reference/privacyVar.js @@ -176,6 +176,20 @@ export var glo_v24_public: glo_C2_private = new glo_C2_private(); // error //// [privacyVar.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var m1; (function (m1) { @@ -184,6 +198,7 @@ var m1; } C1_public.prototype.f1 = function () { }; + __names(C1_public.prototype, ["f1"]); return C1_public; }()); m1.C1_public = C1_public; @@ -237,6 +252,7 @@ var m2; } m2_C1_public.prototype.f1 = function () { }; + __names(m2_C1_public.prototype, ["f1"]); return m2_C1_public; }()); m2.m2_C1_public = m2_C1_public; @@ -288,6 +304,7 @@ var glo_C1_public = (function () { } glo_C1_public.prototype.f1 = function () { }; + __names(glo_C1_public.prototype, ["f1"]); return glo_C1_public; }()); exports.glo_C1_public = glo_C1_public; diff --git a/tests/baselines/reference/privateAccessInSubclass1.js b/tests/baselines/reference/privateAccessInSubclass1.js index bab68b8d67ea3..674400cefc08f 100644 --- a/tests/baselines/reference/privateAccessInSubclass1.js +++ b/tests/baselines/reference/privateAccessInSubclass1.js @@ -20,6 +20,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -33,5 +47,6 @@ var D = (function (_super) { D.prototype.myMethod = function () { this.options; }; + __names(D.prototype, ["myMethod"]); return D; }(Base)); diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js b/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js index 1a4ac4b167975..f0405b6e0fd89 100644 --- a/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js @@ -33,6 +33,20 @@ class C2 { //// [privateClassPropertyAccessibleWithinClass.js] // no errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -51,6 +65,7 @@ var C = (function () { }); C.foo = function () { return this.foo; }; C.bar = function () { this.foo(); }; + __names(C.prototype, ["foo"]); return C; }()); // added level of function nesting @@ -95,5 +110,6 @@ var C2 = (function () { var _this = this; (function () { return _this.foo(); }); }; + __names(C2.prototype, ["foo"]); return C2; }()); diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js index 3bb0a7da3ea37..ef7ca929f7b96 100644 --- a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js @@ -39,6 +39,20 @@ class C { //// [privateClassPropertyAccessibleWithinNestedClass.js] // no errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -77,8 +91,10 @@ var C = (function () { var y3 = y.x; var y4 = y.y; }; + __names(C2.prototype, ["foo"]); return C2; }()); }; + __names(C.prototype, ["foo", "bar"]); return C; }()); diff --git a/tests/baselines/reference/privateInstanceMemberAccessibility.js b/tests/baselines/reference/privateInstanceMemberAccessibility.js index 40b8c886cc007..c596a965c98f6 100644 --- a/tests/baselines/reference/privateInstanceMemberAccessibility.js +++ b/tests/baselines/reference/privateInstanceMemberAccessibility.js @@ -24,6 +24,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -39,5 +53,6 @@ var Derived = (function (_super) { Derived.prototype.y = function () { return _super.prototype.foo; // error }; + __names(Derived.prototype, ["y"]); return Derived; }(Base)); diff --git a/tests/baselines/reference/privateInstanceVisibility.js b/tests/baselines/reference/privateInstanceVisibility.js index 86d9d42623697..f0d0b7781f426 100644 --- a/tests/baselines/reference/privateInstanceVisibility.js +++ b/tests/baselines/reference/privateInstanceVisibility.js @@ -39,6 +39,20 @@ class C { //// [privateInstanceVisibility.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test; (function (Test) { var Example = (function () { @@ -50,6 +64,7 @@ var Test; var num = that.someNumber; } }; + __names(Example.prototype, ["doSomething"]); return Example; }()); Test.Example = Example; @@ -61,5 +76,6 @@ var C = (function () { C.prototype.clone = function (other) { this.x = other.x; }; + __names(C.prototype, ["getX", "clone"]); return C; }()); diff --git a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js index be01293a2cd45..052870699c016 100644 --- a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js +++ b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js @@ -22,6 +22,20 @@ let { priv: a, prot: b, privateMethod: f } = k; // error //// [privateProtectedMembersAreNotAccessibleDestructuring.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -40,6 +54,7 @@ var K = (function () { var _a = this, a = _a.priv, b = _a.prot; // ok var _b = new K(), priv = _b.priv, prot = _b.prot; // ok }; + __names(K.prototype, ["privateMethod", "m"]); return K; }()); var C = (function (_super) { @@ -51,6 +66,7 @@ var C = (function (_super) { var a = this.priv; // error var b = this.prot; // ok }; + __names(C.prototype, ["m2"]); return C; }(K)); var k = new K(); diff --git a/tests/baselines/reference/privateVisibility.js b/tests/baselines/reference/privateVisibility.js index 71227b9e09bb7..c6f6b183e1603 100644 --- a/tests/baselines/reference/privateVisibility.js +++ b/tests/baselines/reference/privateVisibility.js @@ -27,6 +27,20 @@ c.priv; // should not work //// [privateVisibility.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { this.pubProp = 0; @@ -34,6 +48,7 @@ var Foo = (function () { } Foo.prototype.pubMeth = function () { this.privMeth(); }; Foo.prototype.privMeth = function () { }; + __names(Foo.prototype, ["pubMeth", "privMeth"]); return Foo; }()); var f = new Foo(); diff --git a/tests/baselines/reference/privateVisibles.js b/tests/baselines/reference/privateVisibles.js index 4c3736449f10d..3eb2f2a940e08 100644 --- a/tests/baselines/reference/privateVisibles.js +++ b/tests/baselines/reference/privateVisibles.js @@ -10,11 +10,26 @@ class Foo { //// [privateVisibles.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { this.pvar = 0; var n = this.pvar; } Foo.prototype.meth = function () { var q = this.pvar; }; + __names(Foo.prototype, ["meth"]); return Foo; }()); diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js index 5b3941738db13..c8c28c1b17ec9 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js @@ -1,9 +1,24 @@ +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var test; (function (test) { var ClassA = (function () { function ClassA() { } ClassA.prototype.method = function () { }; + __names(ClassA.prototype, ["method"]); return ClassA; }()); test.ClassA = ClassA; diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js index 5b3941738db13..c8c28c1b17ec9 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js @@ -1,9 +1,24 @@ +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var test; (function (test) { var ClassA = (function () { function ClassA() { } ClassA.prototype.method = function () { }; + __names(ClassA.prototype, ["method"]); return ClassA; }()); test.ClassA = ClassA; diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js index 66facecde7f6b..0e02687758eee 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js @@ -1,3 +1,17 @@ +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -13,6 +27,7 @@ define(["require", "exports"], function (require, exports) { RM.prototype.run = function (configuration) { var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server); }; + __names(RM.prototype, ["getName", "getDescription", "run"]); return RM; }()); exports.RM = RM; diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js index 221c232222727..0862e79ba46f9 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js @@ -1,4 +1,18 @@ "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var RM = (function () { function RM() { @@ -12,6 +26,7 @@ var RM = (function () { RM.prototype.run = function (configuration) { var absoluteWorkspacePath = configuration.workspace.toAbsolutePath(configuration.server); }; + __names(RM.prototype, ["getName", "getDescription", "run"]); return RM; }()); exports.RM = RM; diff --git a/tests/baselines/reference/promiseChaining.js b/tests/baselines/reference/promiseChaining.js index afa55acb89457..d6aad37fac584 100644 --- a/tests/baselines/reference/promiseChaining.js +++ b/tests/baselines/reference/promiseChaining.js @@ -12,6 +12,20 @@ class Chain { //// [promiseChaining.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Chain = (function () { function Chain(value) { this.value = value; @@ -22,5 +36,6 @@ var Chain = (function () { var z = this.then(function (x) { return result; }) /*S*/.then(function (x) { return "abc"; }) /*string*/.then(function (x) { return x.length; }) /*number*/; // No error return new Chain(result); }; + __names(Chain.prototype, ["then"]); return Chain; }()); diff --git a/tests/baselines/reference/promiseChaining1.js b/tests/baselines/reference/promiseChaining1.js index ad2ddcf694b02..6c180a9edb8d4 100644 --- a/tests/baselines/reference/promiseChaining1.js +++ b/tests/baselines/reference/promiseChaining1.js @@ -11,6 +11,20 @@ class Chain2 { } //// [promiseChaining1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // same example but with constraints on each type parameter var Chain2 = (function () { function Chain2(value) { @@ -22,5 +36,6 @@ var Chain2 = (function () { var z = this.then(function (x) { return result; }) /*S*/.then(function (x) { return "abc"; }) /*Function*/.then(function (x) { return x.length; }) /*number*/; // Should error on "abc" because it is not a Function return new Chain2(result); }; + __names(Chain2.prototype, ["then"]); return Chain2; }()); diff --git a/tests/baselines/reference/promiseChaining2.js b/tests/baselines/reference/promiseChaining2.js index d9ae5e8099c0f..8abf3ffb592df 100644 --- a/tests/baselines/reference/promiseChaining2.js +++ b/tests/baselines/reference/promiseChaining2.js @@ -11,6 +11,20 @@ class Chain2 { } //// [promiseChaining2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // same example but with constraints on each type parameter var Chain2 = (function () { function Chain2(value) { @@ -22,5 +36,6 @@ var Chain2 = (function () { var z = this.then(function (x) { return result; }).then(function (x) { return "abc"; }).then(function (x) { return x.length; }); return new Chain2(result); }; + __names(Chain2.prototype, ["then"]); return Chain2; }()); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js index 63f91ae4f44c7..f2de7ef0bdc93 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js @@ -37,6 +37,20 @@ var r4 = b.foo(new Date()); //// [propertyAccessOnTypeParameterWithConstraints.js] // generic types should behave as if they have properties of their constraint type // no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -45,6 +59,7 @@ var C = (function () { var a = x['getDate'](); // number return a + x.getDate(); }; + __names(C.prototype, ["f"]); return C; }()); var r = (new C()).f(); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js index 08e1a9ceb1175..906f29b5ef916 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js @@ -83,6 +83,20 @@ var r4 = b.foo(aB, aB); // no inferences for T so constraint isn't satisfied, er //// [propertyAccessOnTypeParameterWithConstraints2.js] // generic types should behave as if they have properties of their constraint type +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -97,6 +111,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return ''; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -107,6 +122,7 @@ var B = (function (_super) { B.prototype.bar = function () { return ''; }; + __names(B.prototype, ["bar"]); return B; }(A)); var C = (function () { @@ -121,6 +137,7 @@ var C = (function () { var a = x['foo'](); // should be string return a + x.foo(); }; + __names(C.prototype, ["f", "g"]); return C; }()); //class C { diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js index 0d94519795739..81adda9a81fce 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js @@ -58,6 +58,20 @@ var r4 = b.foo(new B()); // valid call to an invalid function //// [propertyAccessOnTypeParameterWithConstraints3.js] // generic types should behave as if they have properties of their constraint type +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -72,6 +86,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return ''; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -82,6 +97,7 @@ var B = (function (_super) { B.prototype.bar = function () { return ''; }; + __names(B.prototype, ["bar"]); return B; }(A)); var C = (function () { @@ -98,6 +114,7 @@ var C = (function () { var a = x['foo'](); // should be string return a + x.foo(); }; + __names(C.prototype, ["f", "g"]); return C; }()); var r1a = (new C()).f(); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js index 3c5a87e4d0603..b3ee2cdb202c0 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js @@ -33,6 +33,20 @@ var b = { var r4 = b.foo(new Date()); //// [propertyAccessOnTypeParameterWithConstraints4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -41,6 +55,7 @@ var C = (function () { var a = x['notHere'](); // should be string return a + x.notHere(); }; + __names(C.prototype, ["f"]); return C; }()); var r = (new C()).f(); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js index a7cc39b7f0542..ed11e8ad89cc8 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js @@ -45,6 +45,20 @@ var b = { var r4 = b.foo(new B()); // error after constraints above made illegal, doesn't matter //// [propertyAccessOnTypeParameterWithConstraints5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -59,6 +73,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return ''; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -69,6 +84,7 @@ var B = (function (_super) { B.prototype.bar = function () { return ''; }; + __names(B.prototype, ["bar"]); return B; }(A)); var C = (function () { @@ -79,6 +95,7 @@ var C = (function () { var a = x['foo'](); // should be string return a + x.foo() + x.notHere(); }; + __names(C.prototype, ["f"]); return C; }()); var r = (new C()).f(); diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js index 0e5a1ee7baea4..48b4bb5721c33 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js @@ -32,6 +32,20 @@ var b = { var r4 = b.foo(1); //// [propertyAccessOnTypeParameterWithoutConstraints.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -40,6 +54,7 @@ var C = (function () { var a = x['toString'](); // should be string return a + x.toString(); }; + __names(C.prototype, ["f"]); return C; }()); var r = (new C()).f(); diff --git a/tests/baselines/reference/propertyAndFunctionWithSameName.js b/tests/baselines/reference/propertyAndFunctionWithSameName.js index bb979735172ad..c1be699bfb6fc 100644 --- a/tests/baselines/reference/propertyAndFunctionWithSameName.js +++ b/tests/baselines/reference/propertyAndFunctionWithSameName.js @@ -12,17 +12,33 @@ class D { } //// [propertyAndFunctionWithSameName.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.x = function () { return 1; }; + __names(C.prototype, ["x"]); return C; }()); var D = (function () { function D() { } D.prototype.x = function (v) { }; // error + __names(D.prototype, ["x"]); return D; }()); diff --git a/tests/baselines/reference/propertyOrdering.js b/tests/baselines/reference/propertyOrdering.js index 190117b66f44f..8a04f54c9ed68 100644 --- a/tests/baselines/reference/propertyOrdering.js +++ b/tests/baselines/reference/propertyOrdering.js @@ -24,6 +24,20 @@ class Bar { //// [propertyOrdering.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(store) { this._store = store; // no repro if this is first line in class body @@ -32,6 +46,7 @@ var Foo = (function () { return this._store.length; // shouldn't be an error }; Foo.prototype.bar = function () { return this.store; }; // should be an error + __names(Foo.prototype, ["foo", "bar"]); return Foo; }()); var Bar = (function () { @@ -41,5 +56,6 @@ var Bar = (function () { Bar.prototype.foo = function () { return this._store.length; // shouldn't be an error }; + __names(Bar.prototype, ["foo"]); return Bar; }()); diff --git a/tests/baselines/reference/propertyOrdering2.js b/tests/baselines/reference/propertyOrdering2.js index 783e7c8d00088..333341e6fb5a7 100644 --- a/tests/baselines/reference/propertyOrdering2.js +++ b/tests/baselines/reference/propertyOrdering2.js @@ -9,6 +9,20 @@ class Foo { //// [propertyOrdering2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo(x, y) { this.x = x; @@ -17,5 +31,6 @@ var Foo = (function () { var a = this.x; return this.y; }; + __names(Foo.prototype, ["foo"]); return Foo; }()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js index 85f63e11c68be..ec481e63663b1 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js @@ -33,6 +33,20 @@ class C2 { //// [protectedClassPropertyAccessibleWithinClass.js] // no errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -51,6 +65,7 @@ var C = (function () { }); C.foo = function () { return this.foo; }; C.bar = function () { this.foo(); }; + __names(C.prototype, ["foo"]); return C; }()); // added level of function nesting @@ -95,5 +110,6 @@ var C2 = (function () { var _this = this; (function () { return _this.foo(); }); }; + __names(C2.prototype, ["foo"]); return C2; }()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js index 2bc544e046ed9..59fe80e8d49fb 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js @@ -39,6 +39,20 @@ class C { //// [protectedClassPropertyAccessibleWithinNestedClass.js] // no errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -77,8 +91,10 @@ var C = (function () { var y3 = y.x; var y4 = y.y; }; + __names(C2.prototype, ["foo"]); return C2; }()); }; + __names(C.prototype, ["foo", "bar"]); return C; }()); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js index f15f9a5b669a3..ac96ed53b73e5 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js @@ -48,6 +48,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function () { function B() { } @@ -89,9 +103,11 @@ var C = (function (_super) { var sc3 = C.foo; var sc4 = C.bar; }; + __names(D.prototype, ["foo"]); return D; }()); }; + __names(C.prototype, ["foo", "bar"]); return C; }(B)); var E = (function (_super) { diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js index 8273b7e31bde2..6ae95d3b88fcf 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js @@ -115,6 +115,20 @@ d3.x; // Error, neither within their declaring class nor class d4.x; // Error, neither within their declaring class nor classes derived from their declaring class //// [protectedClassPropertyAccessibleWithinNestedSubclass1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -144,9 +158,11 @@ var Base = (function () { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // OK, accessed within their declaring class }; + __names(A.prototype, ["methoda"]); return A; }()); }; + __names(Base.prototype, ["method"]); return Base; }()); var Derived1 = (function (_super) { @@ -170,9 +186,11 @@ var Derived1 = (function (_super) { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // Error, isn't accessed through an instance of the enclosing class }; + __names(B.prototype, ["method1b"]); return B; }()); }; + __names(Derived1.prototype, ["method1"]); return Derived1; }(Base)); var Derived2 = (function (_super) { @@ -196,9 +214,11 @@ var Derived2 = (function (_super) { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // OK, accessed within a class derived from their declaring class, and through an instance of the enclosing class or one of its subclasses }; + __names(C.prototype, ["method2c"]); return C; }()); }; + __names(Derived2.prototype, ["method2"]); return Derived2; }(Base)); var Derived3 = (function (_super) { @@ -222,9 +242,11 @@ var Derived3 = (function (_super) { d3.x; // OK, accessed within their declaring class d4.x; // Error, isn't accessed through an instance of the enclosing class }; + __names(D.prototype, ["method3d"]); return D; }()); }; + __names(Derived3.prototype, ["method3"]); return Derived3; }(Derived1)); var Derived4 = (function (_super) { @@ -248,9 +270,11 @@ var Derived4 = (function (_super) { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // OK, accessed within a class derived from their declaring class, and through an instance of the enclosing class }; + __names(E.prototype, ["method4e"]); return E; }()); }; + __names(Derived4.prototype, ["method4"]); return Derived4; }(Derived2)); var b; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js index a2d35914cbe3c..f6fcd987c9b58 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js @@ -31,6 +31,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function () { function B() { } @@ -57,5 +71,6 @@ var C = (function (_super) { }); C.foo = function () { return this.x; }; C.bar = function () { this.foo(); }; + __names(C.prototype, ["foo", "bar"]); return C; }(B)); diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js index 7a9ee9f2268fd..257adeee0332b 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js @@ -95,6 +95,20 @@ d3.x; // Error, neither within their declaring class nor class d4.x; // Error, neither within their declaring class nor classes derived from their declaring class //// [protectedClassPropertyAccessibleWithinSubclass2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -120,6 +134,7 @@ var Base = (function () { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // OK, accessed within their declaring class }; + __names(Base.prototype, ["method"]); return Base; }()); var Derived1 = (function (_super) { @@ -139,6 +154,7 @@ var Derived1 = (function (_super) { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // Error, isn't accessed through an instance of the enclosing class }; + __names(Derived1.prototype, ["method1"]); return Derived1; }(Base)); var Derived2 = (function (_super) { @@ -158,6 +174,7 @@ var Derived2 = (function (_super) { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // OK, accessed within a class derived from their declaring class, and through an instance of the enclosing class or one of its subclasses }; + __names(Derived2.prototype, ["method2"]); return Derived2; }(Base)); var Derived3 = (function (_super) { @@ -177,6 +194,7 @@ var Derived3 = (function (_super) { d3.x; // OK, accessed within their declaring class d4.x; // Error, isn't accessed through an instance of the enclosing class }; + __names(Derived3.prototype, ["method3"]); return Derived3; }(Derived1)); var Derived4 = (function (_super) { @@ -196,6 +214,7 @@ var Derived4 = (function (_super) { d3.x; // Error, redefined in a subclass, can only be accessed in the declaring class or one of its subclasses d4.x; // OK, accessed within a class derived from their declaring class, and through an instance of the enclosing class }; + __names(Derived4.prototype, ["method4"]); return Derived4; }(Derived2)); var b; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js index 2b9faf6282ca5..f4399126da30c 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js @@ -14,6 +14,20 @@ class Derived extends Base { } //// [protectedClassPropertyAccessibleWithinSubclass3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -30,6 +44,7 @@ var Base = (function () { Base.prototype.method = function () { this.x; // OK, accessed within their declaring class }; + __names(Base.prototype, ["method"]); return Base; }()); var Derived = (function (_super) { @@ -41,5 +56,6 @@ var Derived = (function (_super) { this.x; // OK, accessed within a subclass of the declaring class _super.prototype.x; // Error, x is not public }; + __names(Derived.prototype, ["method1"]); return Derived; }(Base)); diff --git a/tests/baselines/reference/protectedInstanceMemberAccessibility.js b/tests/baselines/reference/protectedInstanceMemberAccessibility.js index 6617636aa45c0..9a96d5a4d9735 100644 --- a/tests/baselines/reference/protectedInstanceMemberAccessibility.js +++ b/tests/baselines/reference/protectedInstanceMemberAccessibility.js @@ -45,6 +45,20 @@ class C extends A { //// [protectedInstanceMemberAccessibility.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -61,6 +75,7 @@ var A = (function () { A.prototype.f = function () { return "hello"; }; + __names(A.prototype, ["f"]); return A; }()); var B = (function (_super) { @@ -93,6 +108,7 @@ var B = (function (_super) { var c3 = c.y; // error var c4 = c.z; // error }; + __names(B.prototype, ["g"]); return B; }(A)); var C = (function (_super) { diff --git a/tests/baselines/reference/protectedMembers.js b/tests/baselines/reference/protectedMembers.js index 7684ff8e658bd..45e12fe8dc606 100644 --- a/tests/baselines/reference/protectedMembers.js +++ b/tests/baselines/reference/protectedMembers.js @@ -116,6 +116,20 @@ class B3 extends A3 { //// [protectedMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -136,6 +150,7 @@ var C1 = (function () { C1.sf = function () { return this.sx; }; + __names(C1.prototype, ["f"]); return C1; }()); // Derived class accessing protected members @@ -150,6 +165,7 @@ var C2 = (function (_super) { C2.sf = function () { return _super.sf.call(this) + this.sx; }; + __names(C2.prototype, ["f"]); return C2; }(C1)); // Derived class making protected members public @@ -164,6 +180,7 @@ var C3 = (function (_super) { C3.sf = function () { return _super.sf.call(this); }; + __names(C3.prototype, ["f"]); return C3; }(C2)); var c1; diff --git a/tests/baselines/reference/quotedFunctionName1.js b/tests/baselines/reference/quotedFunctionName1.js index f58d154bc7f96..357a64fb3beca 100644 --- a/tests/baselines/reference/quotedFunctionName1.js +++ b/tests/baselines/reference/quotedFunctionName1.js @@ -4,9 +4,24 @@ class Test1 { } //// [quotedFunctionName1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test1 = (function () { function Test1() { } Test1.prototype["prop1"] = function () { }; + __names(Test1.prototype, ["prop1"]); return Test1; }()); diff --git a/tests/baselines/reference/quotedPropertyName3.js b/tests/baselines/reference/quotedPropertyName3.js index 0b837addf2548..91d0345b8f725 100644 --- a/tests/baselines/reference/quotedPropertyName3.js +++ b/tests/baselines/reference/quotedPropertyName3.js @@ -8,6 +8,20 @@ class Test { } //// [quotedPropertyName3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test = (function () { function Test() { } @@ -16,5 +30,6 @@ var Test = (function () { var x = function () { return _this["prop1"]; }; var y = x(); }; + __names(Test.prototype, ["foo"]); return Test; }()); diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters.js b/tests/baselines/reference/readonlyInNonPropertyParameters.js index 658cf1331cdaf..00b9ecc13b662 100644 --- a/tests/baselines/reference/readonlyInNonPropertyParameters.js +++ b/tests/baselines/reference/readonlyInNonPropertyParameters.js @@ -9,6 +9,20 @@ class X { (readonly) => 0; //// [readonlyInNonPropertyParameters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // `readonly` won't work outside of property parameters var X = (function () { function X() { @@ -19,6 +33,7 @@ var X = (function () { enumerable: true, configurable: true }); + __names(X.prototype, ["method"]); return X; }()); (function (x) { return 0; }); diff --git a/tests/baselines/reference/readonlyMembers.js b/tests/baselines/reference/readonlyMembers.js index 7ba4b992f7876..fcca7be8afb53 100644 --- a/tests/baselines/reference/readonlyMembers.js +++ b/tests/baselines/reference/readonlyMembers.js @@ -66,6 +66,20 @@ yy[1] = "abc"; // Error yy["foo"] = "abc"; //// [readonlyMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var x = { a: 0 }; x.a = 1; // Error x.b = 1; // Error @@ -92,6 +106,7 @@ var C = (function () { this.b = 1; // Error this.c = 1; // Error }; + __names(C.prototype, ["foo"]); return C; }()); var o = { diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation1.js b/tests/baselines/reference/recursiveBaseConstructorCreation1.js index c8507944ed751..7ce9933fd17b7 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation1.js +++ b/tests/baselines/reference/recursiveBaseConstructorCreation1.js @@ -7,6 +7,20 @@ var x = new C2(); // Valid //// [recursiveBaseConstructorCreation1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -21,6 +35,7 @@ var C1 = (function () { function C1() { } C1.prototype.func = function (param) { }; + __names(C1.prototype, ["func"]); return C1; }()); var C2 = (function (_super) { diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js b/tests/baselines/reference/recursiveClassReferenceTest.js index 2d44740ac73cd..bd0ceccac9ff9 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.js +++ b/tests/baselines/reference/recursiveClassReferenceTest.js @@ -105,6 +105,20 @@ module Sample.Thing.Languages.PlainText { //// [recursiveClassReferenceTest.js] // Scenario 1: Test reqursive function call with "this" parameter // Scenario 2: Test recursive function call with cast and "this" parameter +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -130,6 +144,7 @@ var Sample; StartFindAction.prototype.run = function (Thing) { return true; }; + __names(StartFindAction.prototype, ["getId", "run"]); return StartFindAction; }()); Find.StartFindAction = StartFindAction; @@ -157,6 +172,7 @@ var Sample; }; FindWidget.prototype.destroy = function () { }; + __names(FindWidget.prototype, ["gar", "getDomNode", "destroy"]); return FindWidget; }()); Widgets.FindWidget = FindWidget; @@ -167,6 +183,7 @@ var AbstractMode = (function () { function AbstractMode() { } AbstractMode.prototype.getInitialState = function () { return null; }; + __names(AbstractMode.prototype, ["getInitialState"]); return AbstractMode; }()); (function (Sample) { @@ -187,6 +204,7 @@ var AbstractMode = (function () { return this === other; }; State.prototype.getMode = function () { return mode; }; + __names(State.prototype, ["clone", "equals", "getMode"]); return State; }()); PlainText.State = State; @@ -199,6 +217,7 @@ var AbstractMode = (function () { Mode.prototype.getInitialState = function () { return new State(self); }; + __names(Mode.prototype, ["getInitialState"]); return Mode; }(AbstractMode)); PlainText.Mode = Mode; diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js.map b/tests/baselines/reference/recursiveClassReferenceTest.js.map index b27f18ddffac6..d3304f769d772 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,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;oBAExB,6BAAG,GAAV,UAAW,KAA6B;wBAEvC,MAAM,CAAC,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,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;oBAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAAA,CAAC,CAAA,CAAC;gBAQlF,+BAAU,GAAjB;oBACC,MAAM,CAAC,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,MAAM,CAAC,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,MAAM,CAAC,IAAI,CAAC;oBACb,CAAC;oBAEM,sBAAM,GAAb,UAAc,KAAY;wBACzB,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC;oBACvB,CAAC;oBAEM,uBAAO,GAAd,cAA0B,MAAM,CAAC,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,MAAM,CAAC,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,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;oBAExB,6BAAG,GAAV,UAAW,KAA6B;wBAEvC,MAAM,CAAC,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,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;oBAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAAA,CAAC,CAAA,CAAC;gBAQlF,+BAAU,GAAjB;oBACC,MAAM,CAAC,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,MAAM,CAAC,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,MAAM,CAAC,IAAI,CAAC;oBACb,CAAC;oBAEM,sBAAM,GAAb,UAAc,KAAY;wBACzB,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC;oBACvB,CAAC;oBAEM,uBAAO,GAAd,cAA0B,MAAM,CAAC,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,MAAM,CAAC,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 4196b08c60984..cb45f627c4365 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt +++ b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt @@ -26,6 +26,20 @@ sourceFile:recursiveClassReferenceTest.ts 1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) 2 >Emitted(2, 75) Source(2, 75) + SourceIndex(0) --- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var __extends = (this && this.__extends) || (function () { >>> var extendStatics = Object.setPrototypeOf || >>> ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -86,10 +100,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(13, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(13, 5) Source(32, 8) + SourceIndex(0) -3 >Emitted(13, 11) Source(32, 14) + SourceIndex(0) -4 >Emitted(13, 12) Source(42, 2) + SourceIndex(0) +1 >Emitted(27, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(27, 5) Source(32, 8) + SourceIndex(0) +3 >Emitted(27, 11) Source(32, 14) + SourceIndex(0) +4 >Emitted(27, 12) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -98,9 +112,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 >module 3 > Sample -1->Emitted(14, 1) Source(32, 1) + SourceIndex(0) -2 >Emitted(14, 12) Source(32, 8) + SourceIndex(0) -3 >Emitted(14, 18) Source(32, 14) + SourceIndex(0) +1->Emitted(28, 1) Source(32, 1) + SourceIndex(0) +2 >Emitted(28, 12) Source(32, 8) + SourceIndex(0) +3 >Emitted(28, 18) Source(32, 14) + SourceIndex(0) --- >>> var Actions; 1 >^^^^ @@ -122,10 +136,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(15, 5) Source(32, 15) + SourceIndex(0) -2 >Emitted(15, 9) Source(32, 15) + SourceIndex(0) -3 >Emitted(15, 16) Source(32, 22) + SourceIndex(0) -4 >Emitted(15, 17) Source(42, 2) + SourceIndex(0) +1 >Emitted(29, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(29, 9) Source(32, 15) + SourceIndex(0) +3 >Emitted(29, 16) Source(32, 22) + SourceIndex(0) +4 >Emitted(29, 17) Source(42, 2) + SourceIndex(0) --- >>> (function (Actions) { 1->^^^^ @@ -134,9 +148,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Actions -1->Emitted(16, 5) Source(32, 15) + SourceIndex(0) -2 >Emitted(16, 16) Source(32, 15) + SourceIndex(0) -3 >Emitted(16, 23) Source(32, 22) + SourceIndex(0) +1->Emitted(30, 5) Source(32, 15) + SourceIndex(0) +2 >Emitted(30, 16) Source(32, 15) + SourceIndex(0) +3 >Emitted(30, 23) Source(32, 22) + SourceIndex(0) --- >>> var Thing; 1 >^^^^^^^^ @@ -158,10 +172,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(17, 9) Source(32, 23) + SourceIndex(0) -2 >Emitted(17, 13) Source(32, 23) + SourceIndex(0) -3 >Emitted(17, 18) Source(32, 28) + SourceIndex(0) -4 >Emitted(17, 19) Source(42, 2) + SourceIndex(0) +1 >Emitted(31, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(31, 13) Source(32, 23) + SourceIndex(0) +3 >Emitted(31, 18) Source(32, 28) + SourceIndex(0) +4 >Emitted(31, 19) Source(42, 2) + SourceIndex(0) --- >>> (function (Thing_1) { 1->^^^^^^^^ @@ -170,9 +184,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(18, 9) Source(32, 23) + SourceIndex(0) -2 >Emitted(18, 20) Source(32, 23) + SourceIndex(0) -3 >Emitted(18, 27) Source(32, 28) + SourceIndex(0) +1->Emitted(32, 9) Source(32, 23) + SourceIndex(0) +2 >Emitted(32, 20) Source(32, 23) + SourceIndex(0) +3 >Emitted(32, 27) Source(32, 28) + SourceIndex(0) --- >>> var Find; 1 >^^^^^^^^^^^^ @@ -194,10 +208,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(19, 13) Source(32, 29) + SourceIndex(0) -2 >Emitted(19, 17) Source(32, 29) + SourceIndex(0) -3 >Emitted(19, 21) Source(32, 33) + SourceIndex(0) -4 >Emitted(19, 22) Source(42, 2) + SourceIndex(0) +1 >Emitted(33, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(33, 17) Source(32, 29) + SourceIndex(0) +3 >Emitted(33, 21) Source(32, 33) + SourceIndex(0) +4 >Emitted(33, 22) Source(42, 2) + SourceIndex(0) --- >>> (function (Find) { 1->^^^^^^^^^^^^ @@ -207,22 +221,22 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Find -1->Emitted(20, 13) Source(32, 29) + SourceIndex(0) -2 >Emitted(20, 24) Source(32, 29) + SourceIndex(0) -3 >Emitted(20, 28) Source(32, 33) + SourceIndex(0) +1->Emitted(34, 13) Source(32, 29) + SourceIndex(0) +2 >Emitted(34, 24) Source(32, 29) + SourceIndex(0) +3 >Emitted(34, 28) Source(32, 33) + SourceIndex(0) --- >>> var StartFindAction = (function () { 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(21, 17) Source(33, 2) + SourceIndex(0) +1->Emitted(35, 17) Source(33, 2) + SourceIndex(0) --- >>> function StartFindAction() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(22, 21) Source(33, 2) + SourceIndex(0) +1->Emitted(36, 21) Source(33, 2) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -238,8 +252,8 @@ sourceFile:recursiveClassReferenceTest.ts > } > 2 > } -1->Emitted(23, 21) Source(41, 2) + SourceIndex(0) -2 >Emitted(23, 22) Source(41, 3) + SourceIndex(0) +1->Emitted(37, 21) Source(41, 2) + SourceIndex(0) +2 >Emitted(37, 22) Source(41, 3) + SourceIndex(0) --- >>> StartFindAction.prototype.getId = function () { return "yo"; }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -262,16 +276,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > ; 9 > 10> } -1->Emitted(24, 21) Source(35, 10) + SourceIndex(0) -2 >Emitted(24, 52) Source(35, 15) + SourceIndex(0) -3 >Emitted(24, 55) Source(35, 3) + SourceIndex(0) -4 >Emitted(24, 69) Source(35, 20) + SourceIndex(0) -5 >Emitted(24, 75) Source(35, 26) + SourceIndex(0) -6 >Emitted(24, 76) Source(35, 27) + SourceIndex(0) -7 >Emitted(24, 80) Source(35, 31) + SourceIndex(0) -8 >Emitted(24, 81) Source(35, 32) + SourceIndex(0) -9 >Emitted(24, 82) Source(35, 33) + SourceIndex(0) -10>Emitted(24, 83) Source(35, 34) + SourceIndex(0) +1->Emitted(38, 21) Source(35, 10) + SourceIndex(0) +2 >Emitted(38, 52) Source(35, 15) + SourceIndex(0) +3 >Emitted(38, 55) Source(35, 3) + SourceIndex(0) +4 >Emitted(38, 69) Source(35, 20) + SourceIndex(0) +5 >Emitted(38, 75) Source(35, 26) + SourceIndex(0) +6 >Emitted(38, 76) Source(35, 27) + SourceIndex(0) +7 >Emitted(38, 80) Source(35, 31) + SourceIndex(0) +8 >Emitted(38, 81) Source(35, 32) + SourceIndex(0) +9 >Emitted(38, 82) Source(35, 33) + SourceIndex(0) +10>Emitted(38, 83) Source(35, 34) + SourceIndex(0) --- >>> StartFindAction.prototype.run = function (Thing) { 1 >^^^^^^^^^^^^^^^^^^^^ @@ -286,11 +300,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > public run( 5 > Thing:Sample.Thing.ICodeThing -1 >Emitted(25, 21) Source(37, 10) + SourceIndex(0) -2 >Emitted(25, 50) Source(37, 13) + SourceIndex(0) -3 >Emitted(25, 53) Source(37, 3) + SourceIndex(0) -4 >Emitted(25, 63) Source(37, 14) + SourceIndex(0) -5 >Emitted(25, 68) Source(37, 43) + SourceIndex(0) +1 >Emitted(39, 21) Source(37, 10) + SourceIndex(0) +2 >Emitted(39, 50) Source(37, 13) + SourceIndex(0) +3 >Emitted(39, 53) Source(37, 3) + SourceIndex(0) +4 >Emitted(39, 63) Source(37, 14) + SourceIndex(0) +5 >Emitted(39, 68) Source(37, 43) + SourceIndex(0) --- >>> return true; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -305,30 +319,31 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > true 5 > ; -1 >Emitted(26, 25) Source(39, 4) + SourceIndex(0) -2 >Emitted(26, 31) Source(39, 10) + SourceIndex(0) -3 >Emitted(26, 32) Source(39, 11) + SourceIndex(0) -4 >Emitted(26, 36) Source(39, 15) + SourceIndex(0) -5 >Emitted(26, 37) Source(39, 16) + SourceIndex(0) +1 >Emitted(40, 25) Source(39, 4) + SourceIndex(0) +2 >Emitted(40, 31) Source(39, 10) + SourceIndex(0) +3 >Emitted(40, 32) Source(39, 11) + SourceIndex(0) +4 >Emitted(40, 36) Source(39, 15) + SourceIndex(0) +5 >Emitted(40, 37) Source(39, 16) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(27, 21) Source(40, 3) + SourceIndex(0) -2 >Emitted(27, 22) Source(40, 4) + SourceIndex(0) +1 >Emitted(41, 21) Source(40, 3) + SourceIndex(0) +2 >Emitted(41, 22) Source(40, 4) + SourceIndex(0) --- +>>> __names(StartFindAction.prototype, ["getId", "run"]); >>> return StartFindAction; 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1-> > 2 > } -1->Emitted(28, 21) Source(41, 2) + SourceIndex(0) -2 >Emitted(28, 43) Source(41, 3) + SourceIndex(0) +1->Emitted(43, 21) Source(41, 2) + SourceIndex(0) +2 >Emitted(43, 43) Source(41, 3) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -348,10 +363,10 @@ sourceFile:recursiveClassReferenceTest.ts > return true; > } > } -1 >Emitted(29, 17) Source(41, 2) + SourceIndex(0) -2 >Emitted(29, 18) Source(41, 3) + SourceIndex(0) -3 >Emitted(29, 18) Source(33, 2) + SourceIndex(0) -4 >Emitted(29, 22) Source(41, 3) + SourceIndex(0) +1 >Emitted(44, 17) Source(41, 2) + SourceIndex(0) +2 >Emitted(44, 18) Source(41, 3) + SourceIndex(0) +3 >Emitted(44, 18) Source(33, 2) + SourceIndex(0) +4 >Emitted(44, 22) Source(41, 3) + SourceIndex(0) --- >>> Find.StartFindAction = StartFindAction; 1->^^^^^^^^^^^^^^^^ @@ -371,10 +386,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > } 4 > -1->Emitted(30, 17) Source(33, 15) + SourceIndex(0) -2 >Emitted(30, 37) Source(33, 30) + SourceIndex(0) -3 >Emitted(30, 55) Source(41, 3) + SourceIndex(0) -4 >Emitted(30, 56) Source(41, 3) + SourceIndex(0) +1->Emitted(45, 17) Source(33, 15) + SourceIndex(0) +2 >Emitted(45, 37) Source(33, 30) + SourceIndex(0) +3 >Emitted(45, 55) Source(41, 3) + SourceIndex(0) +4 >Emitted(45, 56) Source(41, 3) + SourceIndex(0) --- >>> })(Find = Thing_1.Find || (Thing_1.Find = {})); 1->^^^^^^^^^^^^ @@ -406,15 +421,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(31, 13) Source(42, 1) + SourceIndex(0) -2 >Emitted(31, 14) Source(42, 2) + SourceIndex(0) -3 >Emitted(31, 16) Source(32, 29) + SourceIndex(0) -4 >Emitted(31, 20) Source(32, 33) + SourceIndex(0) -5 >Emitted(31, 23) Source(32, 29) + SourceIndex(0) -6 >Emitted(31, 35) Source(32, 33) + SourceIndex(0) -7 >Emitted(31, 40) Source(32, 29) + SourceIndex(0) -8 >Emitted(31, 52) Source(32, 33) + SourceIndex(0) -9 >Emitted(31, 60) Source(42, 2) + SourceIndex(0) +1->Emitted(46, 13) Source(42, 1) + SourceIndex(0) +2 >Emitted(46, 14) Source(42, 2) + SourceIndex(0) +3 >Emitted(46, 16) Source(32, 29) + SourceIndex(0) +4 >Emitted(46, 20) Source(32, 33) + SourceIndex(0) +5 >Emitted(46, 23) Source(32, 29) + SourceIndex(0) +6 >Emitted(46, 35) Source(32, 33) + SourceIndex(0) +7 >Emitted(46, 40) Source(32, 29) + SourceIndex(0) +8 >Emitted(46, 52) Source(32, 33) + SourceIndex(0) +9 >Emitted(46, 60) Source(42, 2) + SourceIndex(0) --- >>> })(Thing = Actions.Thing || (Actions.Thing = {})); 1 >^^^^^^^^ @@ -446,15 +461,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(32, 9) Source(42, 1) + SourceIndex(0) -2 >Emitted(32, 10) Source(42, 2) + SourceIndex(0) -3 >Emitted(32, 12) Source(32, 23) + SourceIndex(0) -4 >Emitted(32, 17) Source(32, 28) + SourceIndex(0) -5 >Emitted(32, 20) Source(32, 23) + SourceIndex(0) -6 >Emitted(32, 33) Source(32, 28) + SourceIndex(0) -7 >Emitted(32, 38) Source(32, 23) + SourceIndex(0) -8 >Emitted(32, 51) Source(32, 28) + SourceIndex(0) -9 >Emitted(32, 59) Source(42, 2) + SourceIndex(0) +1 >Emitted(47, 9) Source(42, 1) + SourceIndex(0) +2 >Emitted(47, 10) Source(42, 2) + SourceIndex(0) +3 >Emitted(47, 12) Source(32, 23) + SourceIndex(0) +4 >Emitted(47, 17) Source(32, 28) + SourceIndex(0) +5 >Emitted(47, 20) Source(32, 23) + SourceIndex(0) +6 >Emitted(47, 33) Source(32, 28) + SourceIndex(0) +7 >Emitted(47, 38) Source(32, 23) + SourceIndex(0) +8 >Emitted(47, 51) Source(32, 28) + SourceIndex(0) +9 >Emitted(47, 59) Source(42, 2) + SourceIndex(0) --- >>> })(Actions = Sample.Actions || (Sample.Actions = {})); 1->^^^^ @@ -485,15 +500,15 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1->Emitted(33, 5) Source(42, 1) + SourceIndex(0) -2 >Emitted(33, 6) Source(42, 2) + SourceIndex(0) -3 >Emitted(33, 8) Source(32, 15) + SourceIndex(0) -4 >Emitted(33, 15) Source(32, 22) + SourceIndex(0) -5 >Emitted(33, 18) Source(32, 15) + SourceIndex(0) -6 >Emitted(33, 32) Source(32, 22) + SourceIndex(0) -7 >Emitted(33, 37) Source(32, 15) + SourceIndex(0) -8 >Emitted(33, 51) Source(32, 22) + SourceIndex(0) -9 >Emitted(33, 59) Source(42, 2) + SourceIndex(0) +1->Emitted(48, 5) Source(42, 1) + SourceIndex(0) +2 >Emitted(48, 6) Source(42, 2) + SourceIndex(0) +3 >Emitted(48, 8) Source(32, 15) + SourceIndex(0) +4 >Emitted(48, 15) Source(32, 22) + SourceIndex(0) +5 >Emitted(48, 18) Source(32, 15) + SourceIndex(0) +6 >Emitted(48, 32) Source(32, 22) + SourceIndex(0) +7 >Emitted(48, 37) Source(32, 15) + SourceIndex(0) +8 >Emitted(48, 51) Source(32, 22) + SourceIndex(0) +9 >Emitted(48, 59) Source(42, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -520,13 +535,13 @@ sourceFile:recursiveClassReferenceTest.ts > } > } > } -1 >Emitted(34, 1) Source(42, 1) + SourceIndex(0) -2 >Emitted(34, 2) Source(42, 2) + SourceIndex(0) -3 >Emitted(34, 4) Source(32, 8) + SourceIndex(0) -4 >Emitted(34, 10) Source(32, 14) + SourceIndex(0) -5 >Emitted(34, 15) Source(32, 8) + SourceIndex(0) -6 >Emitted(34, 21) Source(32, 14) + SourceIndex(0) -7 >Emitted(34, 29) Source(42, 2) + SourceIndex(0) +1 >Emitted(49, 1) Source(42, 1) + SourceIndex(0) +2 >Emitted(49, 2) Source(42, 2) + SourceIndex(0) +3 >Emitted(49, 4) Source(32, 8) + SourceIndex(0) +4 >Emitted(49, 10) Source(32, 14) + SourceIndex(0) +5 >Emitted(49, 15) Source(32, 8) + SourceIndex(0) +6 >Emitted(49, 21) Source(32, 14) + SourceIndex(0) +7 >Emitted(49, 29) Source(42, 2) + SourceIndex(0) --- >>>(function (Sample) { 1 > @@ -537,9 +552,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 >module 3 > Sample -1 >Emitted(35, 1) Source(44, 1) + SourceIndex(0) -2 >Emitted(35, 12) Source(44, 8) + SourceIndex(0) -3 >Emitted(35, 18) Source(44, 14) + SourceIndex(0) +1 >Emitted(50, 1) Source(44, 1) + SourceIndex(0) +2 >Emitted(50, 12) Source(44, 8) + SourceIndex(0) +3 >Emitted(50, 18) Source(44, 14) + SourceIndex(0) --- >>> var Thing; 1 >^^^^ @@ -571,10 +586,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(36, 5) Source(44, 15) + SourceIndex(0) -2 >Emitted(36, 9) Source(44, 15) + SourceIndex(0) -3 >Emitted(36, 14) Source(44, 20) + SourceIndex(0) -4 >Emitted(36, 15) Source(64, 2) + SourceIndex(0) +1 >Emitted(51, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(51, 9) Source(44, 15) + SourceIndex(0) +3 >Emitted(51, 14) Source(44, 20) + SourceIndex(0) +4 >Emitted(51, 15) Source(64, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -584,9 +599,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(37, 5) Source(44, 15) + SourceIndex(0) -2 >Emitted(37, 16) Source(44, 15) + SourceIndex(0) -3 >Emitted(37, 21) Source(44, 20) + SourceIndex(0) +1->Emitted(52, 5) Source(44, 15) + SourceIndex(0) +2 >Emitted(52, 16) Source(44, 15) + SourceIndex(0) +3 >Emitted(52, 21) Source(44, 20) + SourceIndex(0) --- >>> var Widgets; 1->^^^^^^^^ @@ -618,10 +633,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(38, 9) Source(44, 21) + SourceIndex(0) -2 >Emitted(38, 13) Source(44, 21) + SourceIndex(0) -3 >Emitted(38, 20) Source(44, 28) + SourceIndex(0) -4 >Emitted(38, 21) Source(64, 2) + SourceIndex(0) +1->Emitted(53, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(53, 13) Source(44, 21) + SourceIndex(0) +3 >Emitted(53, 20) Source(44, 28) + SourceIndex(0) +4 >Emitted(53, 21) Source(64, 2) + SourceIndex(0) --- >>> (function (Widgets) { 1->^^^^^^^^ @@ -631,16 +646,16 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Widgets -1->Emitted(39, 9) Source(44, 21) + SourceIndex(0) -2 >Emitted(39, 20) Source(44, 21) + SourceIndex(0) -3 >Emitted(39, 27) Source(44, 28) + SourceIndex(0) +1->Emitted(54, 9) Source(44, 21) + SourceIndex(0) +2 >Emitted(54, 20) Source(44, 21) + SourceIndex(0) +3 >Emitted(54, 27) Source(44, 28) + SourceIndex(0) --- >>> var FindWidget = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(40, 13) Source(45, 2) + SourceIndex(0) +1->Emitted(55, 13) Source(45, 2) + SourceIndex(0) --- >>> function FindWidget(codeThing) { 1->^^^^^^^^^^^^^^^^ @@ -655,9 +670,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > constructor(private 3 > codeThing: Sample.Thing.ICodeThing -1->Emitted(41, 17) Source(50, 3) + SourceIndex(0) -2 >Emitted(41, 37) Source(50, 23) + SourceIndex(0) -3 >Emitted(41, 46) Source(50, 57) + SourceIndex(0) +1->Emitted(56, 17) Source(50, 3) + SourceIndex(0) +2 >Emitted(56, 37) Source(50, 23) + SourceIndex(0) +3 >Emitted(56, 46) Source(50, 57) + SourceIndex(0) --- >>> this.codeThing = codeThing; 1->^^^^^^^^^^^^^^^^^^^^ @@ -670,11 +685,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > codeThing 5 > : Sample.Thing.ICodeThing -1->Emitted(42, 21) Source(50, 23) + SourceIndex(0) -2 >Emitted(42, 35) Source(50, 32) + SourceIndex(0) -3 >Emitted(42, 38) Source(50, 23) + SourceIndex(0) -4 >Emitted(42, 47) Source(50, 32) + SourceIndex(0) -5 >Emitted(42, 48) Source(50, 57) + SourceIndex(0) +1->Emitted(57, 21) Source(50, 23) + SourceIndex(0) +2 >Emitted(57, 35) Source(50, 32) + SourceIndex(0) +3 >Emitted(57, 38) Source(50, 23) + SourceIndex(0) +4 >Emitted(57, 47) Source(50, 32) + SourceIndex(0) +5 >Emitted(57, 48) Source(50, 57) + SourceIndex(0) --- >>> this.domNode = null; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -687,11 +702,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > :any = 4 > null 5 > ; -1 >Emitted(43, 21) Source(49, 11) + SourceIndex(0) -2 >Emitted(43, 33) Source(49, 18) + SourceIndex(0) -3 >Emitted(43, 36) Source(49, 25) + SourceIndex(0) -4 >Emitted(43, 40) Source(49, 29) + SourceIndex(0) -5 >Emitted(43, 41) Source(49, 30) + SourceIndex(0) +1 >Emitted(58, 21) Source(49, 11) + SourceIndex(0) +2 >Emitted(58, 33) Source(49, 18) + SourceIndex(0) +3 >Emitted(58, 36) Source(49, 25) + SourceIndex(0) +4 >Emitted(58, 40) Source(49, 29) + SourceIndex(0) +5 >Emitted(58, 41) Source(49, 30) + SourceIndex(0) --- >>> // scenario 1 1 >^^^^^^^^^^^^^^^^^^^^ @@ -701,8 +716,8 @@ sourceFile:recursiveClassReferenceTest.ts > constructor(private codeThing: Sample.Thing.ICodeThing) { > 2 > // scenario 1 -1 >Emitted(44, 21) Source(51, 7) + SourceIndex(0) -2 >Emitted(44, 34) Source(51, 20) + SourceIndex(0) +1 >Emitted(59, 21) Source(51, 7) + SourceIndex(0) +2 >Emitted(59, 34) Source(51, 20) + SourceIndex(0) --- >>> codeThing.addWidget("addWidget", this); 1->^^^^^^^^^^^^^^^^^^^^ @@ -726,16 +741,16 @@ sourceFile:recursiveClassReferenceTest.ts 8 > this 9 > ) 10> ; -1->Emitted(45, 21) Source(52, 7) + SourceIndex(0) -2 >Emitted(45, 30) Source(52, 16) + SourceIndex(0) -3 >Emitted(45, 31) Source(52, 17) + SourceIndex(0) -4 >Emitted(45, 40) Source(52, 26) + SourceIndex(0) -5 >Emitted(45, 41) Source(52, 27) + SourceIndex(0) -6 >Emitted(45, 52) Source(52, 38) + SourceIndex(0) -7 >Emitted(45, 54) Source(52, 40) + SourceIndex(0) -8 >Emitted(45, 58) Source(52, 44) + SourceIndex(0) -9 >Emitted(45, 59) Source(52, 45) + SourceIndex(0) -10>Emitted(45, 60) Source(52, 46) + SourceIndex(0) +1->Emitted(60, 21) Source(52, 7) + SourceIndex(0) +2 >Emitted(60, 30) Source(52, 16) + SourceIndex(0) +3 >Emitted(60, 31) Source(52, 17) + SourceIndex(0) +4 >Emitted(60, 40) Source(52, 26) + SourceIndex(0) +5 >Emitted(60, 41) Source(52, 27) + SourceIndex(0) +6 >Emitted(60, 52) Source(52, 38) + SourceIndex(0) +7 >Emitted(60, 54) Source(52, 40) + SourceIndex(0) +8 >Emitted(60, 58) Source(52, 44) + SourceIndex(0) +9 >Emitted(60, 59) Source(52, 45) + SourceIndex(0) +10>Emitted(60, 60) Source(52, 46) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -744,8 +759,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(46, 17) Source(53, 3) + SourceIndex(0) -2 >Emitted(46, 18) Source(53, 4) + SourceIndex(0) +1 >Emitted(61, 17) Source(53, 3) + SourceIndex(0) +2 >Emitted(61, 18) Source(53, 4) + SourceIndex(0) --- >>> FindWidget.prototype.gar = function (runner) { if (true) { 1->^^^^^^^^^^^^^^^^ @@ -774,19 +789,19 @@ sourceFile:recursiveClassReferenceTest.ts 11> ) 12> 13> { -1->Emitted(47, 17) Source(47, 10) + SourceIndex(0) -2 >Emitted(47, 41) Source(47, 13) + SourceIndex(0) -3 >Emitted(47, 44) Source(47, 3) + SourceIndex(0) -4 >Emitted(47, 54) Source(47, 14) + SourceIndex(0) -5 >Emitted(47, 60) Source(47, 55) + SourceIndex(0) -6 >Emitted(47, 64) Source(47, 59) + SourceIndex(0) -7 >Emitted(47, 66) Source(47, 61) + SourceIndex(0) -8 >Emitted(47, 67) Source(47, 62) + SourceIndex(0) -9 >Emitted(47, 68) Source(47, 63) + SourceIndex(0) -10>Emitted(47, 72) Source(47, 67) + SourceIndex(0) -11>Emitted(47, 73) Source(47, 68) + SourceIndex(0) -12>Emitted(47, 74) Source(47, 69) + SourceIndex(0) -13>Emitted(47, 75) Source(47, 70) + SourceIndex(0) +1->Emitted(62, 17) Source(47, 10) + SourceIndex(0) +2 >Emitted(62, 41) Source(47, 13) + SourceIndex(0) +3 >Emitted(62, 44) Source(47, 3) + SourceIndex(0) +4 >Emitted(62, 54) Source(47, 14) + SourceIndex(0) +5 >Emitted(62, 60) Source(47, 55) + SourceIndex(0) +6 >Emitted(62, 64) Source(47, 59) + SourceIndex(0) +7 >Emitted(62, 66) Source(47, 61) + SourceIndex(0) +8 >Emitted(62, 67) Source(47, 62) + SourceIndex(0) +9 >Emitted(62, 68) Source(47, 63) + SourceIndex(0) +10>Emitted(62, 72) Source(47, 67) + SourceIndex(0) +11>Emitted(62, 73) Source(47, 68) + SourceIndex(0) +12>Emitted(62, 74) Source(47, 69) + SourceIndex(0) +13>Emitted(62, 75) Source(47, 70) + SourceIndex(0) --- >>> return runner(this); 1 >^^^^^^^^^^^^^^^^^^^^ @@ -805,14 +820,14 @@ sourceFile:recursiveClassReferenceTest.ts 6 > this 7 > ) 8 > ; -1 >Emitted(48, 21) Source(47, 70) + SourceIndex(0) -2 >Emitted(48, 27) Source(47, 76) + SourceIndex(0) -3 >Emitted(48, 28) Source(47, 77) + SourceIndex(0) -4 >Emitted(48, 34) Source(47, 83) + SourceIndex(0) -5 >Emitted(48, 35) Source(47, 84) + SourceIndex(0) -6 >Emitted(48, 39) Source(47, 88) + SourceIndex(0) -7 >Emitted(48, 40) Source(47, 89) + SourceIndex(0) -8 >Emitted(48, 41) Source(47, 90) + SourceIndex(0) +1 >Emitted(63, 21) Source(47, 70) + SourceIndex(0) +2 >Emitted(63, 27) Source(47, 76) + SourceIndex(0) +3 >Emitted(63, 28) Source(47, 77) + SourceIndex(0) +4 >Emitted(63, 34) Source(47, 83) + SourceIndex(0) +5 >Emitted(63, 35) Source(47, 84) + SourceIndex(0) +6 >Emitted(63, 39) Source(47, 88) + SourceIndex(0) +7 >Emitted(63, 40) Source(47, 89) + SourceIndex(0) +8 >Emitted(63, 41) Source(47, 90) + SourceIndex(0) --- >>> } }; 1 >^^^^^^^^^^^^^^^^ @@ -824,10 +839,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 > } 3 > 4 > } -1 >Emitted(49, 17) Source(47, 90) + SourceIndex(0) -2 >Emitted(49, 18) Source(47, 91) + SourceIndex(0) -3 >Emitted(49, 19) Source(47, 91) + SourceIndex(0) -4 >Emitted(49, 20) Source(47, 92) + SourceIndex(0) +1 >Emitted(64, 17) Source(47, 90) + SourceIndex(0) +2 >Emitted(64, 18) Source(47, 91) + SourceIndex(0) +3 >Emitted(64, 19) Source(47, 91) + SourceIndex(0) +4 >Emitted(64, 20) Source(47, 92) + SourceIndex(0) --- >>> FindWidget.prototype.getDomNode = function () { 1->^^^^^^^^^^^^^^^^ @@ -844,9 +859,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getDomNode 3 > -1->Emitted(50, 17) Source(55, 10) + SourceIndex(0) -2 >Emitted(50, 48) Source(55, 20) + SourceIndex(0) -3 >Emitted(50, 51) Source(55, 3) + SourceIndex(0) +1->Emitted(65, 17) Source(55, 10) + SourceIndex(0) +2 >Emitted(65, 48) Source(55, 20) + SourceIndex(0) +3 >Emitted(65, 51) Source(55, 3) + SourceIndex(0) --- >>> return domNode; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -860,11 +875,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > domNode 5 > ; -1 >Emitted(51, 21) Source(56, 4) + SourceIndex(0) -2 >Emitted(51, 27) Source(56, 10) + SourceIndex(0) -3 >Emitted(51, 28) Source(56, 11) + SourceIndex(0) -4 >Emitted(51, 35) Source(56, 18) + SourceIndex(0) -5 >Emitted(51, 36) Source(56, 19) + SourceIndex(0) +1 >Emitted(66, 21) Source(56, 4) + SourceIndex(0) +2 >Emitted(66, 27) Source(56, 10) + SourceIndex(0) +3 >Emitted(66, 28) Source(56, 11) + SourceIndex(0) +4 >Emitted(66, 35) Source(56, 18) + SourceIndex(0) +5 >Emitted(66, 36) Source(56, 19) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^ @@ -873,8 +888,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(52, 17) Source(57, 3) + SourceIndex(0) -2 >Emitted(52, 18) Source(57, 4) + SourceIndex(0) +1 >Emitted(67, 17) Source(57, 3) + SourceIndex(0) +2 >Emitted(67, 18) Source(57, 4) + SourceIndex(0) --- >>> FindWidget.prototype.destroy = function () { 1->^^^^^^^^^^^^^^^^ @@ -885,21 +900,22 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > destroy 3 > -1->Emitted(53, 17) Source(59, 10) + SourceIndex(0) -2 >Emitted(53, 45) Source(59, 17) + SourceIndex(0) -3 >Emitted(53, 48) Source(59, 3) + SourceIndex(0) +1->Emitted(68, 17) Source(59, 10) + SourceIndex(0) +2 >Emitted(68, 45) Source(59, 17) + SourceIndex(0) +3 >Emitted(68, 48) Source(59, 3) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >public destroy() { > > 2 > } -1 >Emitted(54, 17) Source(61, 3) + SourceIndex(0) -2 >Emitted(54, 18) Source(61, 4) + SourceIndex(0) +1 >Emitted(69, 17) Source(61, 3) + SourceIndex(0) +2 >Emitted(69, 18) Source(61, 4) + SourceIndex(0) --- +>>> __names(FindWidget.prototype, ["gar", "getDomNode", "destroy"]); >>> return FindWidget; 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^ @@ -907,8 +923,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(55, 17) Source(63, 2) + SourceIndex(0) -2 >Emitted(55, 34) Source(63, 3) + SourceIndex(0) +1->Emitted(71, 17) Source(63, 2) + SourceIndex(0) +2 >Emitted(71, 34) Source(63, 3) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -938,10 +954,10 @@ sourceFile:recursiveClassReferenceTest.ts > } > > } -1 >Emitted(56, 13) Source(63, 2) + SourceIndex(0) -2 >Emitted(56, 14) Source(63, 3) + SourceIndex(0) -3 >Emitted(56, 14) Source(45, 2) + SourceIndex(0) -4 >Emitted(56, 18) Source(63, 3) + SourceIndex(0) +1 >Emitted(72, 13) Source(63, 2) + SourceIndex(0) +2 >Emitted(72, 14) Source(63, 3) + SourceIndex(0) +3 >Emitted(72, 14) Source(45, 2) + SourceIndex(0) +4 >Emitted(72, 18) Source(63, 3) + SourceIndex(0) --- >>> Widgets.FindWidget = FindWidget; 1->^^^^^^^^^^^^ @@ -971,10 +987,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } 4 > -1->Emitted(57, 13) Source(45, 15) + SourceIndex(0) -2 >Emitted(57, 31) Source(45, 25) + SourceIndex(0) -3 >Emitted(57, 44) Source(63, 3) + SourceIndex(0) -4 >Emitted(57, 45) Source(63, 3) + SourceIndex(0) +1->Emitted(73, 13) Source(45, 15) + SourceIndex(0) +2 >Emitted(73, 31) Source(45, 25) + SourceIndex(0) +3 >Emitted(73, 44) Source(63, 3) + SourceIndex(0) +4 >Emitted(73, 45) Source(63, 3) + SourceIndex(0) --- >>> })(Widgets = Thing.Widgets || (Thing.Widgets = {})); 1->^^^^^^^^ @@ -1016,15 +1032,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(58, 9) Source(64, 1) + SourceIndex(0) -2 >Emitted(58, 10) Source(64, 2) + SourceIndex(0) -3 >Emitted(58, 12) Source(44, 21) + SourceIndex(0) -4 >Emitted(58, 19) Source(44, 28) + SourceIndex(0) -5 >Emitted(58, 22) Source(44, 21) + SourceIndex(0) -6 >Emitted(58, 35) Source(44, 28) + SourceIndex(0) -7 >Emitted(58, 40) Source(44, 21) + SourceIndex(0) -8 >Emitted(58, 53) Source(44, 28) + SourceIndex(0) -9 >Emitted(58, 61) Source(64, 2) + SourceIndex(0) +1->Emitted(74, 9) Source(64, 1) + SourceIndex(0) +2 >Emitted(74, 10) Source(64, 2) + SourceIndex(0) +3 >Emitted(74, 12) Source(44, 21) + SourceIndex(0) +4 >Emitted(74, 19) Source(44, 28) + SourceIndex(0) +5 >Emitted(74, 22) Source(44, 21) + SourceIndex(0) +6 >Emitted(74, 35) Source(44, 28) + SourceIndex(0) +7 >Emitted(74, 40) Source(44, 21) + SourceIndex(0) +8 >Emitted(74, 53) Source(44, 28) + SourceIndex(0) +9 >Emitted(74, 61) Source(64, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -1065,15 +1081,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(59, 5) Source(64, 1) + SourceIndex(0) -2 >Emitted(59, 6) Source(64, 2) + SourceIndex(0) -3 >Emitted(59, 8) Source(44, 15) + SourceIndex(0) -4 >Emitted(59, 13) Source(44, 20) + SourceIndex(0) -5 >Emitted(59, 16) Source(44, 15) + SourceIndex(0) -6 >Emitted(59, 28) Source(44, 20) + SourceIndex(0) -7 >Emitted(59, 33) Source(44, 15) + SourceIndex(0) -8 >Emitted(59, 45) Source(44, 20) + SourceIndex(0) -9 >Emitted(59, 53) Source(64, 2) + SourceIndex(0) +1 >Emitted(75, 5) Source(64, 1) + SourceIndex(0) +2 >Emitted(75, 6) Source(64, 2) + SourceIndex(0) +3 >Emitted(75, 8) Source(44, 15) + SourceIndex(0) +4 >Emitted(75, 13) Source(44, 20) + SourceIndex(0) +5 >Emitted(75, 16) Source(44, 15) + SourceIndex(0) +6 >Emitted(75, 28) Source(44, 20) + SourceIndex(0) +7 >Emitted(75, 33) Source(44, 15) + SourceIndex(0) +8 >Emitted(75, 45) Source(44, 20) + SourceIndex(0) +9 >Emitted(75, 53) Source(64, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -1111,13 +1127,13 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(60, 1) Source(64, 1) + SourceIndex(0) -2 >Emitted(60, 2) Source(64, 2) + SourceIndex(0) -3 >Emitted(60, 4) Source(44, 8) + SourceIndex(0) -4 >Emitted(60, 10) Source(44, 14) + SourceIndex(0) -5 >Emitted(60, 15) Source(44, 8) + SourceIndex(0) -6 >Emitted(60, 21) Source(44, 14) + SourceIndex(0) -7 >Emitted(60, 29) Source(64, 2) + SourceIndex(0) +1 >Emitted(76, 1) Source(64, 1) + SourceIndex(0) +2 >Emitted(76, 2) Source(64, 2) + SourceIndex(0) +3 >Emitted(76, 4) Source(44, 8) + SourceIndex(0) +4 >Emitted(76, 10) Source(44, 14) + SourceIndex(0) +5 >Emitted(76, 15) Source(44, 8) + SourceIndex(0) +6 >Emitted(76, 21) Source(44, 14) + SourceIndex(0) +7 >Emitted(76, 29) Source(64, 2) + SourceIndex(0) --- >>>var AbstractMode = (function () { 1-> @@ -1126,13 +1142,13 @@ sourceFile:recursiveClassReferenceTest.ts > >interface IMode { getInitialState(): IState;} > -1->Emitted(61, 1) Source(67, 1) + SourceIndex(0) +1->Emitted(77, 1) Source(67, 1) + SourceIndex(0) --- >>> function AbstractMode() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(62, 5) Source(67, 1) + SourceIndex(0) +1->Emitted(78, 5) Source(67, 1) + SourceIndex(0) --- >>> } 1->^^^^ @@ -1140,8 +1156,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->class AbstractMode implements IMode { public getInitialState(): IState { return null;} 2 > } -1->Emitted(63, 5) Source(67, 88) + SourceIndex(0) -2 >Emitted(63, 6) Source(67, 89) + SourceIndex(0) +1->Emitted(79, 5) Source(67, 88) + SourceIndex(0) +2 >Emitted(79, 6) Source(67, 89) + SourceIndex(0) --- >>> AbstractMode.prototype.getInitialState = function () { return null; }; 1->^^^^ @@ -1164,24 +1180,25 @@ sourceFile:recursiveClassReferenceTest.ts 8 > ; 9 > 10> } -1->Emitted(64, 5) Source(67, 46) + SourceIndex(0) -2 >Emitted(64, 43) Source(67, 61) + SourceIndex(0) -3 >Emitted(64, 46) Source(67, 39) + SourceIndex(0) -4 >Emitted(64, 60) Source(67, 74) + SourceIndex(0) -5 >Emitted(64, 66) Source(67, 80) + SourceIndex(0) -6 >Emitted(64, 67) Source(67, 81) + SourceIndex(0) -7 >Emitted(64, 71) Source(67, 85) + SourceIndex(0) -8 >Emitted(64, 72) Source(67, 86) + SourceIndex(0) -9 >Emitted(64, 73) Source(67, 86) + SourceIndex(0) -10>Emitted(64, 74) Source(67, 87) + SourceIndex(0) ---- +1->Emitted(80, 5) Source(67, 46) + SourceIndex(0) +2 >Emitted(80, 43) Source(67, 61) + SourceIndex(0) +3 >Emitted(80, 46) Source(67, 39) + SourceIndex(0) +4 >Emitted(80, 60) Source(67, 74) + SourceIndex(0) +5 >Emitted(80, 66) Source(67, 80) + SourceIndex(0) +6 >Emitted(80, 67) Source(67, 81) + SourceIndex(0) +7 >Emitted(80, 71) Source(67, 85) + SourceIndex(0) +8 >Emitted(80, 72) Source(67, 86) + SourceIndex(0) +9 >Emitted(80, 73) Source(67, 86) + SourceIndex(0) +10>Emitted(80, 74) Source(67, 87) + SourceIndex(0) +--- +>>> __names(AbstractMode.prototype, ["getInitialState"]); >>> return AbstractMode; 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(65, 5) Source(67, 88) + SourceIndex(0) -2 >Emitted(65, 24) Source(67, 89) + SourceIndex(0) +1 >Emitted(82, 5) Source(67, 88) + SourceIndex(0) +2 >Emitted(82, 24) Source(67, 89) + SourceIndex(0) --- >>>}()); 1 > @@ -1193,10 +1210,10 @@ sourceFile:recursiveClassReferenceTest.ts 2 >} 3 > 4 > class AbstractMode implements IMode { public getInitialState(): IState { return null;} } -1 >Emitted(66, 1) Source(67, 88) + SourceIndex(0) -2 >Emitted(66, 2) Source(67, 89) + SourceIndex(0) -3 >Emitted(66, 2) Source(67, 1) + SourceIndex(0) -4 >Emitted(66, 6) Source(67, 89) + SourceIndex(0) +1 >Emitted(83, 1) Source(67, 88) + SourceIndex(0) +2 >Emitted(83, 2) Source(67, 89) + SourceIndex(0) +3 >Emitted(83, 2) Source(67, 1) + SourceIndex(0) +4 >Emitted(83, 6) Source(67, 89) + SourceIndex(0) --- >>>(function (Sample) { 1-> @@ -1214,9 +1231,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 >module 3 > Sample -1->Emitted(67, 1) Source(76, 1) + SourceIndex(0) -2 >Emitted(67, 12) Source(76, 8) + SourceIndex(0) -3 >Emitted(67, 18) Source(76, 14) + SourceIndex(0) +1->Emitted(84, 1) Source(76, 1) + SourceIndex(0) +2 >Emitted(84, 12) Source(76, 8) + SourceIndex(0) +3 >Emitted(84, 18) Source(76, 14) + SourceIndex(0) --- >>> var Thing; 1 >^^^^ @@ -1252,10 +1269,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(68, 5) Source(76, 15) + SourceIndex(0) -2 >Emitted(68, 9) Source(76, 15) + SourceIndex(0) -3 >Emitted(68, 14) Source(76, 20) + SourceIndex(0) -4 >Emitted(68, 15) Source(100, 2) + SourceIndex(0) +1 >Emitted(85, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(85, 9) Source(76, 15) + SourceIndex(0) +3 >Emitted(85, 14) Source(76, 20) + SourceIndex(0) +4 >Emitted(85, 15) Source(100, 2) + SourceIndex(0) --- >>> (function (Thing) { 1->^^^^ @@ -1265,9 +1282,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Thing -1->Emitted(69, 5) Source(76, 15) + SourceIndex(0) -2 >Emitted(69, 16) Source(76, 15) + SourceIndex(0) -3 >Emitted(69, 21) Source(76, 20) + SourceIndex(0) +1->Emitted(86, 5) Source(76, 15) + SourceIndex(0) +2 >Emitted(86, 16) Source(76, 15) + SourceIndex(0) +3 >Emitted(86, 21) Source(76, 20) + SourceIndex(0) --- >>> var Languages; 1->^^^^^^^^ @@ -1303,10 +1320,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(70, 9) Source(76, 21) + SourceIndex(0) -2 >Emitted(70, 13) Source(76, 21) + SourceIndex(0) -3 >Emitted(70, 22) Source(76, 30) + SourceIndex(0) -4 >Emitted(70, 23) Source(100, 2) + SourceIndex(0) +1->Emitted(87, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(87, 13) Source(76, 21) + SourceIndex(0) +3 >Emitted(87, 22) Source(76, 30) + SourceIndex(0) +4 >Emitted(87, 23) Source(100, 2) + SourceIndex(0) --- >>> (function (Languages) { 1->^^^^^^^^ @@ -1315,9 +1332,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > Languages -1->Emitted(71, 9) Source(76, 21) + SourceIndex(0) -2 >Emitted(71, 20) Source(76, 21) + SourceIndex(0) -3 >Emitted(71, 29) Source(76, 30) + SourceIndex(0) +1->Emitted(88, 9) Source(76, 21) + SourceIndex(0) +2 >Emitted(88, 20) Source(76, 21) + SourceIndex(0) +3 >Emitted(88, 29) Source(76, 30) + SourceIndex(0) --- >>> var PlainText; 1 >^^^^^^^^^^^^ @@ -1353,10 +1370,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(72, 13) Source(76, 31) + SourceIndex(0) -2 >Emitted(72, 17) Source(76, 31) + SourceIndex(0) -3 >Emitted(72, 26) Source(76, 40) + SourceIndex(0) -4 >Emitted(72, 27) Source(100, 2) + SourceIndex(0) +1 >Emitted(89, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(89, 17) Source(76, 31) + SourceIndex(0) +3 >Emitted(89, 26) Source(76, 40) + SourceIndex(0) +4 >Emitted(89, 27) Source(100, 2) + SourceIndex(0) --- >>> (function (PlainText) { 1->^^^^^^^^^^^^ @@ -1366,9 +1383,9 @@ sourceFile:recursiveClassReferenceTest.ts 1-> 2 > 3 > PlainText -1->Emitted(73, 13) Source(76, 31) + SourceIndex(0) -2 >Emitted(73, 24) Source(76, 31) + SourceIndex(0) -3 >Emitted(73, 33) Source(76, 40) + SourceIndex(0) +1->Emitted(90, 13) Source(76, 31) + SourceIndex(0) +2 >Emitted(90, 24) Source(76, 31) + SourceIndex(0) +3 >Emitted(90, 33) Source(76, 40) + SourceIndex(0) --- >>> var State = (function () { 1->^^^^^^^^^^^^^^^^ @@ -1376,7 +1393,7 @@ sourceFile:recursiveClassReferenceTest.ts 1-> { > > -1->Emitted(74, 17) Source(78, 2) + SourceIndex(0) +1->Emitted(91, 17) Source(78, 2) + SourceIndex(0) --- >>> function State(mode) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1387,9 +1404,9 @@ sourceFile:recursiveClassReferenceTest.ts > 2 > constructor(private 3 > mode: IMode -1->Emitted(75, 21) Source(79, 9) + SourceIndex(0) -2 >Emitted(75, 36) Source(79, 29) + SourceIndex(0) -3 >Emitted(75, 40) Source(79, 40) + SourceIndex(0) +1->Emitted(92, 21) Source(79, 9) + SourceIndex(0) +2 >Emitted(92, 36) Source(79, 29) + SourceIndex(0) +3 >Emitted(92, 40) Source(79, 40) + SourceIndex(0) --- >>> this.mode = mode; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1402,11 +1419,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > mode 5 > : IMode -1->Emitted(76, 25) Source(79, 29) + SourceIndex(0) -2 >Emitted(76, 34) Source(79, 33) + SourceIndex(0) -3 >Emitted(76, 37) Source(79, 29) + SourceIndex(0) -4 >Emitted(76, 41) Source(79, 33) + SourceIndex(0) -5 >Emitted(76, 42) Source(79, 40) + SourceIndex(0) +1->Emitted(93, 25) Source(79, 29) + SourceIndex(0) +2 >Emitted(93, 34) Source(79, 33) + SourceIndex(0) +3 >Emitted(93, 37) Source(79, 29) + SourceIndex(0) +4 >Emitted(93, 41) Source(79, 33) + SourceIndex(0) +5 >Emitted(93, 42) Source(79, 40) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1414,8 +1431,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 > } -1 >Emitted(77, 21) Source(79, 44) + SourceIndex(0) -2 >Emitted(77, 22) Source(79, 45) + SourceIndex(0) +1 >Emitted(94, 21) Source(79, 44) + SourceIndex(0) +2 >Emitted(94, 22) Source(79, 45) + SourceIndex(0) --- >>> State.prototype.clone = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1425,9 +1442,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > clone 3 > -1->Emitted(78, 21) Source(80, 10) + SourceIndex(0) -2 >Emitted(78, 42) Source(80, 15) + SourceIndex(0) -3 >Emitted(78, 45) Source(80, 3) + SourceIndex(0) +1->Emitted(95, 21) Source(80, 10) + SourceIndex(0) +2 >Emitted(95, 42) Source(80, 15) + SourceIndex(0) +3 >Emitted(95, 45) Source(80, 3) + SourceIndex(0) --- >>> return this; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1441,11 +1458,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > this 5 > ; -1 >Emitted(79, 25) Source(81, 4) + SourceIndex(0) -2 >Emitted(79, 31) Source(81, 10) + SourceIndex(0) -3 >Emitted(79, 32) Source(81, 11) + SourceIndex(0) -4 >Emitted(79, 36) Source(81, 15) + SourceIndex(0) -5 >Emitted(79, 37) Source(81, 16) + SourceIndex(0) +1 >Emitted(96, 25) Source(81, 4) + SourceIndex(0) +2 >Emitted(96, 31) Source(81, 10) + SourceIndex(0) +3 >Emitted(96, 32) Source(81, 11) + SourceIndex(0) +4 >Emitted(96, 36) Source(81, 15) + SourceIndex(0) +5 >Emitted(96, 37) Source(81, 16) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1454,8 +1471,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(80, 21) Source(82, 3) + SourceIndex(0) -2 >Emitted(80, 22) Source(82, 4) + SourceIndex(0) +1 >Emitted(97, 21) Source(82, 3) + SourceIndex(0) +2 >Emitted(97, 22) Source(82, 4) + SourceIndex(0) --- >>> State.prototype.equals = function (other) { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1470,11 +1487,11 @@ sourceFile:recursiveClassReferenceTest.ts 3 > 4 > public equals( 5 > other:IState -1->Emitted(81, 21) Source(84, 10) + SourceIndex(0) -2 >Emitted(81, 43) Source(84, 16) + SourceIndex(0) -3 >Emitted(81, 46) Source(84, 3) + SourceIndex(0) -4 >Emitted(81, 56) Source(84, 17) + SourceIndex(0) -5 >Emitted(81, 61) Source(84, 29) + SourceIndex(0) +1->Emitted(98, 21) Source(84, 10) + SourceIndex(0) +2 >Emitted(98, 43) Source(84, 16) + SourceIndex(0) +3 >Emitted(98, 46) Source(84, 3) + SourceIndex(0) +4 >Emitted(98, 56) Source(84, 17) + SourceIndex(0) +5 >Emitted(98, 61) Source(84, 29) + SourceIndex(0) --- >>> return this === other; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1492,13 +1509,13 @@ sourceFile:recursiveClassReferenceTest.ts 5 > === 6 > other 7 > ; -1 >Emitted(82, 25) Source(85, 4) + SourceIndex(0) -2 >Emitted(82, 31) Source(85, 10) + SourceIndex(0) -3 >Emitted(82, 32) Source(85, 11) + SourceIndex(0) -4 >Emitted(82, 36) Source(85, 15) + SourceIndex(0) -5 >Emitted(82, 41) Source(85, 20) + SourceIndex(0) -6 >Emitted(82, 46) Source(85, 25) + SourceIndex(0) -7 >Emitted(82, 47) Source(85, 26) + SourceIndex(0) +1 >Emitted(99, 25) Source(85, 4) + SourceIndex(0) +2 >Emitted(99, 31) Source(85, 10) + SourceIndex(0) +3 >Emitted(99, 32) Source(85, 11) + SourceIndex(0) +4 >Emitted(99, 36) Source(85, 15) + SourceIndex(0) +5 >Emitted(99, 41) Source(85, 20) + SourceIndex(0) +6 >Emitted(99, 46) Source(85, 25) + SourceIndex(0) +7 >Emitted(99, 47) Source(85, 26) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1507,8 +1524,8 @@ sourceFile:recursiveClassReferenceTest.ts 1 > > 2 > } -1 >Emitted(83, 21) Source(86, 3) + SourceIndex(0) -2 >Emitted(83, 22) Source(86, 4) + SourceIndex(0) +1 >Emitted(100, 21) Source(86, 3) + SourceIndex(0) +2 >Emitted(100, 22) Source(86, 4) + SourceIndex(0) --- >>> State.prototype.getMode = function () { return mode; }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1521,6 +1538,7 @@ sourceFile:recursiveClassReferenceTest.ts 8 > ^ 9 > ^ 10> ^ +11> ^^^^-> 1-> > > public @@ -1533,25 +1551,26 @@ sourceFile:recursiveClassReferenceTest.ts 8 > ; 9 > 10> } -1->Emitted(84, 21) Source(88, 10) + SourceIndex(0) -2 >Emitted(84, 44) Source(88, 17) + SourceIndex(0) -3 >Emitted(84, 47) Source(88, 3) + SourceIndex(0) -4 >Emitted(84, 61) Source(88, 29) + SourceIndex(0) -5 >Emitted(84, 67) Source(88, 35) + SourceIndex(0) -6 >Emitted(84, 68) Source(88, 36) + SourceIndex(0) -7 >Emitted(84, 72) Source(88, 40) + SourceIndex(0) -8 >Emitted(84, 73) Source(88, 41) + SourceIndex(0) -9 >Emitted(84, 74) Source(88, 42) + SourceIndex(0) -10>Emitted(84, 75) Source(88, 43) + SourceIndex(0) ---- +1->Emitted(101, 21) Source(88, 10) + SourceIndex(0) +2 >Emitted(101, 44) Source(88, 17) + SourceIndex(0) +3 >Emitted(101, 47) Source(88, 3) + SourceIndex(0) +4 >Emitted(101, 61) Source(88, 29) + SourceIndex(0) +5 >Emitted(101, 67) Source(88, 35) + SourceIndex(0) +6 >Emitted(101, 68) Source(88, 36) + SourceIndex(0) +7 >Emitted(101, 72) Source(88, 40) + SourceIndex(0) +8 >Emitted(101, 73) Source(88, 41) + SourceIndex(0) +9 >Emitted(101, 74) Source(88, 42) + SourceIndex(0) +10>Emitted(101, 75) Source(88, 43) + SourceIndex(0) +--- +>>> __names(State.prototype, ["clone", "equals", "getMode"]); >>> return State; -1 >^^^^^^^^^^^^^^^^^^^^ +1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^ -1 > +1-> > 2 > } -1 >Emitted(85, 21) Source(89, 2) + SourceIndex(0) -2 >Emitted(85, 33) Source(89, 3) + SourceIndex(0) +1->Emitted(103, 21) Source(89, 2) + SourceIndex(0) +2 >Emitted(103, 33) Source(89, 3) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -1574,10 +1593,10 @@ sourceFile:recursiveClassReferenceTest.ts > > public getMode(): IMode { return mode; } > } -1 >Emitted(86, 17) Source(89, 2) + SourceIndex(0) -2 >Emitted(86, 18) Source(89, 3) + SourceIndex(0) -3 >Emitted(86, 18) Source(78, 2) + SourceIndex(0) -4 >Emitted(86, 22) Source(89, 3) + SourceIndex(0) +1 >Emitted(104, 17) Source(89, 2) + SourceIndex(0) +2 >Emitted(104, 18) Source(89, 3) + SourceIndex(0) +3 >Emitted(104, 18) Source(78, 2) + SourceIndex(0) +4 >Emitted(104, 22) Source(89, 3) + SourceIndex(0) --- >>> PlainText.State = State; 1->^^^^^^^^^^^^^^^^ @@ -1600,10 +1619,10 @@ sourceFile:recursiveClassReferenceTest.ts > public getMode(): IMode { return mode; } > } 4 > -1->Emitted(87, 17) Source(78, 15) + SourceIndex(0) -2 >Emitted(87, 32) Source(78, 20) + SourceIndex(0) -3 >Emitted(87, 40) Source(89, 3) + SourceIndex(0) -4 >Emitted(87, 41) Source(89, 3) + SourceIndex(0) +1->Emitted(105, 17) Source(78, 15) + SourceIndex(0) +2 >Emitted(105, 32) Source(78, 20) + SourceIndex(0) +3 >Emitted(105, 40) Source(89, 3) + SourceIndex(0) +4 >Emitted(105, 41) Source(89, 3) + SourceIndex(0) --- >>> var Mode = (function (_super) { 1->^^^^^^^^^^^^^^^^ @@ -1611,21 +1630,21 @@ sourceFile:recursiveClassReferenceTest.ts 1-> > > -1->Emitted(88, 17) Source(91, 2) + SourceIndex(0) +1->Emitted(106, 17) Source(91, 2) + SourceIndex(0) --- >>> __extends(Mode, _super); 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^ 1->export class Mode extends 2 > AbstractMode -1->Emitted(89, 21) Source(91, 28) + SourceIndex(0) -2 >Emitted(89, 45) Source(91, 40) + SourceIndex(0) +1->Emitted(107, 21) Source(91, 28) + SourceIndex(0) +2 >Emitted(107, 45) Source(91, 40) + SourceIndex(0) --- >>> function Mode() { 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(90, 21) Source(91, 2) + SourceIndex(0) +1 >Emitted(108, 21) Source(91, 2) + SourceIndex(0) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -1642,8 +1661,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(92, 21) Source(99, 2) + SourceIndex(0) -2 >Emitted(92, 22) Source(99, 3) + SourceIndex(0) +1->Emitted(110, 21) Source(99, 2) + SourceIndex(0) +2 >Emitted(110, 22) Source(99, 3) + SourceIndex(0) --- >>> // scenario 2 1->^^^^^^^^^^^^^^^^^^^^ @@ -1651,8 +1670,8 @@ sourceFile:recursiveClassReferenceTest.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> 2 > // scenario 2 -1->Emitted(93, 21) Source(93, 3) + SourceIndex(0) -2 >Emitted(93, 34) Source(93, 16) + SourceIndex(0) +1->Emitted(111, 21) Source(93, 3) + SourceIndex(0) +2 >Emitted(111, 34) Source(93, 16) + SourceIndex(0) --- >>> Mode.prototype.getInitialState = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -1662,9 +1681,9 @@ sourceFile:recursiveClassReferenceTest.ts > public 2 > getInitialState 3 > -1->Emitted(94, 21) Source(94, 10) + SourceIndex(0) -2 >Emitted(94, 51) Source(94, 25) + SourceIndex(0) -3 >Emitted(94, 54) Source(94, 3) + SourceIndex(0) +1->Emitted(112, 21) Source(94, 10) + SourceIndex(0) +2 >Emitted(112, 51) Source(94, 25) + SourceIndex(0) +3 >Emitted(112, 54) Source(94, 3) + SourceIndex(0) --- >>> return new State(self); 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1686,26 +1705,27 @@ sourceFile:recursiveClassReferenceTest.ts 7 > self 8 > ) 9 > ; -1 >Emitted(95, 25) Source(95, 4) + SourceIndex(0) -2 >Emitted(95, 31) Source(95, 10) + SourceIndex(0) -3 >Emitted(95, 32) Source(95, 11) + SourceIndex(0) -4 >Emitted(95, 36) Source(95, 15) + SourceIndex(0) -5 >Emitted(95, 41) Source(95, 20) + SourceIndex(0) -6 >Emitted(95, 42) Source(95, 21) + SourceIndex(0) -7 >Emitted(95, 46) Source(95, 25) + SourceIndex(0) -8 >Emitted(95, 47) Source(95, 26) + SourceIndex(0) -9 >Emitted(95, 48) Source(95, 27) + SourceIndex(0) +1 >Emitted(113, 25) Source(95, 4) + SourceIndex(0) +2 >Emitted(113, 31) Source(95, 10) + SourceIndex(0) +3 >Emitted(113, 32) Source(95, 11) + SourceIndex(0) +4 >Emitted(113, 36) Source(95, 15) + SourceIndex(0) +5 >Emitted(113, 41) Source(95, 20) + SourceIndex(0) +6 >Emitted(113, 42) Source(95, 21) + SourceIndex(0) +7 >Emitted(113, 46) Source(95, 25) + SourceIndex(0) +8 >Emitted(113, 47) Source(95, 26) + SourceIndex(0) +9 >Emitted(113, 48) Source(95, 27) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(96, 21) Source(96, 3) + SourceIndex(0) -2 >Emitted(96, 22) Source(96, 4) + SourceIndex(0) +1 >Emitted(114, 21) Source(96, 3) + SourceIndex(0) +2 >Emitted(114, 22) Source(96, 4) + SourceIndex(0) --- +>>> __names(Mode.prototype, ["getInitialState"]); >>> return Mode; 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^ @@ -1715,8 +1735,8 @@ sourceFile:recursiveClassReferenceTest.ts > > 2 > } -1->Emitted(97, 21) Source(99, 2) + SourceIndex(0) -2 >Emitted(97, 32) Source(99, 3) + SourceIndex(0) +1->Emitted(116, 21) Source(99, 2) + SourceIndex(0) +2 >Emitted(116, 32) Source(99, 3) + SourceIndex(0) --- >>> }(AbstractMode)); 1->^^^^^^^^^^^^^^^^ @@ -1740,12 +1760,12 @@ sourceFile:recursiveClassReferenceTest.ts > > > } -1->Emitted(98, 17) Source(99, 2) + SourceIndex(0) -2 >Emitted(98, 18) Source(99, 3) + SourceIndex(0) -3 >Emitted(98, 18) Source(91, 2) + SourceIndex(0) -4 >Emitted(98, 19) Source(91, 28) + SourceIndex(0) -5 >Emitted(98, 31) Source(91, 40) + SourceIndex(0) -6 >Emitted(98, 34) Source(99, 3) + SourceIndex(0) +1->Emitted(117, 17) Source(99, 2) + SourceIndex(0) +2 >Emitted(117, 18) Source(99, 3) + SourceIndex(0) +3 >Emitted(117, 18) Source(91, 2) + SourceIndex(0) +4 >Emitted(117, 19) Source(91, 28) + SourceIndex(0) +5 >Emitted(117, 31) Source(91, 40) + SourceIndex(0) +6 >Emitted(117, 34) Source(99, 3) + SourceIndex(0) --- >>> PlainText.Mode = Mode; 1->^^^^^^^^^^^^^^^^ @@ -1765,10 +1785,10 @@ sourceFile:recursiveClassReferenceTest.ts > > } 4 > -1->Emitted(99, 17) Source(91, 15) + SourceIndex(0) -2 >Emitted(99, 31) Source(91, 19) + SourceIndex(0) -3 >Emitted(99, 38) Source(99, 3) + SourceIndex(0) -4 >Emitted(99, 39) Source(99, 3) + SourceIndex(0) +1->Emitted(118, 17) Source(91, 15) + SourceIndex(0) +2 >Emitted(118, 31) Source(91, 19) + SourceIndex(0) +3 >Emitted(118, 38) Source(99, 3) + SourceIndex(0) +4 >Emitted(118, 39) Source(99, 3) + SourceIndex(0) --- >>> })(PlainText = Languages.PlainText || (Languages.PlainText = {})); 1->^^^^^^^^^^^^ @@ -1814,15 +1834,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1->Emitted(100, 13) Source(100, 1) + SourceIndex(0) -2 >Emitted(100, 14) Source(100, 2) + SourceIndex(0) -3 >Emitted(100, 16) Source(76, 31) + SourceIndex(0) -4 >Emitted(100, 25) Source(76, 40) + SourceIndex(0) -5 >Emitted(100, 28) Source(76, 31) + SourceIndex(0) -6 >Emitted(100, 47) Source(76, 40) + SourceIndex(0) -7 >Emitted(100, 52) Source(76, 31) + SourceIndex(0) -8 >Emitted(100, 71) Source(76, 40) + SourceIndex(0) -9 >Emitted(100, 79) Source(100, 2) + SourceIndex(0) +1->Emitted(119, 13) Source(100, 1) + SourceIndex(0) +2 >Emitted(119, 14) Source(100, 2) + SourceIndex(0) +3 >Emitted(119, 16) Source(76, 31) + SourceIndex(0) +4 >Emitted(119, 25) Source(76, 40) + SourceIndex(0) +5 >Emitted(119, 28) Source(76, 31) + SourceIndex(0) +6 >Emitted(119, 47) Source(76, 40) + SourceIndex(0) +7 >Emitted(119, 52) Source(76, 31) + SourceIndex(0) +8 >Emitted(119, 71) Source(76, 40) + SourceIndex(0) +9 >Emitted(119, 79) Source(100, 2) + SourceIndex(0) --- >>> })(Languages = Thing.Languages || (Thing.Languages = {})); 1 >^^^^^^^^ @@ -1867,15 +1887,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(101, 9) Source(100, 1) + SourceIndex(0) -2 >Emitted(101, 10) Source(100, 2) + SourceIndex(0) -3 >Emitted(101, 12) Source(76, 21) + SourceIndex(0) -4 >Emitted(101, 21) Source(76, 30) + SourceIndex(0) -5 >Emitted(101, 24) Source(76, 21) + SourceIndex(0) -6 >Emitted(101, 39) Source(76, 30) + SourceIndex(0) -7 >Emitted(101, 44) Source(76, 21) + SourceIndex(0) -8 >Emitted(101, 59) Source(76, 30) + SourceIndex(0) -9 >Emitted(101, 67) Source(100, 2) + SourceIndex(0) +1 >Emitted(120, 9) Source(100, 1) + SourceIndex(0) +2 >Emitted(120, 10) Source(100, 2) + SourceIndex(0) +3 >Emitted(120, 12) Source(76, 21) + SourceIndex(0) +4 >Emitted(120, 21) Source(76, 30) + SourceIndex(0) +5 >Emitted(120, 24) Source(76, 21) + SourceIndex(0) +6 >Emitted(120, 39) Source(76, 30) + SourceIndex(0) +7 >Emitted(120, 44) Source(76, 21) + SourceIndex(0) +8 >Emitted(120, 59) Source(76, 30) + SourceIndex(0) +9 >Emitted(120, 67) Source(100, 2) + SourceIndex(0) --- >>> })(Thing = Sample.Thing || (Sample.Thing = {})); 1 >^^^^ @@ -1920,15 +1940,15 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(102, 5) Source(100, 1) + SourceIndex(0) -2 >Emitted(102, 6) Source(100, 2) + SourceIndex(0) -3 >Emitted(102, 8) Source(76, 15) + SourceIndex(0) -4 >Emitted(102, 13) Source(76, 20) + SourceIndex(0) -5 >Emitted(102, 16) Source(76, 15) + SourceIndex(0) -6 >Emitted(102, 28) Source(76, 20) + SourceIndex(0) -7 >Emitted(102, 33) Source(76, 15) + SourceIndex(0) -8 >Emitted(102, 45) Source(76, 20) + SourceIndex(0) -9 >Emitted(102, 53) Source(100, 2) + SourceIndex(0) +1 >Emitted(121, 5) Source(100, 1) + SourceIndex(0) +2 >Emitted(121, 6) Source(100, 2) + SourceIndex(0) +3 >Emitted(121, 8) Source(76, 15) + SourceIndex(0) +4 >Emitted(121, 13) Source(76, 20) + SourceIndex(0) +5 >Emitted(121, 16) Source(76, 15) + SourceIndex(0) +6 >Emitted(121, 28) Source(76, 20) + SourceIndex(0) +7 >Emitted(121, 33) Source(76, 15) + SourceIndex(0) +8 >Emitted(121, 45) Source(76, 20) + SourceIndex(0) +9 >Emitted(121, 53) Source(100, 2) + SourceIndex(0) --- >>>})(Sample || (Sample = {})); 1 > @@ -1970,12 +1990,12 @@ sourceFile:recursiveClassReferenceTest.ts > > } > } -1 >Emitted(103, 1) Source(100, 1) + SourceIndex(0) -2 >Emitted(103, 2) Source(100, 2) + SourceIndex(0) -3 >Emitted(103, 4) Source(76, 8) + SourceIndex(0) -4 >Emitted(103, 10) Source(76, 14) + SourceIndex(0) -5 >Emitted(103, 15) Source(76, 8) + SourceIndex(0) -6 >Emitted(103, 21) Source(76, 14) + SourceIndex(0) -7 >Emitted(103, 29) Source(100, 2) + SourceIndex(0) +1 >Emitted(122, 1) Source(100, 1) + SourceIndex(0) +2 >Emitted(122, 2) Source(100, 2) + SourceIndex(0) +3 >Emitted(122, 4) Source(76, 8) + SourceIndex(0) +4 >Emitted(122, 10) Source(76, 14) + SourceIndex(0) +5 >Emitted(122, 15) Source(76, 8) + SourceIndex(0) +6 >Emitted(122, 21) Source(76, 14) + SourceIndex(0) +7 >Emitted(122, 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 cb46865c46f53..dae5d6ac3c0b7 100644 --- a/tests/baselines/reference/recursiveComplicatedClasses.js +++ b/tests/baselines/reference/recursiveComplicatedClasses.js @@ -25,6 +25,20 @@ class TypeSymbol extends InferenceSymbol { } //// [recursiveComplicatedClasses.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -51,6 +65,7 @@ var Symbol = (function () { var b; return aEnclosesB(b); }; + __names(Symbol.prototype, ["visible"]); return Symbol; }()); var InferenceSymbol = (function (_super) { diff --git a/tests/baselines/reference/recursiveInheritance3.js b/tests/baselines/reference/recursiveInheritance3.js index 564d4fe6f3c64..19df835af84b8 100644 --- a/tests/baselines/reference/recursiveInheritance3.js +++ b/tests/baselines/reference/recursiveInheritance3.js @@ -9,10 +9,25 @@ interface I extends C { } //// [recursiveInheritance3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.x = 1; } C.prototype.foo = function (x) { return x; }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/requireEmitSemicolon.js b/tests/baselines/reference/requireEmitSemicolon.js index 667002efeaa67..c76de6835abb0 100644 --- a/tests/baselines/reference/requireEmitSemicolon.js +++ b/tests/baselines/reference/requireEmitSemicolon.js @@ -34,6 +34,20 @@ define(["require", "exports"], function (require, exports) { })(Models = exports.Models || (exports.Models = {})); }); //// [requireEmitSemicolon_1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports", "requireEmitSemicolon_0"], function (require, exports, P) { "use strict"; exports.__esModule = true; @@ -45,6 +59,7 @@ define(["require", "exports", "requireEmitSemicolon_0"], function (require, expo DB.prototype.findPerson = function (id) { return new P.Models.Person("Rock"); }; + __names(DB.prototype, ["findPerson"]); return DB; }()); Database.DB = DB; diff --git a/tests/baselines/reference/requiredInitializedParameter2.js b/tests/baselines/reference/requiredInitializedParameter2.js index b46a6edfeb0aa..060b6781ba3a3 100644 --- a/tests/baselines/reference/requiredInitializedParameter2.js +++ b/tests/baselines/reference/requiredInitializedParameter2.js @@ -8,11 +8,26 @@ class C1 implements I1 { } //// [requiredInitializedParameter2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } C1.prototype.method = function (a, b) { if (a === void 0) { a = 0; } }; + __names(C1.prototype, ["method"]); return C1; }()); diff --git a/tests/baselines/reference/requiredInitializedParameter3.js b/tests/baselines/reference/requiredInitializedParameter3.js index 983955b79e832..839426cf1f2ce 100644 --- a/tests/baselines/reference/requiredInitializedParameter3.js +++ b/tests/baselines/reference/requiredInitializedParameter3.js @@ -8,12 +8,27 @@ class C1 implements I1 { } //// [requiredInitializedParameter3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } C1.prototype.method = function (a, b) { if (a === void 0) { a = 0; } }; + __names(C1.prototype, ["method"]); return C1; }()); diff --git a/tests/baselines/reference/requiredInitializedParameter4.js b/tests/baselines/reference/requiredInitializedParameter4.js index 11abdc20f411e..807adff10a19a 100644 --- a/tests/baselines/reference/requiredInitializedParameter4.js +++ b/tests/baselines/reference/requiredInitializedParameter4.js @@ -4,12 +4,27 @@ class C1 { } //// [requiredInitializedParameter4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } C1.prototype.method = function (a, b) { if (a === void 0) { a = 0; } }; + __names(C1.prototype, ["method"]); return C1; }()); diff --git a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js index 1a9a3dacbbaac..df4b206c61920 100644 --- a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js +++ b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js @@ -1030,6 +1030,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var rionegrensis; (function (rionegrensis) { var caniventer = (function (_super) { @@ -1067,6 +1081,7 @@ var rionegrensis; (function () { var y = _this; }); return x; }; + __names(caniventer.prototype, ["salomonseni", "uchidai", "raffrayana", "Uranium", "nayaur"]); return caniventer; }(Lanthanum.nitidus)); rionegrensis.caniventer = caniventer; @@ -1105,6 +1120,7 @@ var rionegrensis; (function () { var y = _this; }); return x; }; + __names(veraecrucis.prototype, ["naso", "vancouverensis", "africana", "palliolata", "nivicola"]); return veraecrucis; }(trivirgatus.mixtus)); rionegrensis.veraecrucis = veraecrucis; @@ -1150,6 +1166,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(nudicaudus.prototype, ["brandtii", "maxwellii", "endoi", "venezuelae", "zamicrus"]); return nudicaudus; }()); julianae.nudicaudus = nudicaudus; @@ -1198,6 +1215,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(galapagoensis.prototype, ["isabellae", "rueppellii", "peregusna", "gliroides", "banakrisi", "rozendaali", "stuhlmanni"]); return galapagoensis; }()); julianae.galapagoensis = galapagoensis; @@ -1246,6 +1264,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(albidens.prototype, ["mattheyi", "Astatine", "vincenti", "hirta", "virginianus", "macrophyllum", "porcellus"]); return albidens; }()); julianae.albidens = albidens; @@ -1332,6 +1351,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(oralis.prototype, ["cepapi", "porteri", "bindi", "puda", "mindorensis", "ignitus", "rufus", "monax", "unalascensis", "wuchihensis", "leucippe", "ordii", "eisentrauti"]); return oralis; }(caurinus.psilurus)); julianae.oralis = oralis; @@ -1382,6 +1402,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(sumatrana.prototype, ["wolffsohni", "geata", "awashensis", "sturdeei", "pachyurus", "lyelli", "neohibernicus"]); return sumatrana; }(Lanthanum.jugularis)); julianae.sumatrana = sumatrana; @@ -1454,6 +1475,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(gerbillus.prototype, ["pundti", "tristrami", "swarthi", "horsfieldii", "diazi", "rennelli", "maulinus", "muscina", "pelengensis", "abramus", "reevesi"]); return gerbillus; }()); julianae.gerbillus = gerbillus; @@ -1532,6 +1554,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(acariensis.prototype, ["levicula", "minous", "cinereiventer", "longicaudatus", "baeodon", "soricoides", "datae", "spixii", "anakuma", "kihaulei", "gymnura", "olchonensis"]); return acariensis; }()); julianae.acariensis = acariensis; @@ -1558,6 +1581,7 @@ var julianae; (function () { var y = _this; }); return x; }; + __names(durangae.prototype, ["Californium", "Flerovium", "phrudus"]); return durangae; }(dogramacii.aurata)); julianae.durangae = durangae; @@ -1579,6 +1603,7 @@ var ruatanica; (function () { var y = _this; }); return x; }; + __names(hector.prototype, ["humulis", "eurycerus"]); return hector; }()); ruatanica.hector = hector; @@ -1606,6 +1631,7 @@ var Lanthanum; (function () { var y = _this; }); return x; }; + __names(suillus.prototype, ["spilosoma", "tumbalensis", "anatolicus"]); return suillus; }()); Lanthanum.suillus = suillus; @@ -1674,6 +1700,7 @@ var Lanthanum; (function () { var y = _this; }); return x; }; + __names(nitidus.prototype, ["granatensis", "negligens", "lewisi", "arge", "dominicensis", "taurus", "tonganus", "silvatica", "midas", "bicornis"]); return nitidus; }(argurus.gilbertii)); Lanthanum.nitidus = nitidus; @@ -1730,6 +1757,7 @@ var Lanthanum; (function () { var y = _this; }); return x; }; + __names(megalonyx.prototype, ["phillipsii", "melanogaster", "elaphus", "elater", "ourebi", "caraccioli", "parva", "albipes"]); return megalonyx; }(caurinus.johorensis)); Lanthanum.megalonyx = megalonyx; @@ -1820,6 +1848,7 @@ var Lanthanum; (function () { var y = _this; }); return x; }; + __names(jugularis.prototype, ["torrei", "revoili", "macrobullatus", "compactus", "talpinus", "stramineus", "dartmouthi", "ogilbyi", "incomtus", "surdaster", "melanorhinus", "picticaudata", "pomona", "ileile"]); return jugularis; }()); Lanthanum.jugularis = jugularis; @@ -1915,6 +1944,7 @@ var rendalli; (function () { var y = _this; }); return x; }; + __names(zuluensis.prototype, ["telfairi", "keyensis", "occasius", "damarensis", "Neptunium", "griseoflavus", "thar", "alborufus", "fusicaudus", "gordonorum", "ruber", "desmarestianus", "lutillus", "salocco"]); return zuluensis; }(julianae.steerii)); rendalli.zuluensis = zuluensis; @@ -1981,6 +2011,7 @@ var rendalli; (function () { var y = _this; }); return x; }; + __names(moojeni.prototype, ["floweri", "montosa", "miletus", "heaneyi", "marchei", "budini", "maggietaylorae", "poliocephalus", "zibethicus", "biacensis"]); return moojeni; }()); rendalli.moojeni = moojeni; @@ -2007,6 +2038,7 @@ var rendalli; (function () { var y = _this; }); return x; }; + __names(crenulata.prototype, ["salvanius", "maritimus", "edax"]); return crenulata; }(trivirgatus.falconeri)); rendalli.crenulata = crenulata; @@ -2064,6 +2096,7 @@ var trivirgatus; (function () { var y = _this; }); return x; }; + __names(tumidifrons.prototype, ["nivalis", "vestitus", "aequatorius", "scherman", "improvisum", "cervinipes", "audax", "vallinus"]); return tumidifrons; }()); trivirgatus.tumidifrons = tumidifrons; @@ -2114,6 +2147,7 @@ var trivirgatus; (function () { var y = _this; }); return x; }; + __names(mixtus.prototype, ["ochrogaster", "bryophilus", "liechtensteini", "crawfordi", "hypsibia", "matacus", "demidoff"]); return mixtus; }(argurus.pygmaea)); trivirgatus.mixtus = mixtus; @@ -2132,6 +2166,7 @@ var trivirgatus; (function () { var y = _this; }); return x; }; + __names(lotor.prototype, ["balensis", "pullata"]); return lotor; }()); trivirgatus.lotor = lotor; @@ -2180,6 +2215,7 @@ var trivirgatus; (function () { var y = _this; }); return x; }; + __names(falconeri.prototype, ["cabrali", "gouldi", "fuscicollis", "martiensseni", "gaoligongensis", "shawi", "gmelini"]); return falconeri; }()); trivirgatus.falconeri = falconeri; @@ -2270,6 +2306,7 @@ var trivirgatus; (function () { var y = _this; }); return x; }; + __names(oconnelli.prototype, ["youngsoni", "terrestris", "chrysopus", "fuscomurina", "hellwaldii", "aenea", "perrini", "entellus", "krebsii", "cephalotes", "molossinus", "luisi", "ceylonicus", "ralli"]); return oconnelli; }()); trivirgatus.oconnelli = oconnelli; @@ -2303,6 +2340,7 @@ var quasiater; (function () { var y = _this; }); return x; }; + __names(bobrinskoi.prototype, ["crassicaudatus", "mulatta", "ansorgei", "Copper"]); return bobrinskoi; }()); quasiater.bobrinskoi = bobrinskoi; @@ -2337,6 +2375,7 @@ var quasiater; (function () { var y = _this; }); return x; }; + __names(americanus.prototype, ["nasoloi", "mystacalis", "fardoulisi", "tumidus"]); return americanus; }(imperfecta.ciliolabrum)); ruatanica.americanus = americanus; @@ -2426,6 +2465,7 @@ var lavali; (function () { var y = _this; }); return x; }; + __names(wilsoni.prototype, ["setiger", "lorentzii", "antisensis", "blossevillii", "bontanus", "caligata", "franqueti", "roberti", "degelidus", "amoenus", "kob", "csorbai", "dorsata"]); return wilsoni; }(Lanthanum.nitidus)); lavali.wilsoni = wilsoni; @@ -2518,6 +2558,7 @@ var lavali; (function () { var y = _this; }); return x; }; + __names(otion.prototype, ["bonaerensis", "dussumieri", "osvaldoreigi", "grevyi", "hirtula", "cristatus", "darlingtoni", "fontanierii", "umbrosus", "chiriquinus", "orarius", "ilaeus", "musschenbroekii"]); return otion; }(howi.coludo)); lavali.otion = otion; @@ -2596,6 +2637,7 @@ var lavali; (function () { var y = _this; }); return x; }; + __names(xanthognathus.prototype, ["nanulus", "albigena", "onca", "gunnii", "apeco", "variegates", "goudotii", "pohlei", "ineptus", "euryotis", "maurisca", "coyhaiquensis"]); return xanthognathus; }()); lavali.xanthognathus = xanthognathus; @@ -2652,6 +2694,7 @@ var lavali; (function () { var y = _this; }); return x; }; + __names(thaeleri.prototype, ["coromandra", "parvipes", "sponsorius", "vates", "roosmalenorum", "rubicola", "ikonnikovi", "paramicrus"]); return thaeleri; }(argurus.oreas)); lavali.thaeleri = thaeleri; @@ -2672,6 +2715,7 @@ var lavali; (function () { var y = _this; }); return x; }; + __names(lepturus.prototype, ["ferrumequinum", "aequalis"]); return lepturus; }(Lanthanum.suillus)); lavali.lepturus = lepturus; @@ -2737,6 +2781,7 @@ var dogramacii; (function () { var y = _this; }); return x; }; + __names(robustulus.prototype, ["fossor", "humboldti", "mexicana", "martini", "beatus", "leporina", "pearsonii", "keaysi", "hindei"]); return robustulus; }(lavali.wilsoni)); dogramacii.robustulus = robustulus; @@ -2749,6 +2794,7 @@ var dogramacii; (function () { var y = _this; }); return x; }; + __names(koepckeae.prototype, ["culturatus"]); return koepckeae; }()); dogramacii.koepckeae = koepckeae; @@ -2833,6 +2879,7 @@ var dogramacii; (function () { var y = _this; }); return x; }; + __names(kaiseri.prototype, ["bedfordiae", "paramorum", "rubidus", "juninensis", "marginata", "Meitnerium", "pinetorum", "hoolock", "poeyi", "Thulium", "patrius", "quadraticauda", "ater"]); return kaiseri; }()); dogramacii.kaiseri = kaiseri; @@ -2887,6 +2934,7 @@ var dogramacii; (function () { var y = _this; }); return x; }; + __names(aurata.prototype, ["grunniens", "howensis", "karlkoopmani", "mirapitanga", "ophiodon", "landeri", "sonomae", "erythromos"]); return aurata; }()); dogramacii.aurata = aurata; @@ -2982,6 +3030,7 @@ var lutreolus; (function () { var y = _this; }); return x; }; + __names(schlegeli.prototype, ["mittendorfi", "blicki", "culionensis", "scrofa", "fernandoni", "Tin", "marmorata", "tavaratra", "peregrina", "frontalis", "cuniculus", "magdalenae", "andamanensis", "dispar"]); return schlegeli; }(lavali.beisa)); lutreolus.schlegeli = schlegeli; @@ -3057,6 +3106,7 @@ var argurus; (function () { var y = _this; }); return x; }; + __names(dauricus.prototype, ["chinensis", "duodecimcostatus", "foxi", "macleayii", "darienensis", "hardwickii", "albifrons", "jacobitus", "guentheri", "mahomet", "misionensis"]); return dauricus; }()); argurus.dauricus = dauricus; @@ -3114,6 +3164,7 @@ var nigra; (function () { var y = _this; }); return x; }; + __names(dolichurus.prototype, ["solomonis", "alfredi", "morrisi", "lekaguli", "dimissus", "phaeotis", "ustus", "sagei"]); return dolichurus; }()); nigra.dolichurus = dolichurus; @@ -3161,6 +3212,7 @@ var panglima; (function () { var y = _this; }); return x; }; + __names(amphibius.prototype, ["bottegi", "jerdoni", "camtschatica", "spadix", "luismanueli", "aceramarcae"]); return amphibius; }(caurinus.johorensis)); panglima.amphibius = amphibius; @@ -3187,6 +3239,7 @@ var panglima; (function () { var y = _this; }); return x; }; + __names(fundatus.prototype, ["crassulus", "flamarioni", "mirabilis"]); return fundatus; }(lutreolus.schlegeli)); panglima.fundatus = fundatus; @@ -3225,6 +3278,7 @@ var panglima; (function () { var y = _this; }); return x; }; + __names(abidi.prototype, ["greyii", "macedonicus", "galili", "thierryi", "ega"]); return abidi; }(argurus.dauricus)); panglima.abidi = abidi; @@ -3275,6 +3329,7 @@ var panglima; (function () { var y = _this; }); return x; }; + __names(carolinensis.prototype, ["concinna", "aeneus", "aloysiisabaudiae", "tenellus", "andium", "persephone", "patrizii"]); return carolinensis; }()); quasiater.carolinensis = carolinensis; @@ -3358,6 +3413,7 @@ var minutus; (function () { var y = _this; }); return x; }; + __names(himalayana.prototype, ["simoni", "lobata", "rusticus", "latona", "famulus", "flaviceps", "paradoxolophus", "Osmium", "vulgaris", "betsileoensis", "vespuccii", "olympus"]); return himalayana; }(lutreolus.punicus)); minutus.himalayana = himalayana; @@ -3417,6 +3473,7 @@ var caurinus; (function () { var y = _this; }); return x; }; + __names(mahaganus.prototype, ["martiniquensis", "devius", "masalai", "kathleenae", "simulus", "nigrovittatus", "senegalensis", "acticola"]); return mahaganus; }(panglima.fundatus)); caurinus.mahaganus = mahaganus; @@ -3432,6 +3489,7 @@ var macrorhinos; (function () { var y = _this; }); return x; }; + __names(marmosurus.prototype, ["tansaniana"]); return marmosurus; }()); macrorhinos.marmosurus = marmosurus; @@ -3449,6 +3507,7 @@ var howi; (function () { var y = _this; }); return x; }; + __names(angulatus.prototype, ["pennatus"]); return angulatus; }(sagitta.stolzmanni)); howi.angulatus = angulatus; @@ -3514,6 +3573,7 @@ var daubentonii; (function () { var y = _this; }); return x; }; + __names(thalia.prototype, ["dichotomus", "arnuxii", "verheyeni", "dauuricus", "tristriatus", "lasiura", "gangetica", "brucei"]); return thalia; }()); nigra.thalia = thalia; @@ -3531,6 +3591,7 @@ var sagitta; (function () { var y = _this; }); return x; }; + __names(walkeri.prototype, ["maracajuensis"]); return walkeri; }(minutus.portoricensis)); sagitta.walkeri = walkeri; @@ -3547,6 +3608,7 @@ var sagitta; (function () { var y = _this; }); return x; }; + __names(inez.prototype, ["vexillaris"]); return inez; }(samarensis.pelurus)); minutus.inez = inez; @@ -3622,6 +3684,7 @@ var panamensis; (function () { var y = _this; }); return x; }; + __names(linulus.prototype, ["goslingi", "taki", "fumosus", "rufinus", "lami", "regina", "nanilla", "enganus", "gomantongensis"]); return linulus; }(ruatanica.hector)); panamensis.linulus = linulus; @@ -3708,6 +3771,7 @@ var panamensis; (function () { var y = _this; }); return x; }; + __names(gracilis.prototype, ["weddellii", "echinothrix", "garridoi", "rouxii", "aurita", "geoffrensis", "theresa", "melanocarpus", "dubiaquercus", "pectoralis", "apoensis", "grisescens", "ramirohitra"]); return gracilis; }()); nigra.gracilis = gracilis; @@ -3797,6 +3861,7 @@ var samarensis; (function () { var y = _this; }); return x; }; + __names(pelurus.prototype, ["Palladium", "castanea", "chamek", "nigriceps", "lunatus", "madurae", "chinchilla", "eliasi", "proditor", "gambianus", "petteri", "nusatenggara", "olitor"]); return pelurus; }(sagitta.stolzmanni)); samarensis.pelurus = pelurus; @@ -3889,6 +3954,7 @@ var samarensis; (function () { var y = _this; }); return x; }; + __names(fuscus.prototype, ["planifrons", "badia", "prymnolopha", "natalensis", "hunteri", "sapiens", "macrocercus", "nimbae", "suricatta", "jagorii", "beecrofti", "imaizumii", "colocolo", "wolfi"]); return fuscus; }(macrorhinos.daphaenodon)); samarensis.fuscus = fuscus; @@ -3919,6 +3985,7 @@ var samarensis; (function () { var y = _this; }); return x; }; + __names(pallidus.prototype, ["oblativa", "watersi", "glacialis", "viaria"]); return pallidus; }()); samarensis.pallidus = pallidus; @@ -3955,6 +4022,7 @@ var samarensis; (function () { var y = _this; }); return x; }; + __names(cahirinus.prototype, ["alashanicus", "flaviventer", "bottai", "pinetis", "saussurei"]); return cahirinus; }()); samarensis.cahirinus = cahirinus; @@ -3995,6 +4063,7 @@ var samarensis; (function () { var y = _this; }); return x; }; + __names(leptoceros.prototype, ["victus", "hoplomyoides", "gratiosus", "rex", "bolami"]); return leptoceros; }(caurinus.johorensis)); sagitta.leptoceros = leptoceros; @@ -4011,6 +4080,7 @@ var samarensis; (function () { var y = _this; }); return x; }; + __names(nigricans.prototype, ["woosnami"]); return nigricans; }(sagitta.stolzmanni)); daubentonii.nigricans = nigricans; @@ -4048,6 +4118,7 @@ var dammermani; (function () { var y = _this; }); return x; }; + __names(pygmaea.prototype, ["pajeros", "capucinus", "cuvieri"]); return pygmaea; }(rendalli.moojeni)); argurus.pygmaea = pygmaea; @@ -4101,6 +4172,7 @@ var chrysaeolus; (function () { var y = _this; }); return x; }; + __names(sarasinorum.prototype, ["belzebul", "hinpoon", "kandti", "cynosuros", "Germanium", "Ununoctium", "princeps"]); return sarasinorum; }(caurinus.psilurus)); chrysaeolus.sarasinorum = sarasinorum; @@ -4151,6 +4223,7 @@ var chrysaeolus; (function () { var y = _this; }); return x; }; + __names(wetmorei.prototype, ["leucoptera", "ochraventer", "tephromelas", "cracens", "jamaicensis", "gymnocaudus", "mayori"]); return wetmorei; }()); argurus.wetmorei = wetmorei; @@ -4209,6 +4282,7 @@ var chrysaeolus; (function () { var y = _this; }); return x; }; + __names(oreas.prototype, ["salamonis", "paniscus", "fagani", "papuanus", "timidus", "nghetinhensis", "barbei", "univittatus"]); return oreas; }(lavali.wilsoni)); argurus.oreas = oreas; @@ -4289,6 +4363,7 @@ var chrysaeolus; (function () { var y = _this; }); return x; }; + __names(arboreus.prototype, ["capreolus", "moreni", "hypoleucos", "paedulcus", "pucheranii", "stella", "brasiliensis", "brevicaudata", "vitticollis", "huangensis", "cameroni", "tianshanica"]); return arboreus; }()); daubentonii.arboreus = arboreus; @@ -4376,6 +4451,7 @@ var patas; (function () { var y = _this; }); return x; }; + __names(uralensis.prototype, ["cartilagonodus", "pyrrhinus", "insulans", "nigricauda", "muricauda", "albicaudus", "fallax", "attenuata", "megalura", "neblina", "citellus", "tanezumi", "albiventer"]); return uralensis; }()); patas.uralensis = uralensis; @@ -4399,6 +4475,7 @@ var provocax; (function () { var y = _this; }); return x; }; + __names(melanoleuca.prototype, ["Neodymium", "baeri"]); return melanoleuca; }(lavali.wilsoni)); provocax.melanoleuca = melanoleuca; @@ -4419,6 +4496,7 @@ var provocax; (function () { var y = _this; }); return x; }; + __names(sicarius.prototype, ["Chlorine", "simulator"]); return sicarius; }()); sagitta.sicarius = sicarius; @@ -4513,6 +4591,7 @@ var provocax; (function () { var y = _this; }); return x; }; + __names(marcanoi.prototype, ["formosae", "dudui", "leander", "martinsi", "beatrix", "griseoventer", "zerda", "yucatanicus", "nigrita", "jouvenetae", "indefessus", "vuquangensis", "Zirconium", "hyaena"]); return marcanoi; }(Lanthanum.megalonyx)); howi.marcanoi = marcanoi; @@ -4593,6 +4672,7 @@ var provocax; (function () { var y = _this; }); return x; }; + __names(gilbertii.prototype, ["nasutus", "poecilops", "sondaicus", "auriventer", "cherriei", "lindberghi", "pipistrellus", "paranus", "dubosti", "opossum", "oreopolus", "amurensis"]); return gilbertii; }()); argurus.gilbertii = gilbertii; @@ -4688,6 +4768,7 @@ var petrophilus; (function () { var y = _this; }); return x; }; + __names(punicus.prototype, ["strandi", "lar", "erica", "trichura", "lemniscatus", "aspalax", "marshalli", "Zinc", "monochromos", "purinus", "ischyrus", "tenuis", "Helium"]); return punicus; }()); lutreolus.punicus = punicus; @@ -4732,6 +4813,7 @@ var petrophilus; (function () { var y = _this; }); return x; }; + __names(daphaenodon.prototype, ["bredanensis", "othus", "hammondi", "aureocollaris", "flavipes", "callosus"]); return daphaenodon; }()); macrorhinos.daphaenodon = daphaenodon; @@ -4812,6 +4894,7 @@ var petrophilus; (function () { var y = _this; }); return x; }; + __names(cinereus.prototype, ["zunigae", "microps", "guaporensis", "tonkeana", "montensis", "sphinx", "glis", "dorsalis", "fimbriatus", "sara", "epimelas", "pittieri"]); return cinereus; }()); sagitta.cinereus = cinereus; @@ -4897,6 +4980,7 @@ var gabriellae; (function () { var y = _this; }); return x; }; + __names(amicus.prototype, ["pirrensis", "phaeura", "voratus", "satarae", "hooperi", "perrensi", "ridei", "audeberti", "Lutetium", "atrox"]); return amicus; }()); gabriellae.amicus = amicus; @@ -4909,6 +4993,7 @@ var gabriellae; (function () { var y = _this; }); return x; }; + __names(echinatus.prototype, ["tenuipes"]); return echinatus; }()); gabriellae.echinatus = echinatus; @@ -4954,6 +5039,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(lasiurus.prototype, ["marisae", "fulvus", "paranaensis", "didactylus", "schreibersii", "orii"]); return lasiurus; }()); imperfecta.lasiurus = lasiurus; @@ -5026,6 +5112,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(subspinosus.prototype, ["monticularis", "Gadolinium", "oasicus", "paterculus", "punctata", "invictus", "stangeri", "siskiyou", "welwitschii", "Polonium", "harpia"]); return subspinosus; }()); imperfecta.subspinosus = subspinosus; @@ -5052,6 +5139,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(ciliolabrum.prototype, ["leschenaultii", "ludia", "sinicus"]); return ciliolabrum; }(dogramacii.robustulus)); imperfecta.ciliolabrum = ciliolabrum; @@ -5084,6 +5172,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(wattsi.prototype, ["lagotis", "hussoni", "bilarni", "cabrerae"]); return wattsi; }()); quasiater.wattsi = wattsi; @@ -5148,6 +5237,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(sodyi.prototype, ["saundersiae", "imberbis", "cansdalei", "Lawrencium", "catta", "breviceps", "transitionalis", "heptneri", "bairdii"]); return sodyi; }(quasiater.bobrinskoi)); petrophilus.sodyi = sodyi; @@ -5206,6 +5296,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(megaphyllus.prototype, ["montana", "amatus", "bucculentus", "lepida", "graecus", "forsteri", "perotensis", "cirrhosus"]); return megaphyllus; }(imperfecta.lasiurus)); caurinus.megaphyllus = megaphyllus; @@ -5232,6 +5323,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(portoricensis.prototype, ["relictus", "aequatorianus", "rhinogradoides"]); return portoricensis; }()); minutus.portoricensis = portoricensis; @@ -5318,6 +5410,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(foina.prototype, ["tarfayensis", "Promethium", "salinae", "kerri", "scotti", "camerunensis", "affinis", "siebersi", "maquassiensis", "layardi", "bishopi", "apodemoides", "argentiventer"]); return foina; }()); lutreolus.foina = foina; @@ -5388,6 +5481,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(cor.prototype, ["antinorii", "voi", "mussoi", "truncatus", "achates", "praedatrix", "mzabi", "xanthinus", "tapoatafa", "castroviejoi"]); return cor; }(panglima.fundatus)); lutreolus.cor = cor; @@ -5408,6 +5502,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(coludo.prototype, ["bernhardi", "isseli"]); return coludo; }()); howi.coludo = coludo; @@ -5430,6 +5525,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(germaini.prototype, ["sharpei", "palmarum"]); return germaini; }(gabriellae.amicus)); argurus.germaini = germaini; @@ -5504,6 +5600,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(stolzmanni.prototype, ["riparius", "dhofarensis", "tricolor", "gardneri", "walleri", "talpoides", "pallipes", "lagurus", "hipposideros", "griselda", "florium"]); return stolzmanni; }()); sagitta.stolzmanni = stolzmanni; @@ -5592,6 +5689,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(melanops.prototype, ["blarina", "harwoodi", "ashaninka", "wiedii", "godmani", "condorensis", "xerophila", "laminatus", "archeri", "hidalgo", "unicolor", "philippii", "bocagei"]); return melanops; }(minutus.inez)); dammermani.melanops = melanops; @@ -5650,6 +5748,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(peninsulae.prototype, ["aitkeni", "novaeangliae", "olallae", "anselli", "timminsi", "sordidus", "telfordi", "cavernarum"]); return peninsulae; }(patas.uralensis)); argurus.peninsulae = peninsulae; @@ -5736,6 +5835,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(netscheri.prototype, ["gravis", "ruschii", "tricuspidatus", "fernandezi", "colletti", "microbullatus", "eburneae", "tatei", "millardi", "pruinosus", "delator", "nyikae", "ruemmleri"]); return netscheri; }()); argurus.netscheri = netscheri; @@ -5824,6 +5924,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(Praseodymium.prototype, ["clara", "spectabilis", "kamensis", "ruddi", "bartelsii", "yerbabuenae", "davidi", "pilirostris", "catherinae", "frontata", "Terbium", "thomensis", "soricinus"]); return Praseodymium; }(ruatanica.hector)); ruatanica.Praseodymium = Praseodymium; @@ -5840,6 +5941,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(johorensis.prototype, ["maini"]); return johorensis; }(lutreolus.punicus)); caurinus.johorensis = johorensis; @@ -5854,6 +5956,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(luctuosa.prototype, ["loriae"]); return luctuosa; }()); argurus.luctuosa = luctuosa; @@ -5910,6 +6013,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(setulosus.prototype, ["duthieae", "guereza", "buselaphus", "nuttalli", "pelii", "tunneyi", "lamula", "vampyrus"]); return setulosus; }()); panamensis.setulosus = setulosus; @@ -5948,6 +6052,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(rosalia.prototype, ["palmeri", "baeops", "ozensis", "creaghi", "montivaga"]); return rosalia; }()); petrophilus.rosalia = rosalia; @@ -5994,6 +6099,7 @@ var imperfecta; (function () { var y = _this; }); return x; }; + __names(psilurus.prototype, ["socialis", "lundi", "araeum", "calamianensis", "petersoni", "nitela"]); return psilurus; }(lutreolus.punicus)); caurinus.psilurus = psilurus; diff --git a/tests/baselines/reference/restParameterAssignmentCompatibility.js b/tests/baselines/reference/restParameterAssignmentCompatibility.js index 01472c78c1ec5..95a9fa8a7b270 100644 --- a/tests/baselines/reference/restParameterAssignmentCompatibility.js +++ b/tests/baselines/reference/restParameterAssignmentCompatibility.js @@ -27,6 +27,20 @@ var t1: T1; t1 = s; // Similar to above, but optionality does not matter here. //// [restParameterAssignmentCompatibility.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var T = (function () { function T() { } @@ -36,6 +50,7 @@ var T = (function () { p3[_i] = arguments[_i]; } }; + __names(T.prototype, ["m"]); return T; }()); var S = (function () { @@ -43,6 +58,7 @@ var S = (function () { } S.prototype.m = function (p1, p2) { }; + __names(S.prototype, ["m"]); return S; }()); var t; @@ -55,6 +71,7 @@ var T1 = (function () { } T1.prototype.m = function (p1, p2) { }; + __names(T1.prototype, ["m"]); return T1; }()); var t1; diff --git a/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js b/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js index 5c1db2c62e1b3..36abda46dde20 100644 --- a/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js +++ b/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js @@ -28,6 +28,20 @@ var b = { //// [restParameterWithoutAnnotationIsAnyArray.js] // Rest parameters without type annotations are 'any', errors only for the functions with 2 rest params +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { var x = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -55,6 +69,7 @@ var C = (function () { x[_i] = arguments[_i]; } }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/restParametersOfNonArrayTypes.js b/tests/baselines/reference/restParametersOfNonArrayTypes.js index 6714516772083..03f4d5515468b 100644 --- a/tests/baselines/reference/restParametersOfNonArrayTypes.js +++ b/tests/baselines/reference/restParametersOfNonArrayTypes.js @@ -27,6 +27,20 @@ var b = { //// [restParametersOfNonArrayTypes.js] // Rest parameters must be an array type if they have a type annotation, so all these are errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { var x = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -54,6 +68,7 @@ var C = (function () { x[_i] = arguments[_i]; } }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/restParametersOfNonArrayTypes2.js b/tests/baselines/reference/restParametersOfNonArrayTypes2.js index 7df2458a27b3f..2f3a6addadd47 100644 --- a/tests/baselines/reference/restParametersOfNonArrayTypes2.js +++ b/tests/baselines/reference/restParametersOfNonArrayTypes2.js @@ -59,6 +59,20 @@ var b2 = { //// [restParametersOfNonArrayTypes2.js] // Rest parameters must be an array type if they have a type annotation, // user defined subtypes of array do not count, all of these are errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { var x = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -86,6 +100,7 @@ var C = (function () { x[_i] = arguments[_i]; } }; + __names(C.prototype, ["foo"]); return C; }()); var a; @@ -136,6 +151,7 @@ var C2 = (function () { x[_i] = arguments[_i]; } }; + __names(C2.prototype, ["foo"]); return C2; }()); var a2; diff --git a/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js b/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js index 1004fdfcbcb41..0b0b7c262c305 100644 --- a/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js +++ b/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js @@ -54,6 +54,20 @@ var b2 = { //// [restParametersWithArrayTypeAnnotations.js] // Rest parameters must be an array type if they have a type annotation, errors only for the functions with 2 rest params +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo() { var x = []; for (var _i = 0; _i < arguments.length; _i++) { @@ -81,6 +95,7 @@ var C = (function () { x[_i] = arguments[_i]; } }; + __names(C.prototype, ["foo"]); return C; }()); var a; @@ -131,6 +146,7 @@ var C2 = (function () { x[_i] = arguments[_i]; } }; + __names(C2.prototype, ["foo"]); return C2; }()); var a2; diff --git a/tests/baselines/reference/returnInConstructor1.js b/tests/baselines/reference/returnInConstructor1.js index 6bdcc0cb6a29d..325034d21d996 100644 --- a/tests/baselines/reference/returnInConstructor1.js +++ b/tests/baselines/reference/returnInConstructor1.js @@ -67,6 +67,20 @@ class I extends G { //// [returnInConstructor1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -82,6 +96,7 @@ var A = (function () { return; } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function () { @@ -89,6 +104,7 @@ var B = (function () { return 1; // error } B.prototype.foo = function () { }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function () { @@ -96,6 +112,7 @@ var C = (function () { return this; } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function () { @@ -103,6 +120,7 @@ var D = (function () { return "test"; // error } D.prototype.foo = function () { }; + __names(D.prototype, ["foo"]); return D; }()); var E = (function () { @@ -123,6 +141,7 @@ var G = (function () { } G.prototype.test1 = function () { }; G.prototype.foo = function () { }; + __names(G.prototype, ["test1", "foo"]); return G; }()); var H = (function (_super) { diff --git a/tests/baselines/reference/returnStatements.js b/tests/baselines/reference/returnStatements.js index 617911be75977..a89ca53311b74 100644 --- a/tests/baselines/reference/returnStatements.js +++ b/tests/baselines/reference/returnStatements.js @@ -25,6 +25,20 @@ function fn13(): C { return null; } //// [returnStatements.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -48,6 +62,7 @@ var C = (function () { function C() { } C.prototype.dispose = function () { }; + __names(C.prototype, ["dispose"]); return C; }()); var D = (function (_super) { diff --git a/tests/baselines/reference/returnTypeTypeArguments.js b/tests/baselines/reference/returnTypeTypeArguments.js index ade97159091fc..dec5aad88b55a 100644 --- a/tests/baselines/reference/returnTypeTypeArguments.js +++ b/tests/baselines/reference/returnTypeTypeArguments.js @@ -77,6 +77,20 @@ declare var a: { //// [returnTypeTypeArguments.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var One = (function () { function One() { } @@ -107,6 +121,7 @@ var C = (function () { C.prototype.B1 = function () { return null; }; C.prototype.B2 = function () { return null; }; C.prototype.B3 = function () { return null; }; + __names(C.prototype, ["A1", "A2", "A3", "B1", "B2", "B3"]); return C; }()); var D = (function () { @@ -117,6 +132,7 @@ var D = (function () { D.prototype.B1 = function () { return null; }; D.prototype.B2 = function () { return null; }; D.prototype.B3 = function () { return null; }; + __names(D.prototype, ["A2", "A3", "B1", "B2", "B3"]); return D; }()); var Y = (function () { diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js index c72fe6dde7d10..047c14bbf1c80 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js @@ -19,6 +19,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -34,5 +48,6 @@ var D = (function (_super) { this.p = 1; s = 1; }; + __names(D.prototype, ["c"]); return D; }(C)); diff --git a/tests/baselines/reference/scopeCheckInsidePublicMethod1.js b/tests/baselines/reference/scopeCheckInsidePublicMethod1.js index 46ee1fc719d93..c4b6a5606f570 100644 --- a/tests/baselines/reference/scopeCheckInsidePublicMethod1.js +++ b/tests/baselines/reference/scopeCheckInsidePublicMethod1.js @@ -7,11 +7,26 @@ class C { } //// [scopeCheckInsidePublicMethod1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.a = function () { s = 1; // ERR }; + __names(C.prototype, ["a"]); return C; }()); diff --git a/tests/baselines/reference/scopeResolutionIdentifiers.js b/tests/baselines/reference/scopeResolutionIdentifiers.js index ca45a95239ec5..f5315525c7e3c 100644 --- a/tests/baselines/reference/scopeResolutionIdentifiers.js +++ b/tests/baselines/reference/scopeResolutionIdentifiers.js @@ -40,6 +40,20 @@ module M3 { //// [scopeResolutionIdentifiers.js] // EveryType used in a nested scope of a different EveryType with the same name, type of the identifier is the one defined in the inner scope +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var s; var M1; (function (M1) { @@ -65,6 +79,7 @@ var C = (function () { var p = this.n; var p; }; + __names(C.prototype, ["x"]); return C; }()); var M3; diff --git a/tests/baselines/reference/selfInCallback.js b/tests/baselines/reference/selfInCallback.js index a0b363ae08154..0636775eff693 100644 --- a/tests/baselines/reference/selfInCallback.js +++ b/tests/baselines/reference/selfInCallback.js @@ -8,6 +8,20 @@ class C { } //// [selfInCallback.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.p1 = 0; @@ -17,5 +31,6 @@ var C = (function () { var _this = this; this.callback(function () { _this.p1 + 1; }); }; + __names(C.prototype, ["callback", "doit"]); return C; }()); diff --git a/tests/baselines/reference/selfInLambdas.js b/tests/baselines/reference/selfInLambdas.js index b143c0c9e4ea3..e114cb5829437 100644 --- a/tests/baselines/reference/selfInLambdas.js +++ b/tests/baselines/reference/selfInLambdas.js @@ -47,6 +47,20 @@ class X { //// [selfInLambdas.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var o = { counter: 0, start: function () { @@ -72,5 +86,6 @@ var X = (function () { }; outer(); }; + __names(X.prototype, ["foo"]); return X; }()); diff --git a/tests/baselines/reference/selfReferencesInFunctionParameters.js b/tests/baselines/reference/selfReferencesInFunctionParameters.js index 5dd662cf16959..e5208d8907d37 100644 --- a/tests/baselines/reference/selfReferencesInFunctionParameters.js +++ b/tests/baselines/reference/selfReferencesInFunctionParameters.js @@ -14,6 +14,20 @@ class C { } //// [selfReferencesInFunctionParameters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { if (x === void 0) { x = x; } } @@ -30,5 +44,6 @@ var C = (function () { if (a === void 0) { a = ""; } if (b === void 0) { b = b.toString(); } }; + __names(C.prototype, ["bar"]); return C; }()); diff --git a/tests/baselines/reference/shadowPrivateMembers.js b/tests/baselines/reference/shadowPrivateMembers.js index ce0fd333b914b..8d888128a4f40 100644 --- a/tests/baselines/reference/shadowPrivateMembers.js +++ b/tests/baselines/reference/shadowPrivateMembers.js @@ -4,6 +4,20 @@ class derived extends base { private n() {} } //// [shadowPrivateMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -18,6 +32,7 @@ var base = (function () { function base() { } base.prototype.n = function () { }; + __names(base.prototype, ["n"]); return base; }()); var derived = (function (_super) { @@ -26,5 +41,6 @@ var derived = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } derived.prototype.n = function () { }; + __names(derived.prototype, ["n"]); return derived; }(base)); diff --git a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js index 39b67f9026d94..cd15451c7db33 100644 --- a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js +++ b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js @@ -9,11 +9,26 @@ class CacheService implements ICache { // Should not error that property type of } //// [sigantureIsSubTypeIfTheyAreIdentical.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var CacheService = (function () { function CacheService() { } CacheService.prototype.get = function (key) { return undefined; }; + __names(CacheService.prototype, ["get"]); return CacheService; }()); diff --git a/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js b/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js index 0be7fa1444d00..77abf5d441ad2 100644 --- a/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js +++ b/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js @@ -15,16 +15,32 @@ const myVar: Foo = new Bar(); //// [signatureInstantiationWithRecursiveConstraints.js] "use strict"; // Repro from #17148 +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.myFunc = function (arg) { }; + __names(Foo.prototype, ["myFunc"]); return Foo; }()); var Bar = (function () { function Bar() { } Bar.prototype.myFunc = function (arg) { }; + __names(Bar.prototype, ["myFunc"]); return Bar; }()); var myVar = new Bar(); diff --git a/tests/baselines/reference/sourceMap-Comments.js b/tests/baselines/reference/sourceMap-Comments.js index e8177d5752c06..3bb266598faf8 100644 --- a/tests/baselines/reference/sourceMap-Comments.js +++ b/tests/baselines/reference/sourceMap-Comments.js @@ -21,6 +21,20 @@ module sas.tools { //// [sourceMap-Comments.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var sas; (function (sas) { var tools; @@ -42,6 +56,7 @@ var sas; break; } }; + __names(Test.prototype, ["doX"]); return Test; }()); tools.Test = Test; diff --git a/tests/baselines/reference/sourceMap-Comments.js.map b/tests/baselines/reference/sourceMap-Comments.js.map index 1905d050a0b97..9519c36e5e28f 100644 --- a/tests/baselines/reference/sourceMap-Comments.js.map +++ b/tests/baselines/reference/sourceMap-Comments.js.map @@ -1,2 +1,2 @@ //// [sourceMap-Comments.js.map] -{"version":3,"file":"sourceMap-Comments.js","sourceRoot":"","sources":["sourceMap-Comments.ts"],"names":[],"mappings":"AAAA,IAAO,GAAG,CAkBT;AAlBD,WAAO,GAAG;IAAC,IAAA,KAAK,CAkBf;IAlBU,WAAA,KAAK;QACZ;YAAA;YAeA,CAAC;YAdU,kBAAG,GAAV;gBACI,IAAI,CAAC,GAAW,CAAC,CAAC;gBAClB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACR,KAAK,CAAC;wBACF,KAAK,CAAC;oBACV,KAAK,CAAC;wBACF,gBAAgB;wBAChB,gBAAgB;wBAChB,KAAK,CAAC;oBACV,KAAK,CAAC;wBACF,WAAW;wBACX,KAAK,CAAC;gBACd,CAAC;YACL,CAAC;YACL,WAAC;QAAD,CAAC,AAfD,IAeC;QAfY,UAAI,OAehB,CAAA;IAEL,CAAC,EAlBU,KAAK,GAAL,SAAK,KAAL,SAAK,QAkBf;AAAD,CAAC,EAlBM,GAAG,KAAH,GAAG,QAkBT"} \ No newline at end of file +{"version":3,"file":"sourceMap-Comments.js","sourceRoot":"","sources":["sourceMap-Comments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAO,GAAG,CAkBT;AAlBD,WAAO,GAAG;IAAC,IAAA,KAAK,CAkBf;IAlBU,WAAA,KAAK;QACZ;YAAA;YAeA,CAAC;YAdU,kBAAG,GAAV;gBACI,IAAI,CAAC,GAAW,CAAC,CAAC;gBAClB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACR,KAAK,CAAC;wBACF,KAAK,CAAC;oBACV,KAAK,CAAC;wBACF,gBAAgB;wBAChB,gBAAgB;wBAChB,KAAK,CAAC;oBACV,KAAK,CAAC;wBACF,WAAW;wBACX,KAAK,CAAC;gBACd,CAAC;YACL,CAAC;;YACL,WAAC;QAAD,CAAC,AAfD,IAeC;QAfY,UAAI,OAehB,CAAA;IAEL,CAAC,EAlBU,KAAK,GAAL,SAAK,KAAL,SAAK,QAkBf;AAAD,CAAC,EAlBM,GAAG,KAAH,GAAG,QAkBT"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-Comments.sourcemap.txt b/tests/baselines/reference/sourceMap-Comments.sourcemap.txt index f6009f3fc344e..e8503301b02bc 100644 --- a/tests/baselines/reference/sourceMap-Comments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-Comments.sourcemap.txt @@ -8,6 +8,20 @@ sources: sourceMap-Comments.ts emittedFile:tests/cases/compiler/sourceMap-Comments.js sourceFile:sourceMap-Comments.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var sas; 1 > 2 >^^^^ @@ -36,10 +50,10 @@ sourceFile:sourceMap-Comments.ts > } > > } -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 8) Source(1, 11) + SourceIndex(0) -4 >Emitted(1, 9) Source(19, 2) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(15, 5) Source(1, 8) + SourceIndex(0) +3 >Emitted(15, 8) Source(1, 11) + SourceIndex(0) +4 >Emitted(15, 9) Source(19, 2) + SourceIndex(0) --- >>>(function (sas) { 1-> @@ -49,9 +63,9 @@ sourceFile:sourceMap-Comments.ts 1-> 2 >module 3 > sas -1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 11) + SourceIndex(0) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(16, 12) Source(1, 8) + SourceIndex(0) +3 >Emitted(16, 15) Source(1, 11) + SourceIndex(0) --- >>> var tools; 1->^^^^ @@ -81,10 +95,10 @@ sourceFile:sourceMap-Comments.ts > } > > } -1->Emitted(3, 5) Source(1, 12) + SourceIndex(0) -2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) -3 >Emitted(3, 14) Source(1, 17) + SourceIndex(0) -4 >Emitted(3, 15) Source(19, 2) + SourceIndex(0) +1->Emitted(17, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(17, 9) Source(1, 12) + SourceIndex(0) +3 >Emitted(17, 14) Source(1, 17) + SourceIndex(0) +4 >Emitted(17, 15) Source(19, 2) + SourceIndex(0) --- >>> (function (tools) { 1->^^^^ @@ -94,22 +108,22 @@ sourceFile:sourceMap-Comments.ts 1-> 2 > 3 > tools -1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) -2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) -3 >Emitted(4, 21) Source(1, 17) + SourceIndex(0) +1->Emitted(18, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(18, 16) Source(1, 12) + SourceIndex(0) +3 >Emitted(18, 21) Source(1, 17) + SourceIndex(0) --- >>> var Test = (function () { 1->^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) +1->Emitted(19, 9) Source(2, 5) + SourceIndex(0) --- >>> function Test() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(6, 13) Source(2, 5) + SourceIndex(0) +1->Emitted(20, 13) Source(2, 5) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -132,8 +146,8 @@ sourceFile:sourceMap-Comments.ts > } > 2 > } -1->Emitted(7, 13) Source(17, 5) + SourceIndex(0) -2 >Emitted(7, 14) Source(17, 6) + SourceIndex(0) +1->Emitted(21, 13) Source(17, 5) + SourceIndex(0) +2 >Emitted(21, 14) Source(17, 6) + SourceIndex(0) --- >>> Test.prototype.doX = function () { 1->^^^^^^^^^^^^ @@ -142,9 +156,9 @@ sourceFile:sourceMap-Comments.ts 1-> 2 > doX 3 > -1->Emitted(8, 13) Source(3, 16) + SourceIndex(0) -2 >Emitted(8, 31) Source(3, 19) + SourceIndex(0) -3 >Emitted(8, 34) Source(3, 9) + SourceIndex(0) +1->Emitted(22, 13) Source(3, 16) + SourceIndex(0) +2 >Emitted(22, 31) Source(3, 19) + SourceIndex(0) +3 >Emitted(22, 34) Source(3, 9) + SourceIndex(0) --- >>> var f = 2; 1 >^^^^^^^^^^^^^^^^ @@ -161,12 +175,12 @@ sourceFile:sourceMap-Comments.ts 4 > : number = 5 > 2 6 > ; -1 >Emitted(9, 17) Source(4, 13) + SourceIndex(0) -2 >Emitted(9, 21) Source(4, 17) + SourceIndex(0) -3 >Emitted(9, 22) Source(4, 18) + SourceIndex(0) -4 >Emitted(9, 25) Source(4, 29) + SourceIndex(0) -5 >Emitted(9, 26) Source(4, 30) + SourceIndex(0) -6 >Emitted(9, 27) Source(4, 31) + SourceIndex(0) +1 >Emitted(23, 17) Source(4, 13) + SourceIndex(0) +2 >Emitted(23, 21) Source(4, 17) + SourceIndex(0) +3 >Emitted(23, 22) Source(4, 18) + SourceIndex(0) +4 >Emitted(23, 25) Source(4, 29) + SourceIndex(0) +5 >Emitted(23, 26) Source(4, 30) + SourceIndex(0) +6 >Emitted(23, 27) Source(4, 31) + SourceIndex(0) --- >>> switch (f) { 1->^^^^^^^^^^^^^^^^ @@ -186,14 +200,14 @@ sourceFile:sourceMap-Comments.ts 6 > ) 7 > 8 > { -1->Emitted(10, 17) Source(5, 13) + SourceIndex(0) -2 >Emitted(10, 23) Source(5, 19) + SourceIndex(0) -3 >Emitted(10, 24) Source(5, 20) + SourceIndex(0) -4 >Emitted(10, 25) Source(5, 21) + SourceIndex(0) -5 >Emitted(10, 26) Source(5, 22) + SourceIndex(0) -6 >Emitted(10, 27) Source(5, 23) + SourceIndex(0) -7 >Emitted(10, 28) Source(5, 24) + SourceIndex(0) -8 >Emitted(10, 29) Source(5, 25) + SourceIndex(0) +1->Emitted(24, 17) Source(5, 13) + SourceIndex(0) +2 >Emitted(24, 23) Source(5, 19) + SourceIndex(0) +3 >Emitted(24, 24) Source(5, 20) + SourceIndex(0) +4 >Emitted(24, 25) Source(5, 21) + SourceIndex(0) +5 >Emitted(24, 26) Source(5, 22) + SourceIndex(0) +6 >Emitted(24, 27) Source(5, 23) + SourceIndex(0) +7 >Emitted(24, 28) Source(5, 24) + SourceIndex(0) +8 >Emitted(24, 29) Source(5, 25) + SourceIndex(0) --- >>> case 1: 1 >^^^^^^^^^^^^^^^^^^^^ @@ -204,9 +218,9 @@ sourceFile:sourceMap-Comments.ts > 2 > case 3 > 1 -1 >Emitted(11, 21) Source(6, 17) + SourceIndex(0) -2 >Emitted(11, 26) Source(6, 22) + SourceIndex(0) -3 >Emitted(11, 27) Source(6, 23) + SourceIndex(0) +1 >Emitted(25, 21) Source(6, 17) + SourceIndex(0) +2 >Emitted(25, 26) Source(6, 22) + SourceIndex(0) +3 >Emitted(25, 27) Source(6, 23) + SourceIndex(0) --- >>> break; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -216,9 +230,9 @@ sourceFile:sourceMap-Comments.ts > 2 > break 3 > ; -1->Emitted(12, 25) Source(7, 21) + SourceIndex(0) -2 >Emitted(12, 30) Source(7, 26) + SourceIndex(0) -3 >Emitted(12, 31) Source(7, 27) + SourceIndex(0) +1->Emitted(26, 25) Source(7, 21) + SourceIndex(0) +2 >Emitted(26, 30) Source(7, 26) + SourceIndex(0) +3 >Emitted(26, 31) Source(7, 27) + SourceIndex(0) --- >>> case 2: 1 >^^^^^^^^^^^^^^^^^^^^ @@ -229,9 +243,9 @@ sourceFile:sourceMap-Comments.ts > 2 > case 3 > 2 -1 >Emitted(13, 21) Source(8, 17) + SourceIndex(0) -2 >Emitted(13, 26) Source(8, 22) + SourceIndex(0) -3 >Emitted(13, 27) Source(8, 23) + SourceIndex(0) +1 >Emitted(27, 21) Source(8, 17) + SourceIndex(0) +2 >Emitted(27, 26) Source(8, 22) + SourceIndex(0) +3 >Emitted(27, 27) Source(8, 23) + SourceIndex(0) --- >>> //line comment 1 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -240,8 +254,8 @@ sourceFile:sourceMap-Comments.ts 1->: > 2 > //line comment 1 -1->Emitted(14, 25) Source(9, 21) + SourceIndex(0) -2 >Emitted(14, 41) Source(9, 37) + SourceIndex(0) +1->Emitted(28, 25) Source(9, 21) + SourceIndex(0) +2 >Emitted(28, 41) Source(9, 37) + SourceIndex(0) --- >>> //line comment 2 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -249,8 +263,8 @@ sourceFile:sourceMap-Comments.ts 1-> > 2 > //line comment 2 -1->Emitted(15, 25) Source(10, 21) + SourceIndex(0) -2 >Emitted(15, 41) Source(10, 37) + SourceIndex(0) +1->Emitted(29, 25) Source(10, 21) + SourceIndex(0) +2 >Emitted(29, 41) Source(10, 37) + SourceIndex(0) --- >>> break; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -260,9 +274,9 @@ sourceFile:sourceMap-Comments.ts > 2 > break 3 > ; -1 >Emitted(16, 25) Source(11, 21) + SourceIndex(0) -2 >Emitted(16, 30) Source(11, 26) + SourceIndex(0) -3 >Emitted(16, 31) Source(11, 27) + SourceIndex(0) +1 >Emitted(30, 25) Source(11, 21) + SourceIndex(0) +2 >Emitted(30, 30) Source(11, 26) + SourceIndex(0) +3 >Emitted(30, 31) Source(11, 27) + SourceIndex(0) --- >>> case 3: 1 >^^^^^^^^^^^^^^^^^^^^ @@ -273,9 +287,9 @@ sourceFile:sourceMap-Comments.ts > 2 > case 3 > 3 -1 >Emitted(17, 21) Source(12, 17) + SourceIndex(0) -2 >Emitted(17, 26) Source(12, 22) + SourceIndex(0) -3 >Emitted(17, 27) Source(12, 23) + SourceIndex(0) +1 >Emitted(31, 21) Source(12, 17) + SourceIndex(0) +2 >Emitted(31, 26) Source(12, 22) + SourceIndex(0) +3 >Emitted(31, 27) Source(12, 23) + SourceIndex(0) --- >>> //a comment 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -283,8 +297,8 @@ sourceFile:sourceMap-Comments.ts 1->: > 2 > //a comment -1->Emitted(18, 25) Source(13, 21) + SourceIndex(0) -2 >Emitted(18, 36) Source(13, 32) + SourceIndex(0) +1->Emitted(32, 25) Source(13, 21) + SourceIndex(0) +2 >Emitted(32, 36) Source(13, 32) + SourceIndex(0) --- >>> break; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -294,9 +308,9 @@ sourceFile:sourceMap-Comments.ts > 2 > break 3 > ; -1 >Emitted(19, 25) Source(14, 21) + SourceIndex(0) -2 >Emitted(19, 30) Source(14, 26) + SourceIndex(0) -3 >Emitted(19, 31) Source(14, 27) + SourceIndex(0) +1 >Emitted(33, 25) Source(14, 21) + SourceIndex(0) +2 >Emitted(33, 30) Source(14, 26) + SourceIndex(0) +3 >Emitted(33, 31) Source(14, 27) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -304,27 +318,28 @@ sourceFile:sourceMap-Comments.ts 1 > > 2 > } -1 >Emitted(20, 17) Source(15, 13) + SourceIndex(0) -2 >Emitted(20, 18) Source(15, 14) + SourceIndex(0) +1 >Emitted(34, 17) Source(15, 13) + SourceIndex(0) +2 >Emitted(34, 18) Source(15, 14) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(21, 13) Source(16, 9) + SourceIndex(0) -2 >Emitted(21, 14) Source(16, 10) + SourceIndex(0) +1 >Emitted(35, 13) Source(16, 9) + SourceIndex(0) +2 >Emitted(35, 14) Source(16, 10) + SourceIndex(0) --- +>>> __names(Test.prototype, ["doX"]); >>> return Test; 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^ 1-> > 2 > } -1->Emitted(22, 13) Source(17, 5) + SourceIndex(0) -2 >Emitted(22, 24) Source(17, 6) + SourceIndex(0) +1->Emitted(37, 13) Source(17, 5) + SourceIndex(0) +2 >Emitted(37, 24) Source(17, 6) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -351,10 +366,10 @@ sourceFile:sourceMap-Comments.ts > } > } > } -1 >Emitted(23, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(23, 10) Source(17, 6) + SourceIndex(0) -3 >Emitted(23, 10) Source(2, 5) + SourceIndex(0) -4 >Emitted(23, 14) Source(17, 6) + SourceIndex(0) +1 >Emitted(38, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(38, 10) Source(17, 6) + SourceIndex(0) +3 >Emitted(38, 10) Source(2, 5) + SourceIndex(0) +4 >Emitted(38, 14) Source(17, 6) + SourceIndex(0) --- >>> tools.Test = Test; 1->^^^^^^^^ @@ -381,10 +396,10 @@ sourceFile:sourceMap-Comments.ts > } > } 4 > -1->Emitted(24, 9) Source(2, 18) + SourceIndex(0) -2 >Emitted(24, 19) Source(2, 22) + SourceIndex(0) -3 >Emitted(24, 26) Source(17, 6) + SourceIndex(0) -4 >Emitted(24, 27) Source(17, 6) + SourceIndex(0) +1->Emitted(39, 9) Source(2, 18) + SourceIndex(0) +2 >Emitted(39, 19) Source(2, 22) + SourceIndex(0) +3 >Emitted(39, 26) Source(17, 6) + SourceIndex(0) +4 >Emitted(39, 27) Source(17, 6) + SourceIndex(0) --- >>> })(tools = sas.tools || (sas.tools = {})); 1->^^^^ @@ -425,15 +440,15 @@ sourceFile:sourceMap-Comments.ts > } > > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(0) -2 >Emitted(25, 6) Source(19, 2) + SourceIndex(0) -3 >Emitted(25, 8) Source(1, 12) + SourceIndex(0) -4 >Emitted(25, 13) Source(1, 17) + SourceIndex(0) -5 >Emitted(25, 16) Source(1, 12) + SourceIndex(0) -6 >Emitted(25, 25) Source(1, 17) + SourceIndex(0) -7 >Emitted(25, 30) Source(1, 12) + SourceIndex(0) -8 >Emitted(25, 39) Source(1, 17) + SourceIndex(0) -9 >Emitted(25, 47) Source(19, 2) + SourceIndex(0) +1->Emitted(40, 5) Source(19, 1) + SourceIndex(0) +2 >Emitted(40, 6) Source(19, 2) + SourceIndex(0) +3 >Emitted(40, 8) Source(1, 12) + SourceIndex(0) +4 >Emitted(40, 13) Source(1, 17) + SourceIndex(0) +5 >Emitted(40, 16) Source(1, 12) + SourceIndex(0) +6 >Emitted(40, 25) Source(1, 17) + SourceIndex(0) +7 >Emitted(40, 30) Source(1, 12) + SourceIndex(0) +8 >Emitted(40, 39) Source(1, 17) + SourceIndex(0) +9 >Emitted(40, 47) Source(19, 2) + SourceIndex(0) --- >>>})(sas || (sas = {})); 1 > @@ -469,12 +484,12 @@ sourceFile:sourceMap-Comments.ts > } > > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(0) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(0) -3 >Emitted(26, 4) Source(1, 8) + SourceIndex(0) -4 >Emitted(26, 7) Source(1, 11) + SourceIndex(0) -5 >Emitted(26, 12) Source(1, 8) + SourceIndex(0) -6 >Emitted(26, 15) Source(1, 11) + SourceIndex(0) -7 >Emitted(26, 23) Source(19, 2) + SourceIndex(0) +1 >Emitted(41, 1) Source(19, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(19, 2) + SourceIndex(0) +3 >Emitted(41, 4) Source(1, 8) + SourceIndex(0) +4 >Emitted(41, 7) Source(1, 11) + SourceIndex(0) +5 >Emitted(41, 12) Source(1, 8) + SourceIndex(0) +6 >Emitted(41, 15) Source(1, 11) + SourceIndex(0) +7 >Emitted(41, 23) Source(19, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMap-Comments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js b/tests/baselines/reference/sourceMap-FileWithComments.js index 7fd47997c972c..d80dec6a2aec5 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js +++ b/tests/baselines/reference/sourceMap-FileWithComments.js @@ -36,6 +36,20 @@ var p: IPoint = new Shapes.Point(3, 4); var dist = p.getDist(); //// [sourceMap-FileWithComments.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Module var Shapes; (function (Shapes) { @@ -48,6 +62,7 @@ var Shapes; } // Instance member Point.prototype.getDist = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; + __names(Point.prototype, ["getDist"]); // Static member Point.origin = new Point(0, 0); return Point; diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js.map b/tests/baselines/reference/sourceMap-FileWithComments.js.map index 073fa862fc771..0a1b761f1ec9c 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js.map +++ b/tests/baselines/reference/sourceMap-FileWithComments.js.map @@ -1,2 +1,2 @@ //// [sourceMap-FileWithComments.js.map] -{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":[],"mappings":"AAKA,SAAS;AACT,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM;IAET,QAAQ;IACR;QACI,cAAc;QACd,eAAmB,CAAS,EAAS,CAAS;YAA3B,MAAC,GAAD,CAAC,CAAQ;YAAS,MAAC,GAAD,CAAC,CAAQ;QAAI,CAAC;QAEnD,kBAAkB;QAClB,uBAAO,GAAP,cAAY,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAElE,gBAAgB;QACT,YAAM,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpC,YAAC;KAAA,AATD,IASC;IATY,YAAK,QASjB,CAAA;IAED,+BAA+B;IAC/B,IAAI,CAAC,GAAG,EAAE,CAAC;IAEX;IACA,CAAC;IADe,UAAG,MAClB,CAAA;IAED;;MAEE;IACF,IAAI,CAAC,GAAG,EAAE,CAAC;AACf,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAED,qBAAqB;AACrB,IAAI,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sourceMap-FileWithComments.js","sourceRoot":"","sources":["sourceMap-FileWithComments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA,SAAS;AACT,IAAO,MAAM,CAwBZ;AAxBD,WAAO,MAAM;IAET,QAAQ;IACR;QACI,cAAc;QACd,eAAmB,CAAS,EAAS,CAAS;YAA3B,MAAC,GAAD,CAAC,CAAQ;YAAS,MAAC,GAAD,CAAC,CAAQ;QAAI,CAAC;QAEnD,kBAAkB;QAClB,uBAAO,GAAP,cAAY,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;QAElE,gBAAgB;QACT,YAAM,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpC,YAAC;KAAA,AATD,IASC;IATY,YAAK,QASjB,CAAA;IAED,+BAA+B;IAC/B,IAAI,CAAC,GAAG,EAAE,CAAC;IAEX;IACA,CAAC;IADe,UAAG,MAClB,CAAA;IAED;;MAEE;IACF,IAAI,CAAC,GAAG,EAAE,CAAC;AACf,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ;AAED,qBAAqB;AACrB,IAAI,CAAC,GAAW,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt index b53a0a4a7ce94..bcd7d9e1878e6 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt @@ -8,6 +8,20 @@ sources: sourceMap-FileWithComments.ts emittedFile:tests/cases/compiler/sourceMap-FileWithComments.js sourceFile:sourceMap-FileWithComments.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>// Module 1 > 2 >^^^^^^^^^ @@ -19,8 +33,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 >// Module -1 >Emitted(1, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(1, 10) Source(6, 10) + SourceIndex(0) +1 >Emitted(15, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(15, 10) Source(6, 10) + SourceIndex(0) --- >>>var Shapes; 1-> @@ -57,10 +71,10 @@ sourceFile:sourceMap-FileWithComments.ts > */ > var b = 10; > } -1->Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(7, 8) + SourceIndex(0) -3 >Emitted(2, 11) Source(7, 14) + SourceIndex(0) -4 >Emitted(2, 12) Source(31, 2) + SourceIndex(0) +1->Emitted(16, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(16, 5) Source(7, 8) + SourceIndex(0) +3 >Emitted(16, 11) Source(7, 14) + SourceIndex(0) +4 >Emitted(16, 12) Source(31, 2) + SourceIndex(0) --- >>>(function (Shapes) { 1-> @@ -69,9 +83,9 @@ sourceFile:sourceMap-FileWithComments.ts 1-> 2 >module 3 > Shapes -1->Emitted(3, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(3, 12) Source(7, 8) + SourceIndex(0) -3 >Emitted(3, 18) Source(7, 14) + SourceIndex(0) +1->Emitted(17, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(17, 12) Source(7, 8) + SourceIndex(0) +3 >Emitted(17, 18) Source(7, 14) + SourceIndex(0) --- >>> // Class 1 >^^^^ @@ -81,15 +95,15 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Class -1 >Emitted(4, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(4, 13) Source(9, 13) + SourceIndex(0) +1 >Emitted(18, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(18, 13) Source(9, 13) + SourceIndex(0) --- >>> var Point = (function () { 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(5, 5) Source(10, 5) + SourceIndex(0) +1->Emitted(19, 5) Source(10, 5) + SourceIndex(0) --- >>> // Constructor 1->^^^^^^^^ @@ -98,8 +112,8 @@ sourceFile:sourceMap-FileWithComments.ts 1->export class Point implements IPoint { > 2 > // Constructor -1->Emitted(6, 9) Source(11, 9) + SourceIndex(0) -2 >Emitted(6, 23) Source(11, 23) + SourceIndex(0) +1->Emitted(20, 9) Source(11, 9) + SourceIndex(0) +2 >Emitted(20, 23) Source(11, 23) + SourceIndex(0) --- >>> function Point(x, y) { 1->^^^^^^^^ @@ -113,11 +127,11 @@ sourceFile:sourceMap-FileWithComments.ts 3 > x: number 4 > , public 5 > y: number -1->Emitted(7, 9) Source(12, 9) + SourceIndex(0) -2 >Emitted(7, 24) Source(12, 28) + SourceIndex(0) -3 >Emitted(7, 25) Source(12, 37) + SourceIndex(0) -4 >Emitted(7, 27) Source(12, 46) + SourceIndex(0) -5 >Emitted(7, 28) Source(12, 55) + SourceIndex(0) +1->Emitted(21, 9) Source(12, 9) + SourceIndex(0) +2 >Emitted(21, 24) Source(12, 28) + SourceIndex(0) +3 >Emitted(21, 25) Source(12, 37) + SourceIndex(0) +4 >Emitted(21, 27) Source(12, 46) + SourceIndex(0) +5 >Emitted(21, 28) Source(12, 55) + SourceIndex(0) --- >>> this.x = x; 1 >^^^^^^^^^^^^ @@ -131,11 +145,11 @@ sourceFile:sourceMap-FileWithComments.ts 3 > 4 > x 5 > : number -1 >Emitted(8, 13) Source(12, 28) + SourceIndex(0) -2 >Emitted(8, 19) Source(12, 29) + SourceIndex(0) -3 >Emitted(8, 22) Source(12, 28) + SourceIndex(0) -4 >Emitted(8, 23) Source(12, 29) + SourceIndex(0) -5 >Emitted(8, 24) Source(12, 37) + SourceIndex(0) +1 >Emitted(22, 13) Source(12, 28) + SourceIndex(0) +2 >Emitted(22, 19) Source(12, 29) + SourceIndex(0) +3 >Emitted(22, 22) Source(12, 28) + SourceIndex(0) +4 >Emitted(22, 23) Source(12, 29) + SourceIndex(0) +5 >Emitted(22, 24) Source(12, 37) + SourceIndex(0) --- >>> this.y = y; 1->^^^^^^^^^^^^ @@ -148,11 +162,11 @@ sourceFile:sourceMap-FileWithComments.ts 3 > 4 > y 5 > : number -1->Emitted(9, 13) Source(12, 46) + SourceIndex(0) -2 >Emitted(9, 19) Source(12, 47) + SourceIndex(0) -3 >Emitted(9, 22) Source(12, 46) + SourceIndex(0) -4 >Emitted(9, 23) Source(12, 47) + SourceIndex(0) -5 >Emitted(9, 24) Source(12, 55) + SourceIndex(0) +1->Emitted(23, 13) Source(12, 46) + SourceIndex(0) +2 >Emitted(23, 19) Source(12, 47) + SourceIndex(0) +3 >Emitted(23, 22) Source(12, 46) + SourceIndex(0) +4 >Emitted(23, 23) Source(12, 47) + SourceIndex(0) +5 >Emitted(23, 24) Source(12, 55) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -160,8 +174,8 @@ sourceFile:sourceMap-FileWithComments.ts 3 > ^^^^^^^^^^^^^^^^^^-> 1 >) { 2 > } -1 >Emitted(10, 9) Source(12, 59) + SourceIndex(0) -2 >Emitted(10, 10) Source(12, 60) + SourceIndex(0) +1 >Emitted(24, 9) Source(12, 59) + SourceIndex(0) +2 >Emitted(24, 10) Source(12, 60) + SourceIndex(0) --- >>> // Instance member 1->^^^^^^^^ @@ -171,8 +185,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Instance member -1->Emitted(11, 9) Source(14, 9) + SourceIndex(0) -2 >Emitted(11, 27) Source(14, 27) + SourceIndex(0) +1->Emitted(25, 9) Source(14, 9) + SourceIndex(0) +2 >Emitted(25, 27) Source(14, 27) + SourceIndex(0) --- >>> Point.prototype.getDist = function () { return Math.sqrt(this.x * this.x + this.y * this.y); }; 1->^^^^^^^^ @@ -234,36 +248,37 @@ sourceFile:sourceMap-FileWithComments.ts 27> ; 28> 29> } -1->Emitted(12, 9) Source(15, 9) + SourceIndex(0) -2 >Emitted(12, 32) Source(15, 16) + SourceIndex(0) -3 >Emitted(12, 35) Source(15, 9) + SourceIndex(0) -4 >Emitted(12, 49) Source(15, 21) + SourceIndex(0) -5 >Emitted(12, 55) Source(15, 27) + SourceIndex(0) -6 >Emitted(12, 56) Source(15, 28) + SourceIndex(0) -7 >Emitted(12, 60) Source(15, 32) + SourceIndex(0) -8 >Emitted(12, 61) Source(15, 33) + SourceIndex(0) -9 >Emitted(12, 65) Source(15, 37) + SourceIndex(0) -10>Emitted(12, 66) Source(15, 38) + SourceIndex(0) -11>Emitted(12, 70) Source(15, 42) + SourceIndex(0) -12>Emitted(12, 71) Source(15, 43) + SourceIndex(0) -13>Emitted(12, 72) Source(15, 44) + SourceIndex(0) -14>Emitted(12, 75) Source(15, 47) + SourceIndex(0) -15>Emitted(12, 79) Source(15, 51) + SourceIndex(0) -16>Emitted(12, 80) Source(15, 52) + SourceIndex(0) -17>Emitted(12, 81) Source(15, 53) + SourceIndex(0) -18>Emitted(12, 84) Source(15, 56) + SourceIndex(0) -19>Emitted(12, 88) Source(15, 60) + SourceIndex(0) -20>Emitted(12, 89) Source(15, 61) + SourceIndex(0) -21>Emitted(12, 90) Source(15, 62) + SourceIndex(0) -22>Emitted(12, 93) Source(15, 65) + SourceIndex(0) -23>Emitted(12, 97) Source(15, 69) + SourceIndex(0) -24>Emitted(12, 98) Source(15, 70) + SourceIndex(0) -25>Emitted(12, 99) Source(15, 71) + SourceIndex(0) -26>Emitted(12, 100) Source(15, 72) + SourceIndex(0) -27>Emitted(12, 101) Source(15, 73) + SourceIndex(0) -28>Emitted(12, 102) Source(15, 74) + SourceIndex(0) -29>Emitted(12, 103) Source(15, 75) + SourceIndex(0) +1->Emitted(26, 9) Source(15, 9) + SourceIndex(0) +2 >Emitted(26, 32) Source(15, 16) + SourceIndex(0) +3 >Emitted(26, 35) Source(15, 9) + SourceIndex(0) +4 >Emitted(26, 49) Source(15, 21) + SourceIndex(0) +5 >Emitted(26, 55) Source(15, 27) + SourceIndex(0) +6 >Emitted(26, 56) Source(15, 28) + SourceIndex(0) +7 >Emitted(26, 60) Source(15, 32) + SourceIndex(0) +8 >Emitted(26, 61) Source(15, 33) + SourceIndex(0) +9 >Emitted(26, 65) Source(15, 37) + SourceIndex(0) +10>Emitted(26, 66) Source(15, 38) + SourceIndex(0) +11>Emitted(26, 70) Source(15, 42) + SourceIndex(0) +12>Emitted(26, 71) Source(15, 43) + SourceIndex(0) +13>Emitted(26, 72) Source(15, 44) + SourceIndex(0) +14>Emitted(26, 75) Source(15, 47) + SourceIndex(0) +15>Emitted(26, 79) Source(15, 51) + SourceIndex(0) +16>Emitted(26, 80) Source(15, 52) + SourceIndex(0) +17>Emitted(26, 81) Source(15, 53) + SourceIndex(0) +18>Emitted(26, 84) Source(15, 56) + SourceIndex(0) +19>Emitted(26, 88) Source(15, 60) + SourceIndex(0) +20>Emitted(26, 89) Source(15, 61) + SourceIndex(0) +21>Emitted(26, 90) Source(15, 62) + SourceIndex(0) +22>Emitted(26, 93) Source(15, 65) + SourceIndex(0) +23>Emitted(26, 97) Source(15, 69) + SourceIndex(0) +24>Emitted(26, 98) Source(15, 70) + SourceIndex(0) +25>Emitted(26, 99) Source(15, 71) + SourceIndex(0) +26>Emitted(26, 100) Source(15, 72) + SourceIndex(0) +27>Emitted(26, 101) Source(15, 73) + SourceIndex(0) +28>Emitted(26, 102) Source(15, 74) + SourceIndex(0) +29>Emitted(26, 103) Source(15, 75) + SourceIndex(0) --- +>>> __names(Point.prototype, ["getDist"]); >>> // Static member 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^ @@ -272,8 +287,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Static member -1 >Emitted(13, 9) Source(17, 9) + SourceIndex(0) -2 >Emitted(13, 25) Source(17, 25) + SourceIndex(0) +1 >Emitted(28, 9) Source(17, 9) + SourceIndex(0) +2 >Emitted(28, 25) Source(17, 25) + SourceIndex(0) --- >>> Point.origin = new Point(0, 0); 1->^^^^^^^^ @@ -299,17 +314,17 @@ sourceFile:sourceMap-FileWithComments.ts 9 > 0 10> ) 11> ; -1->Emitted(14, 9) Source(18, 16) + SourceIndex(0) -2 >Emitted(14, 21) Source(18, 22) + SourceIndex(0) -3 >Emitted(14, 24) Source(18, 25) + SourceIndex(0) -4 >Emitted(14, 28) Source(18, 29) + SourceIndex(0) -5 >Emitted(14, 33) Source(18, 34) + SourceIndex(0) -6 >Emitted(14, 34) Source(18, 35) + SourceIndex(0) -7 >Emitted(14, 35) Source(18, 36) + SourceIndex(0) -8 >Emitted(14, 37) Source(18, 38) + SourceIndex(0) -9 >Emitted(14, 38) Source(18, 39) + SourceIndex(0) -10>Emitted(14, 39) Source(18, 40) + SourceIndex(0) -11>Emitted(14, 40) Source(18, 41) + SourceIndex(0) +1->Emitted(29, 9) Source(18, 16) + SourceIndex(0) +2 >Emitted(29, 21) Source(18, 22) + SourceIndex(0) +3 >Emitted(29, 24) Source(18, 25) + SourceIndex(0) +4 >Emitted(29, 28) Source(18, 29) + SourceIndex(0) +5 >Emitted(29, 33) Source(18, 34) + SourceIndex(0) +6 >Emitted(29, 34) Source(18, 35) + SourceIndex(0) +7 >Emitted(29, 35) Source(18, 36) + SourceIndex(0) +8 >Emitted(29, 37) Source(18, 38) + SourceIndex(0) +9 >Emitted(29, 38) Source(18, 39) + SourceIndex(0) +10>Emitted(29, 39) Source(18, 40) + SourceIndex(0) +11>Emitted(29, 40) Source(18, 41) + SourceIndex(0) --- >>> return Point; 1 >^^^^^^^^ @@ -317,8 +332,8 @@ sourceFile:sourceMap-FileWithComments.ts 1 > > 2 > } -1 >Emitted(15, 9) Source(19, 5) + SourceIndex(0) -2 >Emitted(15, 21) Source(19, 6) + SourceIndex(0) +1 >Emitted(30, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(30, 21) Source(19, 6) + SourceIndex(0) --- >>> }()); 1 >^^^^^ @@ -337,9 +352,9 @@ sourceFile:sourceMap-FileWithComments.ts > // Static member > static origin = new Point(0, 0); > } -1 >Emitted(16, 6) Source(19, 6) + SourceIndex(0) -2 >Emitted(16, 6) Source(10, 5) + SourceIndex(0) -3 >Emitted(16, 10) Source(19, 6) + SourceIndex(0) +1 >Emitted(31, 6) Source(19, 6) + SourceIndex(0) +2 >Emitted(31, 6) Source(10, 5) + SourceIndex(0) +3 >Emitted(31, 10) Source(19, 6) + SourceIndex(0) --- >>> Shapes.Point = Point; 1->^^^^ @@ -360,10 +375,10 @@ sourceFile:sourceMap-FileWithComments.ts > static origin = new Point(0, 0); > } 4 > -1->Emitted(17, 5) Source(10, 18) + SourceIndex(0) -2 >Emitted(17, 17) Source(10, 23) + SourceIndex(0) -3 >Emitted(17, 25) Source(19, 6) + SourceIndex(0) -4 >Emitted(17, 26) Source(19, 6) + SourceIndex(0) +1->Emitted(32, 5) Source(10, 18) + SourceIndex(0) +2 >Emitted(32, 17) Source(10, 23) + SourceIndex(0) +3 >Emitted(32, 25) Source(19, 6) + SourceIndex(0) +4 >Emitted(32, 26) Source(19, 6) + SourceIndex(0) --- >>> // Variable comment after class 1->^^^^ @@ -372,8 +387,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 > // Variable comment after class -1->Emitted(18, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(18, 36) Source(21, 36) + SourceIndex(0) +1->Emitted(33, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(33, 36) Source(21, 36) + SourceIndex(0) --- >>> var a = 10; 1 >^^^^ @@ -390,12 +405,12 @@ sourceFile:sourceMap-FileWithComments.ts 4 > = 5 > 10 6 > ; -1 >Emitted(19, 5) Source(22, 5) + SourceIndex(0) -2 >Emitted(19, 9) Source(22, 9) + SourceIndex(0) -3 >Emitted(19, 10) Source(22, 10) + SourceIndex(0) -4 >Emitted(19, 13) Source(22, 13) + SourceIndex(0) -5 >Emitted(19, 15) Source(22, 15) + SourceIndex(0) -6 >Emitted(19, 16) Source(22, 16) + SourceIndex(0) +1 >Emitted(34, 5) Source(22, 5) + SourceIndex(0) +2 >Emitted(34, 9) Source(22, 9) + SourceIndex(0) +3 >Emitted(34, 10) Source(22, 10) + SourceIndex(0) +4 >Emitted(34, 13) Source(22, 13) + SourceIndex(0) +5 >Emitted(34, 15) Source(22, 15) + SourceIndex(0) +6 >Emitted(34, 16) Source(22, 16) + SourceIndex(0) --- >>> function foo() { 1->^^^^ @@ -403,7 +418,7 @@ sourceFile:sourceMap-FileWithComments.ts 1-> > > -1->Emitted(20, 5) Source(24, 5) + SourceIndex(0) +1->Emitted(35, 5) Source(24, 5) + SourceIndex(0) --- >>> } 1->^^^^ @@ -412,8 +427,8 @@ sourceFile:sourceMap-FileWithComments.ts 1->export function foo() { > 2 > } -1->Emitted(21, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(21, 6) Source(25, 6) + SourceIndex(0) +1->Emitted(36, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(36, 6) Source(25, 6) + SourceIndex(0) --- >>> Shapes.foo = foo; 1->^^^^ @@ -426,10 +441,10 @@ sourceFile:sourceMap-FileWithComments.ts 3 > () { > } 4 > -1->Emitted(22, 5) Source(24, 21) + SourceIndex(0) -2 >Emitted(22, 15) Source(24, 24) + SourceIndex(0) -3 >Emitted(22, 21) Source(25, 6) + SourceIndex(0) -4 >Emitted(22, 22) Source(25, 6) + SourceIndex(0) +1->Emitted(37, 5) Source(24, 21) + SourceIndex(0) +2 >Emitted(37, 15) Source(24, 24) + SourceIndex(0) +3 >Emitted(37, 21) Source(25, 6) + SourceIndex(0) +4 >Emitted(37, 22) Source(25, 6) + SourceIndex(0) --- >>> /** comment after function 1->^^^^ @@ -437,7 +452,7 @@ sourceFile:sourceMap-FileWithComments.ts 1-> > > -1->Emitted(23, 5) Source(27, 5) + SourceIndex(0) +1->Emitted(38, 5) Source(27, 5) + SourceIndex(0) --- >>> * this is another comment >>> */ @@ -446,7 +461,7 @@ sourceFile:sourceMap-FileWithComments.ts 1->/** comment after function > * this is another comment > */ -1->Emitted(25, 7) Source(29, 7) + SourceIndex(0) +1->Emitted(40, 7) Source(29, 7) + SourceIndex(0) --- >>> var b = 10; 1->^^^^ @@ -463,12 +478,12 @@ sourceFile:sourceMap-FileWithComments.ts 4 > = 5 > 10 6 > ; -1->Emitted(26, 5) Source(30, 5) + SourceIndex(0) -2 >Emitted(26, 9) Source(30, 9) + SourceIndex(0) -3 >Emitted(26, 10) Source(30, 10) + SourceIndex(0) -4 >Emitted(26, 13) Source(30, 13) + SourceIndex(0) -5 >Emitted(26, 15) Source(30, 15) + SourceIndex(0) -6 >Emitted(26, 16) Source(30, 16) + SourceIndex(0) +1->Emitted(41, 5) Source(30, 5) + SourceIndex(0) +2 >Emitted(41, 9) Source(30, 9) + SourceIndex(0) +3 >Emitted(41, 10) Source(30, 10) + SourceIndex(0) +4 >Emitted(41, 13) Source(30, 13) + SourceIndex(0) +5 >Emitted(41, 15) Source(30, 15) + SourceIndex(0) +6 >Emitted(41, 16) Source(30, 16) + SourceIndex(0) --- >>>})(Shapes || (Shapes = {})); 1-> @@ -510,13 +525,13 @@ sourceFile:sourceMap-FileWithComments.ts > */ > var b = 10; > } -1->Emitted(27, 1) Source(31, 1) + SourceIndex(0) -2 >Emitted(27, 2) Source(31, 2) + SourceIndex(0) -3 >Emitted(27, 4) Source(7, 8) + SourceIndex(0) -4 >Emitted(27, 10) Source(7, 14) + SourceIndex(0) -5 >Emitted(27, 15) Source(7, 8) + SourceIndex(0) -6 >Emitted(27, 21) Source(7, 14) + SourceIndex(0) -7 >Emitted(27, 29) Source(31, 2) + SourceIndex(0) +1->Emitted(42, 1) Source(31, 1) + SourceIndex(0) +2 >Emitted(42, 2) Source(31, 2) + SourceIndex(0) +3 >Emitted(42, 4) Source(7, 8) + SourceIndex(0) +4 >Emitted(42, 10) Source(7, 14) + SourceIndex(0) +5 >Emitted(42, 15) Source(7, 8) + SourceIndex(0) +6 >Emitted(42, 21) Source(7, 14) + SourceIndex(0) +7 >Emitted(42, 29) Source(31, 2) + SourceIndex(0) --- >>>/** Local Variable */ 1 > @@ -526,8 +541,8 @@ sourceFile:sourceMap-FileWithComments.ts > > 2 >/** Local Variable */ -1 >Emitted(28, 1) Source(33, 1) + SourceIndex(0) -2 >Emitted(28, 22) Source(33, 22) + SourceIndex(0) +1 >Emitted(43, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(43, 22) Source(33, 22) + SourceIndex(0) --- >>>var p = new Shapes.Point(3, 4); 1-> @@ -559,20 +574,20 @@ sourceFile:sourceMap-FileWithComments.ts 12> 4 13> ) 14> ; -1->Emitted(29, 1) Source(34, 1) + SourceIndex(0) -2 >Emitted(29, 5) Source(34, 5) + SourceIndex(0) -3 >Emitted(29, 6) Source(34, 6) + SourceIndex(0) -4 >Emitted(29, 9) Source(34, 17) + SourceIndex(0) -5 >Emitted(29, 13) Source(34, 21) + SourceIndex(0) -6 >Emitted(29, 19) Source(34, 27) + SourceIndex(0) -7 >Emitted(29, 20) Source(34, 28) + SourceIndex(0) -8 >Emitted(29, 25) Source(34, 33) + SourceIndex(0) -9 >Emitted(29, 26) Source(34, 34) + SourceIndex(0) -10>Emitted(29, 27) Source(34, 35) + SourceIndex(0) -11>Emitted(29, 29) Source(34, 37) + SourceIndex(0) -12>Emitted(29, 30) Source(34, 38) + SourceIndex(0) -13>Emitted(29, 31) Source(34, 39) + SourceIndex(0) -14>Emitted(29, 32) Source(34, 40) + SourceIndex(0) +1->Emitted(44, 1) Source(34, 1) + SourceIndex(0) +2 >Emitted(44, 5) Source(34, 5) + SourceIndex(0) +3 >Emitted(44, 6) Source(34, 6) + SourceIndex(0) +4 >Emitted(44, 9) Source(34, 17) + SourceIndex(0) +5 >Emitted(44, 13) Source(34, 21) + SourceIndex(0) +6 >Emitted(44, 19) Source(34, 27) + SourceIndex(0) +7 >Emitted(44, 20) Source(34, 28) + SourceIndex(0) +8 >Emitted(44, 25) Source(34, 33) + SourceIndex(0) +9 >Emitted(44, 26) Source(34, 34) + SourceIndex(0) +10>Emitted(44, 27) Source(34, 35) + SourceIndex(0) +11>Emitted(44, 29) Source(34, 37) + SourceIndex(0) +12>Emitted(44, 30) Source(34, 38) + SourceIndex(0) +13>Emitted(44, 31) Source(34, 39) + SourceIndex(0) +14>Emitted(44, 32) Source(34, 40) + SourceIndex(0) --- >>>var dist = p.getDist(); 1 > @@ -595,14 +610,14 @@ sourceFile:sourceMap-FileWithComments.ts 7 > getDist 8 > () 9 > ; -1 >Emitted(30, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(30, 5) Source(35, 5) + SourceIndex(0) -3 >Emitted(30, 9) Source(35, 9) + SourceIndex(0) -4 >Emitted(30, 12) Source(35, 12) + SourceIndex(0) -5 >Emitted(30, 13) Source(35, 13) + SourceIndex(0) -6 >Emitted(30, 14) Source(35, 14) + SourceIndex(0) -7 >Emitted(30, 21) Source(35, 21) + SourceIndex(0) -8 >Emitted(30, 23) Source(35, 23) + SourceIndex(0) -9 >Emitted(30, 24) Source(35, 24) + SourceIndex(0) +1 >Emitted(45, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(45, 5) Source(35, 5) + SourceIndex(0) +3 >Emitted(45, 9) Source(35, 9) + SourceIndex(0) +4 >Emitted(45, 12) Source(35, 12) + SourceIndex(0) +5 >Emitted(45, 13) Source(35, 13) + SourceIndex(0) +6 >Emitted(45, 14) Source(35, 14) + SourceIndex(0) +7 >Emitted(45, 21) Source(35, 21) + SourceIndex(0) +8 >Emitted(45, 23) Source(35, 23) + SourceIndex(0) +9 >Emitted(45, 24) Source(35, 24) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMap-FileWithComments.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapSample.js b/tests/baselines/reference/sourceMapSample.js index 4b710b89234cf..519f2137c1d38 100644 --- a/tests/baselines/reference/sourceMapSample.js +++ b/tests/baselines/reference/sourceMapSample.js @@ -36,6 +36,20 @@ module Foo.Bar { } //// [sourceMapSample.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo; (function (Foo) { var Bar; @@ -48,6 +62,7 @@ var Foo; Greeter.prototype.greet = function () { return "

" + this.greeting + "

"; }; + __names(Greeter.prototype, ["greet"]); return Greeter; }()); function foo(greeting) { diff --git a/tests/baselines/reference/sourceMapSample.js.map b/tests/baselines/reference/sourceMapSample.js.map index 783ff610f6642..384d9345c346b 100644 --- a/tests/baselines/reference/sourceMapSample.js.map +++ b/tests/baselines/reference/sourceMapSample.js.map @@ -1,2 +1,2 @@ //// [sourceMapSample.js.map] -{"version":3,"file":"sourceMapSample.js","sourceRoot":"","sources":["sourceMapSample.ts"],"names":[],"mappings":"AAAA,IAAO,GAAG,CAkCT;AAlCD,WAAO,GAAG;IAAC,IAAA,GAAG,CAkCb;IAlCU,WAAA,GAAG;QACV,YAAY,CAAC;QAEb;YACI,iBAAmB,QAAgB;gBAAhB,aAAQ,GAAR,QAAQ,CAAQ;YACnC,CAAC;YAED,uBAAK,GAAL;gBACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YAC5C,CAAC;YACL,cAAC;QAAD,CAAC,AAPD,IAOC;QAGD,aAAa,QAAgB;YACzB,MAAM,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAI,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;QAE1B,cAAc,QAAgB;YAAE,uBAA0B;iBAA1B,UAA0B,EAA1B,qBAA0B,EAA1B,IAA0B;gBAA1B,sCAA0B;;YACtD,IAAI,QAAQ,GAAc,EAAE,CAAC;YAC7B,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC;YAED,MAAM,CAAC,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QACpC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACL,CAAC,EAlCU,GAAG,GAAH,OAAG,KAAH,OAAG,QAkCb;AAAD,CAAC,EAlCM,GAAG,KAAH,GAAG,QAkCT"} \ No newline at end of file +{"version":3,"file":"sourceMapSample.js","sourceRoot":"","sources":["sourceMapSample.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAO,GAAG,CAkCT;AAlCD,WAAO,GAAG;IAAC,IAAA,GAAG,CAkCb;IAlCU,WAAA,GAAG;QACV,YAAY,CAAC;QAEb;YACI,iBAAmB,QAAgB;gBAAhB,aAAQ,GAAR,QAAQ,CAAQ;YACnC,CAAC;YAED,uBAAK,GAAL;gBACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YAC5C,CAAC;;YACL,cAAC;QAAD,CAAC,AAPD,IAOC;QAGD,aAAa,QAAgB;YACzB,MAAM,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAI,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;QAE1B,cAAc,QAAgB;YAAE,uBAA0B;iBAA1B,UAA0B,EAA1B,qBAA0B,EAA1B,IAA0B;gBAA1B,sCAA0B;;YACtD,IAAI,QAAQ,GAAc,EAAE,CAAC;YAC7B,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC;YAED,MAAM,CAAC,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QACpC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACL,CAAC,EAlCU,GAAG,GAAH,OAAG,KAAH,OAAG,QAkCb;AAAD,CAAC,EAlCM,GAAG,KAAH,GAAG,QAkCT"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapSample.sourcemap.txt b/tests/baselines/reference/sourceMapSample.sourcemap.txt index 03ded2b660978..2ffafa87c7b7b 100644 --- a/tests/baselines/reference/sourceMapSample.sourcemap.txt +++ b/tests/baselines/reference/sourceMapSample.sourcemap.txt @@ -8,6 +8,20 @@ sources: sourceMapSample.ts emittedFile:tests/cases/compiler/sourceMapSample.js sourceFile:sourceMapSample.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var Foo; 1 > 2 >^^^^ @@ -52,10 +66,10 @@ sourceFile:sourceMapSample.ts > b[j].greet(); > } > } -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 8) Source(1, 11) + SourceIndex(0) -4 >Emitted(1, 9) Source(35, 2) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(15, 5) Source(1, 8) + SourceIndex(0) +3 >Emitted(15, 8) Source(1, 11) + SourceIndex(0) +4 >Emitted(15, 9) Source(35, 2) + SourceIndex(0) --- >>>(function (Foo) { 1-> @@ -64,9 +78,9 @@ sourceFile:sourceMapSample.ts 1-> 2 >module 3 > Foo -1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 11) + SourceIndex(0) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(16, 12) Source(1, 8) + SourceIndex(0) +3 >Emitted(16, 15) Source(1, 11) + SourceIndex(0) --- >>> var Bar; 1 >^^^^ @@ -112,10 +126,10 @@ sourceFile:sourceMapSample.ts > b[j].greet(); > } > } -1 >Emitted(3, 5) Source(1, 12) + SourceIndex(0) -2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) -3 >Emitted(3, 12) Source(1, 15) + SourceIndex(0) -4 >Emitted(3, 13) Source(35, 2) + SourceIndex(0) +1 >Emitted(17, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(17, 9) Source(1, 12) + SourceIndex(0) +3 >Emitted(17, 12) Source(1, 15) + SourceIndex(0) +4 >Emitted(17, 13) Source(35, 2) + SourceIndex(0) --- >>> (function (Bar) { 1->^^^^ @@ -125,9 +139,9 @@ sourceFile:sourceMapSample.ts 1-> 2 > 3 > Bar -1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) -2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) -3 >Emitted(4, 19) Source(1, 15) + SourceIndex(0) +1->Emitted(18, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(18, 16) Source(1, 12) + SourceIndex(0) +3 >Emitted(18, 19) Source(1, 15) + SourceIndex(0) --- >>> "use strict"; 1->^^^^^^^^ @@ -138,9 +152,9 @@ sourceFile:sourceMapSample.ts > 2 > "use strict" 3 > ; -1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(5, 21) Source(2, 17) + SourceIndex(0) -3 >Emitted(5, 22) Source(2, 18) + SourceIndex(0) +1->Emitted(19, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(19, 21) Source(2, 17) + SourceIndex(0) +3 >Emitted(19, 22) Source(2, 18) + SourceIndex(0) --- >>> var Greeter = (function () { 1->^^^^^^^^ @@ -148,7 +162,7 @@ sourceFile:sourceMapSample.ts 1-> > > -1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) +1->Emitted(20, 9) Source(4, 5) + SourceIndex(0) --- >>> function Greeter(greeting) { 1->^^^^^^^^^^^^ @@ -159,9 +173,9 @@ sourceFile:sourceMapSample.ts > 2 > constructor(public 3 > greeting: string -1->Emitted(7, 13) Source(5, 9) + SourceIndex(0) -2 >Emitted(7, 30) Source(5, 28) + SourceIndex(0) -3 >Emitted(7, 38) Source(5, 44) + SourceIndex(0) +1->Emitted(21, 13) Source(5, 9) + SourceIndex(0) +2 >Emitted(21, 30) Source(5, 28) + SourceIndex(0) +3 >Emitted(21, 38) Source(5, 44) + SourceIndex(0) --- >>> this.greeting = greeting; 1->^^^^^^^^^^^^^^^^ @@ -174,11 +188,11 @@ sourceFile:sourceMapSample.ts 3 > 4 > greeting 5 > : string -1->Emitted(8, 17) Source(5, 28) + SourceIndex(0) -2 >Emitted(8, 30) Source(5, 36) + SourceIndex(0) -3 >Emitted(8, 33) Source(5, 28) + SourceIndex(0) -4 >Emitted(8, 41) Source(5, 36) + SourceIndex(0) -5 >Emitted(8, 42) Source(5, 44) + SourceIndex(0) +1->Emitted(22, 17) Source(5, 28) + SourceIndex(0) +2 >Emitted(22, 30) Source(5, 36) + SourceIndex(0) +3 >Emitted(22, 33) Source(5, 28) + SourceIndex(0) +4 >Emitted(22, 41) Source(5, 36) + SourceIndex(0) +5 >Emitted(22, 42) Source(5, 44) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -187,8 +201,8 @@ sourceFile:sourceMapSample.ts 1 >) { > 2 > } -1 >Emitted(9, 13) Source(6, 9) + SourceIndex(0) -2 >Emitted(9, 14) Source(6, 10) + SourceIndex(0) +1 >Emitted(23, 13) Source(6, 9) + SourceIndex(0) +2 >Emitted(23, 14) Source(6, 10) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^^^^^^^^^ @@ -200,9 +214,9 @@ sourceFile:sourceMapSample.ts > 2 > greet 3 > -1->Emitted(10, 13) Source(8, 9) + SourceIndex(0) -2 >Emitted(10, 36) Source(8, 14) + SourceIndex(0) -3 >Emitted(10, 39) Source(8, 9) + SourceIndex(0) +1->Emitted(24, 13) Source(8, 9) + SourceIndex(0) +2 >Emitted(24, 36) Source(8, 14) + SourceIndex(0) +3 >Emitted(24, 39) Source(8, 9) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^^^^^^^^^ @@ -228,36 +242,37 @@ sourceFile:sourceMapSample.ts 9 > + 10> "" 11> ; -1->Emitted(11, 17) Source(9, 13) + SourceIndex(0) -2 >Emitted(11, 23) Source(9, 19) + SourceIndex(0) -3 >Emitted(11, 24) Source(9, 20) + SourceIndex(0) -4 >Emitted(11, 30) Source(9, 26) + SourceIndex(0) -5 >Emitted(11, 33) Source(9, 29) + SourceIndex(0) -6 >Emitted(11, 37) Source(9, 33) + SourceIndex(0) -7 >Emitted(11, 38) Source(9, 34) + SourceIndex(0) -8 >Emitted(11, 46) Source(9, 42) + SourceIndex(0) -9 >Emitted(11, 49) Source(9, 45) + SourceIndex(0) -10>Emitted(11, 56) Source(9, 52) + SourceIndex(0) -11>Emitted(11, 57) Source(9, 53) + SourceIndex(0) +1->Emitted(25, 17) Source(9, 13) + SourceIndex(0) +2 >Emitted(25, 23) Source(9, 19) + SourceIndex(0) +3 >Emitted(25, 24) Source(9, 20) + SourceIndex(0) +4 >Emitted(25, 30) Source(9, 26) + SourceIndex(0) +5 >Emitted(25, 33) Source(9, 29) + SourceIndex(0) +6 >Emitted(25, 37) Source(9, 33) + SourceIndex(0) +7 >Emitted(25, 38) Source(9, 34) + SourceIndex(0) +8 >Emitted(25, 46) Source(9, 42) + SourceIndex(0) +9 >Emitted(25, 49) Source(9, 45) + SourceIndex(0) +10>Emitted(25, 56) Source(9, 52) + SourceIndex(0) +11>Emitted(25, 57) Source(9, 53) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(12, 13) Source(10, 9) + SourceIndex(0) -2 >Emitted(12, 14) Source(10, 10) + SourceIndex(0) +1 >Emitted(26, 13) Source(10, 9) + SourceIndex(0) +2 >Emitted(26, 14) Source(10, 10) + SourceIndex(0) --- +>>> __names(Greeter.prototype, ["greet"]); >>> return Greeter; 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^ 1-> > 2 > } -1->Emitted(13, 13) Source(11, 5) + SourceIndex(0) -2 >Emitted(13, 27) Source(11, 6) + SourceIndex(0) +1->Emitted(28, 13) Source(11, 5) + SourceIndex(0) +2 >Emitted(28, 27) Source(11, 6) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -276,10 +291,10 @@ sourceFile:sourceMapSample.ts > return "

" + this.greeting + "

"; > } > } -1 >Emitted(14, 9) Source(11, 5) + SourceIndex(0) -2 >Emitted(14, 10) Source(11, 6) + SourceIndex(0) -3 >Emitted(14, 10) Source(4, 5) + SourceIndex(0) -4 >Emitted(14, 14) Source(11, 6) + SourceIndex(0) +1 >Emitted(29, 9) Source(11, 5) + SourceIndex(0) +2 >Emitted(29, 10) Source(11, 6) + SourceIndex(0) +3 >Emitted(29, 10) Source(4, 5) + SourceIndex(0) +4 >Emitted(29, 14) Source(11, 6) + SourceIndex(0) --- >>> function foo(greeting) { 1->^^^^^^^^ @@ -292,9 +307,9 @@ sourceFile:sourceMapSample.ts > 2 > function foo( 3 > greeting: string -1->Emitted(15, 9) Source(14, 5) + SourceIndex(0) -2 >Emitted(15, 22) Source(14, 18) + SourceIndex(0) -3 >Emitted(15, 30) Source(14, 34) + SourceIndex(0) +1->Emitted(30, 9) Source(14, 5) + SourceIndex(0) +2 >Emitted(30, 22) Source(14, 18) + SourceIndex(0) +3 >Emitted(30, 30) Source(14, 34) + SourceIndex(0) --- >>> return new Greeter(greeting); 1->^^^^^^^^^^^^ @@ -316,15 +331,15 @@ sourceFile:sourceMapSample.ts 7 > greeting 8 > ) 9 > ; -1->Emitted(16, 13) Source(15, 9) + SourceIndex(0) -2 >Emitted(16, 19) Source(15, 15) + SourceIndex(0) -3 >Emitted(16, 20) Source(15, 16) + SourceIndex(0) -4 >Emitted(16, 24) Source(15, 20) + SourceIndex(0) -5 >Emitted(16, 31) Source(15, 27) + SourceIndex(0) -6 >Emitted(16, 32) Source(15, 28) + SourceIndex(0) -7 >Emitted(16, 40) Source(15, 36) + SourceIndex(0) -8 >Emitted(16, 41) Source(15, 37) + SourceIndex(0) -9 >Emitted(16, 42) Source(15, 38) + SourceIndex(0) +1->Emitted(31, 13) Source(15, 9) + SourceIndex(0) +2 >Emitted(31, 19) Source(15, 15) + SourceIndex(0) +3 >Emitted(31, 20) Source(15, 16) + SourceIndex(0) +4 >Emitted(31, 24) Source(15, 20) + SourceIndex(0) +5 >Emitted(31, 31) Source(15, 27) + SourceIndex(0) +6 >Emitted(31, 32) Source(15, 28) + SourceIndex(0) +7 >Emitted(31, 40) Source(15, 36) + SourceIndex(0) +8 >Emitted(31, 41) Source(15, 37) + SourceIndex(0) +9 >Emitted(31, 42) Source(15, 38) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -333,8 +348,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(17, 9) Source(16, 5) + SourceIndex(0) -2 >Emitted(17, 10) Source(16, 6) + SourceIndex(0) +1 >Emitted(32, 9) Source(16, 5) + SourceIndex(0) +2 >Emitted(32, 10) Source(16, 6) + SourceIndex(0) --- >>> var greeter = new Greeter("Hello, world!"); 1->^^^^^^^^ @@ -359,16 +374,16 @@ sourceFile:sourceMapSample.ts 8 > "Hello, world!" 9 > ) 10> ; -1->Emitted(18, 9) Source(18, 5) + SourceIndex(0) -2 >Emitted(18, 13) Source(18, 9) + SourceIndex(0) -3 >Emitted(18, 20) Source(18, 16) + SourceIndex(0) -4 >Emitted(18, 23) Source(18, 19) + SourceIndex(0) -5 >Emitted(18, 27) Source(18, 23) + SourceIndex(0) -6 >Emitted(18, 34) Source(18, 30) + SourceIndex(0) -7 >Emitted(18, 35) Source(18, 31) + SourceIndex(0) -8 >Emitted(18, 50) Source(18, 46) + SourceIndex(0) -9 >Emitted(18, 51) Source(18, 47) + SourceIndex(0) -10>Emitted(18, 52) Source(18, 48) + SourceIndex(0) +1->Emitted(33, 9) Source(18, 5) + SourceIndex(0) +2 >Emitted(33, 13) Source(18, 9) + SourceIndex(0) +3 >Emitted(33, 20) Source(18, 16) + SourceIndex(0) +4 >Emitted(33, 23) Source(18, 19) + SourceIndex(0) +5 >Emitted(33, 27) Source(18, 23) + SourceIndex(0) +6 >Emitted(33, 34) Source(18, 30) + SourceIndex(0) +7 >Emitted(33, 35) Source(18, 31) + SourceIndex(0) +8 >Emitted(33, 50) Source(18, 46) + SourceIndex(0) +9 >Emitted(33, 51) Source(18, 47) + SourceIndex(0) +10>Emitted(33, 52) Source(18, 48) + SourceIndex(0) --- >>> var str = greeter.greet(); 1 >^^^^^^^^ @@ -390,15 +405,15 @@ sourceFile:sourceMapSample.ts 7 > greet 8 > () 9 > ; -1 >Emitted(19, 9) Source(19, 5) + SourceIndex(0) -2 >Emitted(19, 13) Source(19, 9) + SourceIndex(0) -3 >Emitted(19, 16) Source(19, 12) + SourceIndex(0) -4 >Emitted(19, 19) Source(19, 15) + SourceIndex(0) -5 >Emitted(19, 26) Source(19, 22) + SourceIndex(0) -6 >Emitted(19, 27) Source(19, 23) + SourceIndex(0) -7 >Emitted(19, 32) Source(19, 28) + SourceIndex(0) -8 >Emitted(19, 34) Source(19, 30) + SourceIndex(0) -9 >Emitted(19, 35) Source(19, 31) + SourceIndex(0) +1 >Emitted(34, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(34, 13) Source(19, 9) + SourceIndex(0) +3 >Emitted(34, 16) Source(19, 12) + SourceIndex(0) +4 >Emitted(34, 19) Source(19, 15) + SourceIndex(0) +5 >Emitted(34, 26) Source(19, 22) + SourceIndex(0) +6 >Emitted(34, 27) Source(19, 23) + SourceIndex(0) +7 >Emitted(34, 32) Source(19, 28) + SourceIndex(0) +8 >Emitted(34, 34) Source(19, 30) + SourceIndex(0) +9 >Emitted(34, 35) Source(19, 31) + SourceIndex(0) --- >>> function foo2(greeting) { 1 >^^^^^^^^ @@ -410,9 +425,9 @@ sourceFile:sourceMapSample.ts > 2 > function foo2( 3 > greeting: string -1 >Emitted(20, 9) Source(21, 5) + SourceIndex(0) -2 >Emitted(20, 23) Source(21, 19) + SourceIndex(0) -3 >Emitted(20, 31) Source(21, 35) + SourceIndex(0) +1 >Emitted(35, 9) Source(21, 5) + SourceIndex(0) +2 >Emitted(35, 23) Source(21, 19) + SourceIndex(0) +3 >Emitted(35, 31) Source(21, 35) + SourceIndex(0) --- >>> var restGreetings = []; 1->^^^^^^^^^^^^ @@ -420,8 +435,8 @@ sourceFile:sourceMapSample.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->, 2 > ...restGreetings: string[] -1->Emitted(21, 13) Source(21, 37) + SourceIndex(0) -2 >Emitted(21, 36) Source(21, 63) + SourceIndex(0) +1->Emitted(36, 13) Source(21, 37) + SourceIndex(0) +2 >Emitted(36, 36) Source(21, 63) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^^^^^ @@ -436,20 +451,20 @@ sourceFile:sourceMapSample.ts 4 > ...restGreetings: string[] 5 > 6 > ...restGreetings: string[] -1->Emitted(22, 18) Source(21, 37) + SourceIndex(0) -2 >Emitted(22, 28) Source(21, 63) + SourceIndex(0) -3 >Emitted(22, 30) Source(21, 37) + SourceIndex(0) -4 >Emitted(22, 51) Source(21, 63) + SourceIndex(0) -5 >Emitted(22, 53) Source(21, 37) + SourceIndex(0) -6 >Emitted(22, 57) Source(21, 63) + SourceIndex(0) +1->Emitted(37, 18) Source(21, 37) + SourceIndex(0) +2 >Emitted(37, 28) Source(21, 63) + SourceIndex(0) +3 >Emitted(37, 30) Source(21, 37) + SourceIndex(0) +4 >Emitted(37, 51) Source(21, 63) + SourceIndex(0) +5 >Emitted(37, 53) Source(21, 37) + SourceIndex(0) +6 >Emitted(37, 57) Source(21, 63) + SourceIndex(0) --- >>> restGreetings[_i - 1] = arguments[_i]; 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...restGreetings: string[] -1 >Emitted(23, 17) Source(21, 37) + SourceIndex(0) -2 >Emitted(23, 55) Source(21, 63) + SourceIndex(0) +1 >Emitted(38, 17) Source(21, 37) + SourceIndex(0) +2 >Emitted(38, 55) Source(21, 63) + SourceIndex(0) --- >>> } >>> var greeters = []; @@ -467,12 +482,12 @@ sourceFile:sourceMapSample.ts 4 > : Greeter[] = 5 > [] 6 > ; -1 >Emitted(25, 13) Source(22, 9) + SourceIndex(0) -2 >Emitted(25, 17) Source(22, 13) + SourceIndex(0) -3 >Emitted(25, 25) Source(22, 21) + SourceIndex(0) -4 >Emitted(25, 28) Source(22, 35) + SourceIndex(0) -5 >Emitted(25, 30) Source(22, 37) + SourceIndex(0) -6 >Emitted(25, 31) Source(22, 38) + SourceIndex(0) +1 >Emitted(40, 13) Source(22, 9) + SourceIndex(0) +2 >Emitted(40, 17) Source(22, 13) + SourceIndex(0) +3 >Emitted(40, 25) Source(22, 21) + SourceIndex(0) +4 >Emitted(40, 28) Source(22, 35) + SourceIndex(0) +5 >Emitted(40, 30) Source(22, 37) + SourceIndex(0) +6 >Emitted(40, 31) Source(22, 38) + SourceIndex(0) --- >>> greeters[0] = new Greeter(greeting); 1->^^^^^^^^^^^^ @@ -501,18 +516,18 @@ sourceFile:sourceMapSample.ts 10> greeting 11> ) 12> ; -1->Emitted(26, 13) Source(23, 9) + SourceIndex(0) -2 >Emitted(26, 21) Source(23, 17) + SourceIndex(0) -3 >Emitted(26, 22) Source(23, 18) + SourceIndex(0) -4 >Emitted(26, 23) Source(23, 19) + SourceIndex(0) -5 >Emitted(26, 24) Source(23, 20) + SourceIndex(0) -6 >Emitted(26, 27) Source(23, 23) + SourceIndex(0) -7 >Emitted(26, 31) Source(23, 27) + SourceIndex(0) -8 >Emitted(26, 38) Source(23, 34) + SourceIndex(0) -9 >Emitted(26, 39) Source(23, 35) + SourceIndex(0) -10>Emitted(26, 47) Source(23, 43) + SourceIndex(0) -11>Emitted(26, 48) Source(23, 44) + SourceIndex(0) -12>Emitted(26, 49) Source(23, 45) + SourceIndex(0) +1->Emitted(41, 13) Source(23, 9) + SourceIndex(0) +2 >Emitted(41, 21) Source(23, 17) + SourceIndex(0) +3 >Emitted(41, 22) Source(23, 18) + SourceIndex(0) +4 >Emitted(41, 23) Source(23, 19) + SourceIndex(0) +5 >Emitted(41, 24) Source(23, 20) + SourceIndex(0) +6 >Emitted(41, 27) Source(23, 23) + SourceIndex(0) +7 >Emitted(41, 31) Source(23, 27) + SourceIndex(0) +8 >Emitted(41, 38) Source(23, 34) + SourceIndex(0) +9 >Emitted(41, 39) Source(23, 35) + SourceIndex(0) +10>Emitted(41, 47) Source(23, 43) + SourceIndex(0) +11>Emitted(41, 48) Source(23, 44) + SourceIndex(0) +12>Emitted(41, 49) Source(23, 45) + SourceIndex(0) --- >>> for (var i = 0; i < restGreetings.length; i++) { 1->^^^^^^^^^^^^ @@ -555,25 +570,25 @@ sourceFile:sourceMapSample.ts 17> ++ 18> ) 19> { -1->Emitted(27, 13) Source(24, 9) + SourceIndex(0) -2 >Emitted(27, 16) Source(24, 12) + SourceIndex(0) -3 >Emitted(27, 17) Source(24, 13) + SourceIndex(0) -4 >Emitted(27, 18) Source(24, 14) + SourceIndex(0) -5 >Emitted(27, 22) Source(24, 18) + SourceIndex(0) -6 >Emitted(27, 23) Source(24, 19) + SourceIndex(0) -7 >Emitted(27, 26) Source(24, 22) + SourceIndex(0) -8 >Emitted(27, 27) Source(24, 23) + SourceIndex(0) -9 >Emitted(27, 29) Source(24, 25) + SourceIndex(0) -10>Emitted(27, 30) Source(24, 26) + SourceIndex(0) -11>Emitted(27, 33) Source(24, 29) + SourceIndex(0) -12>Emitted(27, 46) Source(24, 42) + SourceIndex(0) -13>Emitted(27, 47) Source(24, 43) + SourceIndex(0) -14>Emitted(27, 53) Source(24, 49) + SourceIndex(0) -15>Emitted(27, 55) Source(24, 51) + SourceIndex(0) -16>Emitted(27, 56) Source(24, 52) + SourceIndex(0) -17>Emitted(27, 58) Source(24, 54) + SourceIndex(0) -18>Emitted(27, 60) Source(24, 56) + SourceIndex(0) -19>Emitted(27, 61) Source(24, 57) + SourceIndex(0) +1->Emitted(42, 13) Source(24, 9) + SourceIndex(0) +2 >Emitted(42, 16) Source(24, 12) + SourceIndex(0) +3 >Emitted(42, 17) Source(24, 13) + SourceIndex(0) +4 >Emitted(42, 18) Source(24, 14) + SourceIndex(0) +5 >Emitted(42, 22) Source(24, 18) + SourceIndex(0) +6 >Emitted(42, 23) Source(24, 19) + SourceIndex(0) +7 >Emitted(42, 26) Source(24, 22) + SourceIndex(0) +8 >Emitted(42, 27) Source(24, 23) + SourceIndex(0) +9 >Emitted(42, 29) Source(24, 25) + SourceIndex(0) +10>Emitted(42, 30) Source(24, 26) + SourceIndex(0) +11>Emitted(42, 33) Source(24, 29) + SourceIndex(0) +12>Emitted(42, 46) Source(24, 42) + SourceIndex(0) +13>Emitted(42, 47) Source(24, 43) + SourceIndex(0) +14>Emitted(42, 53) Source(24, 49) + SourceIndex(0) +15>Emitted(42, 55) Source(24, 51) + SourceIndex(0) +16>Emitted(42, 56) Source(24, 52) + SourceIndex(0) +17>Emitted(42, 58) Source(24, 54) + SourceIndex(0) +18>Emitted(42, 60) Source(24, 56) + SourceIndex(0) +19>Emitted(42, 61) Source(24, 57) + SourceIndex(0) --- >>> greeters.push(new Greeter(restGreetings[i])); 1->^^^^^^^^^^^^^^^^ @@ -607,21 +622,21 @@ sourceFile:sourceMapSample.ts 13> ) 14> ) 15> ; -1->Emitted(28, 17) Source(25, 13) + SourceIndex(0) -2 >Emitted(28, 25) Source(25, 21) + SourceIndex(0) -3 >Emitted(28, 26) Source(25, 22) + SourceIndex(0) -4 >Emitted(28, 30) Source(25, 26) + SourceIndex(0) -5 >Emitted(28, 31) Source(25, 27) + SourceIndex(0) -6 >Emitted(28, 35) Source(25, 31) + SourceIndex(0) -7 >Emitted(28, 42) Source(25, 38) + SourceIndex(0) -8 >Emitted(28, 43) Source(25, 39) + SourceIndex(0) -9 >Emitted(28, 56) Source(25, 52) + SourceIndex(0) -10>Emitted(28, 57) Source(25, 53) + SourceIndex(0) -11>Emitted(28, 58) Source(25, 54) + SourceIndex(0) -12>Emitted(28, 59) Source(25, 55) + SourceIndex(0) -13>Emitted(28, 60) Source(25, 56) + SourceIndex(0) -14>Emitted(28, 61) Source(25, 57) + SourceIndex(0) -15>Emitted(28, 62) Source(25, 58) + SourceIndex(0) +1->Emitted(43, 17) Source(25, 13) + SourceIndex(0) +2 >Emitted(43, 25) Source(25, 21) + SourceIndex(0) +3 >Emitted(43, 26) Source(25, 22) + SourceIndex(0) +4 >Emitted(43, 30) Source(25, 26) + SourceIndex(0) +5 >Emitted(43, 31) Source(25, 27) + SourceIndex(0) +6 >Emitted(43, 35) Source(25, 31) + SourceIndex(0) +7 >Emitted(43, 42) Source(25, 38) + SourceIndex(0) +8 >Emitted(43, 43) Source(25, 39) + SourceIndex(0) +9 >Emitted(43, 56) Source(25, 52) + SourceIndex(0) +10>Emitted(43, 57) Source(25, 53) + SourceIndex(0) +11>Emitted(43, 58) Source(25, 54) + SourceIndex(0) +12>Emitted(43, 59) Source(25, 55) + SourceIndex(0) +13>Emitted(43, 60) Source(25, 56) + SourceIndex(0) +14>Emitted(43, 61) Source(25, 57) + SourceIndex(0) +15>Emitted(43, 62) Source(25, 58) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -630,8 +645,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(29, 13) Source(26, 9) + SourceIndex(0) -2 >Emitted(29, 14) Source(26, 10) + SourceIndex(0) +1 >Emitted(44, 13) Source(26, 9) + SourceIndex(0) +2 >Emitted(44, 14) Source(26, 10) + SourceIndex(0) --- >>> return greeters; 1->^^^^^^^^^^^^ @@ -646,11 +661,11 @@ sourceFile:sourceMapSample.ts 3 > 4 > greeters 5 > ; -1->Emitted(30, 13) Source(28, 9) + SourceIndex(0) -2 >Emitted(30, 19) Source(28, 15) + SourceIndex(0) -3 >Emitted(30, 20) Source(28, 16) + SourceIndex(0) -4 >Emitted(30, 28) Source(28, 24) + SourceIndex(0) -5 >Emitted(30, 29) Source(28, 25) + SourceIndex(0) +1->Emitted(45, 13) Source(28, 9) + SourceIndex(0) +2 >Emitted(45, 19) Source(28, 15) + SourceIndex(0) +3 >Emitted(45, 20) Source(28, 16) + SourceIndex(0) +4 >Emitted(45, 28) Source(28, 24) + SourceIndex(0) +5 >Emitted(45, 29) Source(28, 25) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -659,8 +674,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(31, 9) Source(29, 5) + SourceIndex(0) -2 >Emitted(31, 10) Source(29, 6) + SourceIndex(0) +1 >Emitted(46, 9) Source(29, 5) + SourceIndex(0) +2 >Emitted(46, 10) Source(29, 6) + SourceIndex(0) --- >>> var b = foo2("Hello", "World", "!"); 1->^^^^^^^^ @@ -692,19 +707,19 @@ sourceFile:sourceMapSample.ts 11> "!" 12> ) 13> ; -1->Emitted(32, 9) Source(31, 5) + SourceIndex(0) -2 >Emitted(32, 13) Source(31, 9) + SourceIndex(0) -3 >Emitted(32, 14) Source(31, 10) + SourceIndex(0) -4 >Emitted(32, 17) Source(31, 13) + SourceIndex(0) -5 >Emitted(32, 21) Source(31, 17) + SourceIndex(0) -6 >Emitted(32, 22) Source(31, 18) + SourceIndex(0) -7 >Emitted(32, 29) Source(31, 25) + SourceIndex(0) -8 >Emitted(32, 31) Source(31, 27) + SourceIndex(0) -9 >Emitted(32, 38) Source(31, 34) + SourceIndex(0) -10>Emitted(32, 40) Source(31, 36) + SourceIndex(0) -11>Emitted(32, 43) Source(31, 39) + SourceIndex(0) -12>Emitted(32, 44) Source(31, 40) + SourceIndex(0) -13>Emitted(32, 45) Source(31, 41) + SourceIndex(0) +1->Emitted(47, 9) Source(31, 5) + SourceIndex(0) +2 >Emitted(47, 13) Source(31, 9) + SourceIndex(0) +3 >Emitted(47, 14) Source(31, 10) + SourceIndex(0) +4 >Emitted(47, 17) Source(31, 13) + SourceIndex(0) +5 >Emitted(47, 21) Source(31, 17) + SourceIndex(0) +6 >Emitted(47, 22) Source(31, 18) + SourceIndex(0) +7 >Emitted(47, 29) Source(31, 25) + SourceIndex(0) +8 >Emitted(47, 31) Source(31, 27) + SourceIndex(0) +9 >Emitted(47, 38) Source(31, 34) + SourceIndex(0) +10>Emitted(47, 40) Source(31, 36) + SourceIndex(0) +11>Emitted(47, 43) Source(31, 39) + SourceIndex(0) +12>Emitted(47, 44) Source(31, 40) + SourceIndex(0) +13>Emitted(47, 45) Source(31, 41) + SourceIndex(0) --- >>> for (var j = 0; j < b.length; j++) { 1->^^^^^^^^ @@ -746,25 +761,25 @@ sourceFile:sourceMapSample.ts 17> ++ 18> ) 19> { -1->Emitted(33, 9) Source(32, 5) + SourceIndex(0) -2 >Emitted(33, 12) Source(32, 8) + SourceIndex(0) -3 >Emitted(33, 13) Source(32, 9) + SourceIndex(0) -4 >Emitted(33, 14) Source(32, 10) + SourceIndex(0) -5 >Emitted(33, 18) Source(32, 14) + SourceIndex(0) -6 >Emitted(33, 19) Source(32, 15) + SourceIndex(0) -7 >Emitted(33, 22) Source(32, 18) + SourceIndex(0) -8 >Emitted(33, 23) Source(32, 19) + SourceIndex(0) -9 >Emitted(33, 25) Source(32, 21) + SourceIndex(0) -10>Emitted(33, 26) Source(32, 22) + SourceIndex(0) -11>Emitted(33, 29) Source(32, 25) + SourceIndex(0) -12>Emitted(33, 30) Source(32, 26) + SourceIndex(0) -13>Emitted(33, 31) Source(32, 27) + SourceIndex(0) -14>Emitted(33, 37) Source(32, 33) + SourceIndex(0) -15>Emitted(33, 39) Source(32, 35) + SourceIndex(0) -16>Emitted(33, 40) Source(32, 36) + SourceIndex(0) -17>Emitted(33, 42) Source(32, 38) + SourceIndex(0) -18>Emitted(33, 44) Source(32, 40) + SourceIndex(0) -19>Emitted(33, 45) Source(32, 41) + SourceIndex(0) +1->Emitted(48, 9) Source(32, 5) + SourceIndex(0) +2 >Emitted(48, 12) Source(32, 8) + SourceIndex(0) +3 >Emitted(48, 13) Source(32, 9) + SourceIndex(0) +4 >Emitted(48, 14) Source(32, 10) + SourceIndex(0) +5 >Emitted(48, 18) Source(32, 14) + SourceIndex(0) +6 >Emitted(48, 19) Source(32, 15) + SourceIndex(0) +7 >Emitted(48, 22) Source(32, 18) + SourceIndex(0) +8 >Emitted(48, 23) Source(32, 19) + SourceIndex(0) +9 >Emitted(48, 25) Source(32, 21) + SourceIndex(0) +10>Emitted(48, 26) Source(32, 22) + SourceIndex(0) +11>Emitted(48, 29) Source(32, 25) + SourceIndex(0) +12>Emitted(48, 30) Source(32, 26) + SourceIndex(0) +13>Emitted(48, 31) Source(32, 27) + SourceIndex(0) +14>Emitted(48, 37) Source(32, 33) + SourceIndex(0) +15>Emitted(48, 39) Source(32, 35) + SourceIndex(0) +16>Emitted(48, 40) Source(32, 36) + SourceIndex(0) +17>Emitted(48, 42) Source(32, 38) + SourceIndex(0) +18>Emitted(48, 44) Source(32, 40) + SourceIndex(0) +19>Emitted(48, 45) Source(32, 41) + SourceIndex(0) --- >>> b[j].greet(); 1 >^^^^^^^^^^^^ @@ -786,15 +801,15 @@ sourceFile:sourceMapSample.ts 7 > greet 8 > () 9 > ; -1 >Emitted(34, 13) Source(33, 9) + SourceIndex(0) -2 >Emitted(34, 14) Source(33, 10) + SourceIndex(0) -3 >Emitted(34, 15) Source(33, 11) + SourceIndex(0) -4 >Emitted(34, 16) Source(33, 12) + SourceIndex(0) -5 >Emitted(34, 17) Source(33, 13) + SourceIndex(0) -6 >Emitted(34, 18) Source(33, 14) + SourceIndex(0) -7 >Emitted(34, 23) Source(33, 19) + SourceIndex(0) -8 >Emitted(34, 25) Source(33, 21) + SourceIndex(0) -9 >Emitted(34, 26) Source(33, 22) + SourceIndex(0) +1 >Emitted(49, 13) Source(33, 9) + SourceIndex(0) +2 >Emitted(49, 14) Source(33, 10) + SourceIndex(0) +3 >Emitted(49, 15) Source(33, 11) + SourceIndex(0) +4 >Emitted(49, 16) Source(33, 12) + SourceIndex(0) +5 >Emitted(49, 17) Source(33, 13) + SourceIndex(0) +6 >Emitted(49, 18) Source(33, 14) + SourceIndex(0) +7 >Emitted(49, 23) Source(33, 19) + SourceIndex(0) +8 >Emitted(49, 25) Source(33, 21) + SourceIndex(0) +9 >Emitted(49, 26) Source(33, 22) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -803,8 +818,8 @@ sourceFile:sourceMapSample.ts 1 > > 2 > } -1 >Emitted(35, 9) Source(34, 5) + SourceIndex(0) -2 >Emitted(35, 10) Source(34, 6) + SourceIndex(0) +1 >Emitted(50, 9) Source(34, 5) + SourceIndex(0) +2 >Emitted(50, 10) Source(34, 6) + SourceIndex(0) --- >>> })(Bar = Foo.Bar || (Foo.Bar = {})); 1->^^^^ @@ -860,15 +875,15 @@ sourceFile:sourceMapSample.ts > b[j].greet(); > } > } -1->Emitted(36, 5) Source(35, 1) + SourceIndex(0) -2 >Emitted(36, 6) Source(35, 2) + SourceIndex(0) -3 >Emitted(36, 8) Source(1, 12) + SourceIndex(0) -4 >Emitted(36, 11) Source(1, 15) + SourceIndex(0) -5 >Emitted(36, 14) Source(1, 12) + SourceIndex(0) -6 >Emitted(36, 21) Source(1, 15) + SourceIndex(0) -7 >Emitted(36, 26) Source(1, 12) + SourceIndex(0) -8 >Emitted(36, 33) Source(1, 15) + SourceIndex(0) -9 >Emitted(36, 41) Source(35, 2) + SourceIndex(0) +1->Emitted(51, 5) Source(35, 1) + SourceIndex(0) +2 >Emitted(51, 6) Source(35, 2) + SourceIndex(0) +3 >Emitted(51, 8) Source(1, 12) + SourceIndex(0) +4 >Emitted(51, 11) Source(1, 15) + SourceIndex(0) +5 >Emitted(51, 14) Source(1, 12) + SourceIndex(0) +6 >Emitted(51, 21) Source(1, 15) + SourceIndex(0) +7 >Emitted(51, 26) Source(1, 12) + SourceIndex(0) +8 >Emitted(51, 33) Source(1, 15) + SourceIndex(0) +9 >Emitted(51, 41) Source(35, 2) + SourceIndex(0) --- >>>})(Foo || (Foo = {})); 1 > @@ -920,12 +935,12 @@ sourceFile:sourceMapSample.ts > b[j].greet(); > } > } -1 >Emitted(37, 1) Source(35, 1) + SourceIndex(0) -2 >Emitted(37, 2) Source(35, 2) + SourceIndex(0) -3 >Emitted(37, 4) Source(1, 8) + SourceIndex(0) -4 >Emitted(37, 7) Source(1, 11) + SourceIndex(0) -5 >Emitted(37, 12) Source(1, 8) + SourceIndex(0) -6 >Emitted(37, 15) Source(1, 11) + SourceIndex(0) -7 >Emitted(37, 23) Source(35, 2) + SourceIndex(0) +1 >Emitted(52, 1) Source(35, 1) + SourceIndex(0) +2 >Emitted(52, 2) Source(35, 2) + SourceIndex(0) +3 >Emitted(52, 4) Source(1, 8) + SourceIndex(0) +4 >Emitted(52, 7) Source(1, 11) + SourceIndex(0) +5 >Emitted(52, 12) Source(1, 8) + SourceIndex(0) +6 >Emitted(52, 15) Source(1, 11) + SourceIndex(0) +7 >Emitted(52, 23) Source(35, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapSample.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClass.js b/tests/baselines/reference/sourceMapValidationClass.js index f0ddca123f9b6..f8a6b43eb7e27 100644 --- a/tests/baselines/reference/sourceMapValidationClass.js +++ b/tests/baselines/reference/sourceMapValidationClass.js @@ -19,6 +19,20 @@ class Greeter { } //// [sourceMapValidationClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Greeter = (function () { function Greeter(greeting) { var b = []; @@ -44,6 +58,7 @@ var Greeter = (function () { enumerable: true, configurable: true }); + __names(Greeter.prototype, ["greet", "fn"]); return Greeter; }()); //# sourceMappingURL=sourceMapValidationClass.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClass.js.map b/tests/baselines/reference/sourceMapValidationClass.js.map index 8baf4772a27f5..6a46e7bb8287c 100644 --- a/tests/baselines/reference/sourceMapValidationClass.js.map +++ b/tests/baselines/reference/sourceMapValidationClass.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClass.js.map] -{"version":3,"file":"sourceMapValidationClass.js","sourceRoot":"","sources":["sourceMapValidationClass.ts"],"names":[],"mappings":"AAAA;IACI,iBAAmB,QAAgB;QAAE,WAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,0BAAc;;QAAhC,aAAQ,GAAR,QAAQ,CAAQ;QAM3B,OAAE,GAAW,EAAE,CAAC;IALxB,CAAC;IACD,uBAAK,GAAL;QACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAGO,oBAAE,GAAV;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,sBAAI,8BAAS;aAAb;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aACD,UAAc,SAAiB;YAC3B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC9B,CAAC;;;OAHA;IAIL,cAAC;AAAD,CAAC,AAjBD,IAiBC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClass.js","sourceRoot":"","sources":["sourceMapValidationClass.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;IACI,iBAAmB,QAAgB;QAAE,WAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,0BAAc;;QAAhC,aAAQ,GAAR,QAAQ,CAAQ;QAM3B,OAAE,GAAW,EAAE,CAAC;IALxB,CAAC;IACD,uBAAK,GAAL;QACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAGO,oBAAE,GAAV;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,sBAAI,8BAAS;aAAb;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aACD,UAAc,SAAiB;YAC3B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC9B,CAAC;;;OAHA;;IAIL,cAAC;AAAD,CAAC,AAjBD,IAiBC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt index 08fdfe2bfc66b..4be46d7444bdc 100644 --- a/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt @@ -8,11 +8,25 @@ sources: sourceMapValidationClass.ts emittedFile:tests/cases/compiler/sourceMapValidationClass.js sourceFile:sourceMapValidationClass.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var Greeter = (function () { 1 > 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) --- >>> function Greeter(greeting) { 1->^^^^ @@ -22,9 +36,9 @@ sourceFile:sourceMapValidationClass.ts > 2 > constructor(public 3 > greeting: string -1->Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) -3 >Emitted(2, 30) Source(2, 40) + SourceIndex(0) +1->Emitted(16, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(16, 22) Source(2, 24) + SourceIndex(0) +3 >Emitted(16, 30) Source(2, 40) + SourceIndex(0) --- >>> var b = []; 1 >^^^^^^^^ @@ -32,8 +46,8 @@ sourceFile:sourceMapValidationClass.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >, 2 > ...b: string[] -1 >Emitted(3, 9) Source(2, 42) + SourceIndex(0) -2 >Emitted(3, 20) Source(2, 56) + SourceIndex(0) +1 >Emitted(17, 9) Source(2, 42) + SourceIndex(0) +2 >Emitted(17, 20) Source(2, 56) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^ @@ -48,20 +62,20 @@ sourceFile:sourceMapValidationClass.ts 4 > ...b: string[] 5 > 6 > ...b: string[] -1->Emitted(4, 14) Source(2, 42) + SourceIndex(0) -2 >Emitted(4, 24) Source(2, 56) + SourceIndex(0) -3 >Emitted(4, 26) Source(2, 42) + SourceIndex(0) -4 >Emitted(4, 47) Source(2, 56) + SourceIndex(0) -5 >Emitted(4, 49) Source(2, 42) + SourceIndex(0) -6 >Emitted(4, 53) Source(2, 56) + SourceIndex(0) +1->Emitted(18, 14) Source(2, 42) + SourceIndex(0) +2 >Emitted(18, 24) Source(2, 56) + SourceIndex(0) +3 >Emitted(18, 26) Source(2, 42) + SourceIndex(0) +4 >Emitted(18, 47) Source(2, 56) + SourceIndex(0) +5 >Emitted(18, 49) Source(2, 42) + SourceIndex(0) +6 >Emitted(18, 53) Source(2, 56) + SourceIndex(0) --- >>> b[_i - 1] = arguments[_i]; 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: string[] -1 >Emitted(5, 13) Source(2, 42) + SourceIndex(0) -2 >Emitted(5, 39) Source(2, 56) + SourceIndex(0) +1 >Emitted(19, 13) Source(2, 42) + SourceIndex(0) +2 >Emitted(19, 39) Source(2, 56) + SourceIndex(0) --- >>> } >>> this.greeting = greeting; @@ -75,11 +89,11 @@ sourceFile:sourceMapValidationClass.ts 3 > 4 > greeting 5 > : string -1 >Emitted(7, 9) Source(2, 24) + SourceIndex(0) -2 >Emitted(7, 22) Source(2, 32) + SourceIndex(0) -3 >Emitted(7, 25) Source(2, 24) + SourceIndex(0) -4 >Emitted(7, 33) Source(2, 32) + SourceIndex(0) -5 >Emitted(7, 34) Source(2, 40) + SourceIndex(0) +1 >Emitted(21, 9) Source(2, 24) + SourceIndex(0) +2 >Emitted(21, 22) Source(2, 32) + SourceIndex(0) +3 >Emitted(21, 25) Source(2, 24) + SourceIndex(0) +4 >Emitted(21, 33) Source(2, 32) + SourceIndex(0) +5 >Emitted(21, 34) Source(2, 40) + SourceIndex(0) --- >>> this.x1 = 10; 1 >^^^^^^^^ @@ -98,11 +112,11 @@ sourceFile:sourceMapValidationClass.ts 3 > : number = 4 > 10 5 > ; -1 >Emitted(8, 9) Source(8, 13) + SourceIndex(0) -2 >Emitted(8, 16) Source(8, 15) + SourceIndex(0) -3 >Emitted(8, 19) Source(8, 26) + SourceIndex(0) -4 >Emitted(8, 21) Source(8, 28) + SourceIndex(0) -5 >Emitted(8, 22) Source(8, 29) + SourceIndex(0) +1 >Emitted(22, 9) Source(8, 13) + SourceIndex(0) +2 >Emitted(22, 16) Source(8, 15) + SourceIndex(0) +3 >Emitted(22, 19) Source(8, 26) + SourceIndex(0) +4 >Emitted(22, 21) Source(8, 28) + SourceIndex(0) +5 >Emitted(22, 22) Source(8, 29) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -110,8 +124,8 @@ sourceFile:sourceMapValidationClass.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 > } -1 >Emitted(9, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(9, 6) Source(3, 6) + SourceIndex(0) +1 >Emitted(23, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(23, 6) Source(3, 6) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^ @@ -122,9 +136,9 @@ sourceFile:sourceMapValidationClass.ts > 2 > greet 3 > -1->Emitted(10, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(10, 28) Source(4, 10) + SourceIndex(0) -3 >Emitted(10, 31) Source(4, 5) + SourceIndex(0) +1->Emitted(24, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(24, 28) Source(4, 10) + SourceIndex(0) +3 >Emitted(24, 31) Source(4, 5) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^ @@ -150,17 +164,17 @@ sourceFile:sourceMapValidationClass.ts 9 > + 10> "" 11> ; -1->Emitted(11, 9) Source(5, 9) + SourceIndex(0) -2 >Emitted(11, 15) Source(5, 15) + SourceIndex(0) -3 >Emitted(11, 16) Source(5, 16) + SourceIndex(0) -4 >Emitted(11, 22) Source(5, 22) + SourceIndex(0) -5 >Emitted(11, 25) Source(5, 25) + SourceIndex(0) -6 >Emitted(11, 29) Source(5, 29) + SourceIndex(0) -7 >Emitted(11, 30) Source(5, 30) + SourceIndex(0) -8 >Emitted(11, 38) Source(5, 38) + SourceIndex(0) -9 >Emitted(11, 41) Source(5, 41) + SourceIndex(0) -10>Emitted(11, 48) Source(5, 48) + SourceIndex(0) -11>Emitted(11, 49) Source(5, 49) + SourceIndex(0) +1->Emitted(25, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(25, 15) Source(5, 15) + SourceIndex(0) +3 >Emitted(25, 16) Source(5, 16) + SourceIndex(0) +4 >Emitted(25, 22) Source(5, 22) + SourceIndex(0) +5 >Emitted(25, 25) Source(5, 25) + SourceIndex(0) +6 >Emitted(25, 29) Source(5, 29) + SourceIndex(0) +7 >Emitted(25, 30) Source(5, 30) + SourceIndex(0) +8 >Emitted(25, 38) Source(5, 38) + SourceIndex(0) +9 >Emitted(25, 41) Source(5, 41) + SourceIndex(0) +10>Emitted(25, 48) Source(5, 48) + SourceIndex(0) +11>Emitted(25, 49) Source(5, 49) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -169,8 +183,8 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0) +1 >Emitted(26, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(26, 6) Source(6, 6) + SourceIndex(0) --- >>> Greeter.prototype.fn = function () { 1->^^^^ @@ -183,9 +197,9 @@ sourceFile:sourceMapValidationClass.ts > private 2 > fn 3 > -1->Emitted(13, 5) Source(9, 13) + SourceIndex(0) -2 >Emitted(13, 25) Source(9, 15) + SourceIndex(0) -3 >Emitted(13, 28) Source(9, 5) + SourceIndex(0) +1->Emitted(27, 5) Source(9, 13) + SourceIndex(0) +2 >Emitted(27, 25) Source(9, 15) + SourceIndex(0) +3 >Emitted(27, 28) Source(9, 5) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^ @@ -203,13 +217,13 @@ sourceFile:sourceMapValidationClass.ts 5 > . 6 > greeting 7 > ; -1->Emitted(14, 9) Source(10, 9) + SourceIndex(0) -2 >Emitted(14, 15) Source(10, 15) + SourceIndex(0) -3 >Emitted(14, 16) Source(10, 16) + SourceIndex(0) -4 >Emitted(14, 20) Source(10, 20) + SourceIndex(0) -5 >Emitted(14, 21) Source(10, 21) + SourceIndex(0) -6 >Emitted(14, 29) Source(10, 29) + SourceIndex(0) -7 >Emitted(14, 30) Source(10, 30) + SourceIndex(0) +1->Emitted(28, 9) Source(10, 9) + SourceIndex(0) +2 >Emitted(28, 15) Source(10, 15) + SourceIndex(0) +3 >Emitted(28, 16) Source(10, 16) + SourceIndex(0) +4 >Emitted(28, 20) Source(10, 20) + SourceIndex(0) +5 >Emitted(28, 21) Source(10, 21) + SourceIndex(0) +6 >Emitted(28, 29) Source(10, 29) + SourceIndex(0) +7 >Emitted(28, 30) Source(10, 30) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -218,8 +232,8 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(15, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(15, 6) Source(11, 6) + SourceIndex(0) +1 >Emitted(29, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(29, 6) Source(11, 6) + SourceIndex(0) --- >>> Object.defineProperty(Greeter.prototype, "greetings", { 1->^^^^ @@ -229,15 +243,15 @@ sourceFile:sourceMapValidationClass.ts > 2 > get 3 > greetings -1->Emitted(16, 5) Source(12, 5) + SourceIndex(0) -2 >Emitted(16, 27) Source(12, 9) + SourceIndex(0) -3 >Emitted(16, 57) Source(12, 18) + SourceIndex(0) +1->Emitted(30, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(30, 27) Source(12, 9) + SourceIndex(0) +3 >Emitted(30, 57) Source(12, 18) + SourceIndex(0) --- >>> get: function () { 1 >^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(17, 14) Source(12, 5) + SourceIndex(0) +1 >Emitted(31, 14) Source(12, 5) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^^^^^ @@ -255,13 +269,13 @@ sourceFile:sourceMapValidationClass.ts 5 > . 6 > greeting 7 > ; -1->Emitted(18, 13) Source(13, 9) + SourceIndex(0) -2 >Emitted(18, 19) Source(13, 15) + SourceIndex(0) -3 >Emitted(18, 20) Source(13, 16) + SourceIndex(0) -4 >Emitted(18, 24) Source(13, 20) + SourceIndex(0) -5 >Emitted(18, 25) Source(13, 21) + SourceIndex(0) -6 >Emitted(18, 33) Source(13, 29) + SourceIndex(0) -7 >Emitted(18, 34) Source(13, 30) + SourceIndex(0) +1->Emitted(32, 13) Source(13, 9) + SourceIndex(0) +2 >Emitted(32, 19) Source(13, 15) + SourceIndex(0) +3 >Emitted(32, 20) Source(13, 16) + SourceIndex(0) +4 >Emitted(32, 24) Source(13, 20) + SourceIndex(0) +5 >Emitted(32, 25) Source(13, 21) + SourceIndex(0) +6 >Emitted(32, 33) Source(13, 29) + SourceIndex(0) +7 >Emitted(32, 34) Source(13, 30) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -270,8 +284,8 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(19, 9) Source(14, 5) + SourceIndex(0) -2 >Emitted(19, 10) Source(14, 6) + SourceIndex(0) +1 >Emitted(33, 9) Source(14, 5) + SourceIndex(0) +2 >Emitted(33, 10) Source(14, 6) + SourceIndex(0) --- >>> set: function (greetings) { 1->^^^^^^^^^^^^^ @@ -282,9 +296,9 @@ sourceFile:sourceMapValidationClass.ts > 2 > set greetings( 3 > greetings: string -1->Emitted(20, 14) Source(15, 5) + SourceIndex(0) -2 >Emitted(20, 24) Source(15, 19) + SourceIndex(0) -3 >Emitted(20, 33) Source(15, 36) + SourceIndex(0) +1->Emitted(34, 14) Source(15, 5) + SourceIndex(0) +2 >Emitted(34, 24) Source(15, 19) + SourceIndex(0) +3 >Emitted(34, 33) Source(15, 36) + SourceIndex(0) --- >>> this.greeting = greetings; 1->^^^^^^^^^^^^ @@ -302,13 +316,13 @@ sourceFile:sourceMapValidationClass.ts 5 > = 6 > greetings 7 > ; -1->Emitted(21, 13) Source(16, 9) + SourceIndex(0) -2 >Emitted(21, 17) Source(16, 13) + SourceIndex(0) -3 >Emitted(21, 18) Source(16, 14) + SourceIndex(0) -4 >Emitted(21, 26) Source(16, 22) + SourceIndex(0) -5 >Emitted(21, 29) Source(16, 25) + SourceIndex(0) -6 >Emitted(21, 38) Source(16, 34) + SourceIndex(0) -7 >Emitted(21, 39) Source(16, 35) + SourceIndex(0) +1->Emitted(35, 13) Source(16, 9) + SourceIndex(0) +2 >Emitted(35, 17) Source(16, 13) + SourceIndex(0) +3 >Emitted(35, 18) Source(16, 14) + SourceIndex(0) +4 >Emitted(35, 26) Source(16, 22) + SourceIndex(0) +5 >Emitted(35, 29) Source(16, 25) + SourceIndex(0) +6 >Emitted(35, 38) Source(16, 34) + SourceIndex(0) +7 >Emitted(35, 39) Source(16, 35) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -317,17 +331,18 @@ sourceFile:sourceMapValidationClass.ts 1 > > 2 > } -1 >Emitted(22, 9) Source(17, 5) + SourceIndex(0) -2 >Emitted(22, 10) Source(17, 6) + SourceIndex(0) +1 >Emitted(36, 9) Source(17, 5) + SourceIndex(0) +2 >Emitted(36, 10) Source(17, 6) + SourceIndex(0) --- >>> enumerable: true, >>> configurable: true >>> }); 1->^^^^^^^ -2 > ^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(25, 8) Source(14, 6) + SourceIndex(0) +1->Emitted(39, 8) Source(14, 6) + SourceIndex(0) --- +>>> __names(Greeter.prototype, ["greet", "fn"]); >>> return Greeter; 1->^^^^ 2 > ^^^^^^^^^^^^^^ @@ -337,8 +352,8 @@ sourceFile:sourceMapValidationClass.ts > } > 2 > } -1->Emitted(26, 5) Source(18, 1) + SourceIndex(0) -2 >Emitted(26, 19) Source(18, 2) + SourceIndex(0) +1->Emitted(41, 5) Source(18, 1) + SourceIndex(0) +2 >Emitted(41, 19) Source(18, 2) + SourceIndex(0) --- >>>}()); 1 > @@ -367,9 +382,9 @@ sourceFile:sourceMapValidationClass.ts > this.greeting = greetings; > } > } -1 >Emitted(27, 1) Source(18, 1) + SourceIndex(0) -2 >Emitted(27, 2) Source(18, 2) + SourceIndex(0) -3 >Emitted(27, 2) Source(1, 1) + SourceIndex(0) -4 >Emitted(27, 6) Source(18, 2) + SourceIndex(0) +1 >Emitted(42, 1) Source(18, 1) + SourceIndex(0) +2 >Emitted(42, 2) Source(18, 2) + SourceIndex(0) +3 >Emitted(42, 2) Source(1, 1) + SourceIndex(0) +4 >Emitted(42, 6) Source(18, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationClass.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClasses.js b/tests/baselines/reference/sourceMapValidationClasses.js index 64517690f26e4..29b52fbd0a3ac 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.js +++ b/tests/baselines/reference/sourceMapValidationClasses.js @@ -37,6 +37,20 @@ module Foo.Bar { } //// [sourceMapValidationClasses.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo; (function (Foo) { var Bar; @@ -49,6 +63,7 @@ var Foo; Greeter.prototype.greet = function () { return "

" + this.greeting + "

"; }; + __names(Greeter.prototype, ["greet"]); return Greeter; }()); function foo(greeting) { diff --git a/tests/baselines/reference/sourceMapValidationClasses.js.map b/tests/baselines/reference/sourceMapValidationClasses.js.map index 294ce8b315d06..0568746930683 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.js.map +++ b/tests/baselines/reference/sourceMapValidationClasses.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationClasses.js.map] -{"version":3,"file":"sourceMapValidationClasses.js","sourceRoot":"","sources":["sourceMapValidationClasses.ts"],"names":[],"mappings":"AAAA,IAAO,GAAG,CAmCT;AAnCD,WAAO,GAAG;IAAC,IAAA,GAAG,CAmCb;IAnCU,WAAA,GAAG;QACV,YAAY,CAAC;QAEb;YACI,iBAAmB,QAAgB;gBAAhB,aAAQ,GAAR,QAAQ,CAAQ;YACnC,CAAC;YAED,uBAAK,GAAL;gBACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YAC5C,CAAC;YACL,cAAC;QAAD,CAAC,AAPD,IAOC;QAGD,aAAa,QAAgB;YACzB,MAAM,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAI,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;QAE1B,cAAc,QAAgB;YAAE,kBAAiB,mBAAmB,MAAU;iBAA9C,UAA8C,EAA9C,qBAA8C,EAA9C,IAA8C;gBAA9C,sCAA8C;;YAC1E,IAAI,QAAQ,GAAc,EAAE,CAAC,CAAC,0BAA0B;YACxD,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC;YAED,MAAM,CAAC,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QACpC,qCAAqC;QACrC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACL,CAAC,EAnCU,GAAG,GAAH,OAAG,KAAH,OAAG,QAmCb;AAAD,CAAC,EAnCM,GAAG,KAAH,GAAG,QAmCT"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationClasses.js","sourceRoot":"","sources":["sourceMapValidationClasses.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAO,GAAG,CAmCT;AAnCD,WAAO,GAAG;IAAC,IAAA,GAAG,CAmCb;IAnCU,WAAA,GAAG;QACV,YAAY,CAAC;QAEb;YACI,iBAAmB,QAAgB;gBAAhB,aAAQ,GAAR,QAAQ,CAAQ;YACnC,CAAC;YAED,uBAAK,GAAL;gBACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YAC5C,CAAC;;YACL,cAAC;QAAD,CAAC,AAPD,IAOC;QAGD,aAAa,QAAgB;YACzB,MAAM,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;QACjC,CAAC;QAED,IAAI,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3C,IAAI,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;QAE1B,cAAc,QAAgB;YAAE,kBAAiB,mBAAmB,MAAU;iBAA9C,UAA8C,EAA9C,qBAA8C,EAA9C,IAA8C;gBAA9C,sCAA8C;;YAC1E,IAAI,QAAQ,GAAc,EAAE,CAAC,CAAC,0BAA0B;YACxD,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC5C,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,CAAC;YAED,MAAM,CAAC,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;QACpC,qCAAqC;QACrC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAChC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACL,CAAC,EAnCU,GAAG,GAAH,OAAG,KAAH,OAAG,QAmCb;AAAD,CAAC,EAnCM,GAAG,KAAH,GAAG,QAmCT"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt index 931c113ddc85b..543f90a828921 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt @@ -8,6 +8,20 @@ sources: sourceMapValidationClasses.ts emittedFile:tests/cases/compiler/sourceMapValidationClasses.js sourceFile:sourceMapValidationClasses.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var Foo; 1 > 2 >^^^^ @@ -53,10 +67,10 @@ sourceFile:sourceMapValidationClasses.ts > b[j].greet(); > } > } -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 8) + SourceIndex(0) -3 >Emitted(1, 8) Source(1, 11) + SourceIndex(0) -4 >Emitted(1, 9) Source(36, 2) + SourceIndex(0) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(15, 5) Source(1, 8) + SourceIndex(0) +3 >Emitted(15, 8) Source(1, 11) + SourceIndex(0) +4 >Emitted(15, 9) Source(36, 2) + SourceIndex(0) --- >>>(function (Foo) { 1-> @@ -65,9 +79,9 @@ sourceFile:sourceMapValidationClasses.ts 1-> 2 >module 3 > Foo -1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 11) + SourceIndex(0) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(16, 12) Source(1, 8) + SourceIndex(0) +3 >Emitted(16, 15) Source(1, 11) + SourceIndex(0) --- >>> var Bar; 1 >^^^^ @@ -114,10 +128,10 @@ sourceFile:sourceMapValidationClasses.ts > b[j].greet(); > } > } -1 >Emitted(3, 5) Source(1, 12) + SourceIndex(0) -2 >Emitted(3, 9) Source(1, 12) + SourceIndex(0) -3 >Emitted(3, 12) Source(1, 15) + SourceIndex(0) -4 >Emitted(3, 13) Source(36, 2) + SourceIndex(0) +1 >Emitted(17, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(17, 9) Source(1, 12) + SourceIndex(0) +3 >Emitted(17, 12) Source(1, 15) + SourceIndex(0) +4 >Emitted(17, 13) Source(36, 2) + SourceIndex(0) --- >>> (function (Bar) { 1->^^^^ @@ -127,9 +141,9 @@ sourceFile:sourceMapValidationClasses.ts 1-> 2 > 3 > Bar -1->Emitted(4, 5) Source(1, 12) + SourceIndex(0) -2 >Emitted(4, 16) Source(1, 12) + SourceIndex(0) -3 >Emitted(4, 19) Source(1, 15) + SourceIndex(0) +1->Emitted(18, 5) Source(1, 12) + SourceIndex(0) +2 >Emitted(18, 16) Source(1, 12) + SourceIndex(0) +3 >Emitted(18, 19) Source(1, 15) + SourceIndex(0) --- >>> "use strict"; 1->^^^^^^^^ @@ -140,9 +154,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > "use strict" 3 > ; -1->Emitted(5, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(5, 21) Source(2, 17) + SourceIndex(0) -3 >Emitted(5, 22) Source(2, 18) + SourceIndex(0) +1->Emitted(19, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(19, 21) Source(2, 17) + SourceIndex(0) +3 >Emitted(19, 22) Source(2, 18) + SourceIndex(0) --- >>> var Greeter = (function () { 1->^^^^^^^^ @@ -150,7 +164,7 @@ sourceFile:sourceMapValidationClasses.ts 1-> > > -1->Emitted(6, 9) Source(4, 5) + SourceIndex(0) +1->Emitted(20, 9) Source(4, 5) + SourceIndex(0) --- >>> function Greeter(greeting) { 1->^^^^^^^^^^^^ @@ -161,9 +175,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > constructor(public 3 > greeting: string -1->Emitted(7, 13) Source(5, 9) + SourceIndex(0) -2 >Emitted(7, 30) Source(5, 28) + SourceIndex(0) -3 >Emitted(7, 38) Source(5, 44) + SourceIndex(0) +1->Emitted(21, 13) Source(5, 9) + SourceIndex(0) +2 >Emitted(21, 30) Source(5, 28) + SourceIndex(0) +3 >Emitted(21, 38) Source(5, 44) + SourceIndex(0) --- >>> this.greeting = greeting; 1->^^^^^^^^^^^^^^^^ @@ -176,11 +190,11 @@ sourceFile:sourceMapValidationClasses.ts 3 > 4 > greeting 5 > : string -1->Emitted(8, 17) Source(5, 28) + SourceIndex(0) -2 >Emitted(8, 30) Source(5, 36) + SourceIndex(0) -3 >Emitted(8, 33) Source(5, 28) + SourceIndex(0) -4 >Emitted(8, 41) Source(5, 36) + SourceIndex(0) -5 >Emitted(8, 42) Source(5, 44) + SourceIndex(0) +1->Emitted(22, 17) Source(5, 28) + SourceIndex(0) +2 >Emitted(22, 30) Source(5, 36) + SourceIndex(0) +3 >Emitted(22, 33) Source(5, 28) + SourceIndex(0) +4 >Emitted(22, 41) Source(5, 36) + SourceIndex(0) +5 >Emitted(22, 42) Source(5, 44) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -189,8 +203,8 @@ sourceFile:sourceMapValidationClasses.ts 1 >) { > 2 > } -1 >Emitted(9, 13) Source(6, 9) + SourceIndex(0) -2 >Emitted(9, 14) Source(6, 10) + SourceIndex(0) +1 >Emitted(23, 13) Source(6, 9) + SourceIndex(0) +2 >Emitted(23, 14) Source(6, 10) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^^^^^^^^^ @@ -202,9 +216,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > greet 3 > -1->Emitted(10, 13) Source(8, 9) + SourceIndex(0) -2 >Emitted(10, 36) Source(8, 14) + SourceIndex(0) -3 >Emitted(10, 39) Source(8, 9) + SourceIndex(0) +1->Emitted(24, 13) Source(8, 9) + SourceIndex(0) +2 >Emitted(24, 36) Source(8, 14) + SourceIndex(0) +3 >Emitted(24, 39) Source(8, 9) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^^^^^^^^^ @@ -230,36 +244,37 @@ sourceFile:sourceMapValidationClasses.ts 9 > + 10> "" 11> ; -1->Emitted(11, 17) Source(9, 13) + SourceIndex(0) -2 >Emitted(11, 23) Source(9, 19) + SourceIndex(0) -3 >Emitted(11, 24) Source(9, 20) + SourceIndex(0) -4 >Emitted(11, 30) Source(9, 26) + SourceIndex(0) -5 >Emitted(11, 33) Source(9, 29) + SourceIndex(0) -6 >Emitted(11, 37) Source(9, 33) + SourceIndex(0) -7 >Emitted(11, 38) Source(9, 34) + SourceIndex(0) -8 >Emitted(11, 46) Source(9, 42) + SourceIndex(0) -9 >Emitted(11, 49) Source(9, 45) + SourceIndex(0) -10>Emitted(11, 56) Source(9, 52) + SourceIndex(0) -11>Emitted(11, 57) Source(9, 53) + SourceIndex(0) +1->Emitted(25, 17) Source(9, 13) + SourceIndex(0) +2 >Emitted(25, 23) Source(9, 19) + SourceIndex(0) +3 >Emitted(25, 24) Source(9, 20) + SourceIndex(0) +4 >Emitted(25, 30) Source(9, 26) + SourceIndex(0) +5 >Emitted(25, 33) Source(9, 29) + SourceIndex(0) +6 >Emitted(25, 37) Source(9, 33) + SourceIndex(0) +7 >Emitted(25, 38) Source(9, 34) + SourceIndex(0) +8 >Emitted(25, 46) Source(9, 42) + SourceIndex(0) +9 >Emitted(25, 49) Source(9, 45) + SourceIndex(0) +10>Emitted(25, 56) Source(9, 52) + SourceIndex(0) +11>Emitted(25, 57) Source(9, 53) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(12, 13) Source(10, 9) + SourceIndex(0) -2 >Emitted(12, 14) Source(10, 10) + SourceIndex(0) +1 >Emitted(26, 13) Source(10, 9) + SourceIndex(0) +2 >Emitted(26, 14) Source(10, 10) + SourceIndex(0) --- +>>> __names(Greeter.prototype, ["greet"]); >>> return Greeter; 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^ 1-> > 2 > } -1->Emitted(13, 13) Source(11, 5) + SourceIndex(0) -2 >Emitted(13, 27) Source(11, 6) + SourceIndex(0) +1->Emitted(28, 13) Source(11, 5) + SourceIndex(0) +2 >Emitted(28, 27) Source(11, 6) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -278,10 +293,10 @@ sourceFile:sourceMapValidationClasses.ts > return "

" + this.greeting + "

"; > } > } -1 >Emitted(14, 9) Source(11, 5) + SourceIndex(0) -2 >Emitted(14, 10) Source(11, 6) + SourceIndex(0) -3 >Emitted(14, 10) Source(4, 5) + SourceIndex(0) -4 >Emitted(14, 14) Source(11, 6) + SourceIndex(0) +1 >Emitted(29, 9) Source(11, 5) + SourceIndex(0) +2 >Emitted(29, 10) Source(11, 6) + SourceIndex(0) +3 >Emitted(29, 10) Source(4, 5) + SourceIndex(0) +4 >Emitted(29, 14) Source(11, 6) + SourceIndex(0) --- >>> function foo(greeting) { 1->^^^^^^^^ @@ -294,9 +309,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > function foo( 3 > greeting: string -1->Emitted(15, 9) Source(14, 5) + SourceIndex(0) -2 >Emitted(15, 22) Source(14, 18) + SourceIndex(0) -3 >Emitted(15, 30) Source(14, 34) + SourceIndex(0) +1->Emitted(30, 9) Source(14, 5) + SourceIndex(0) +2 >Emitted(30, 22) Source(14, 18) + SourceIndex(0) +3 >Emitted(30, 30) Source(14, 34) + SourceIndex(0) --- >>> return new Greeter(greeting); 1->^^^^^^^^^^^^ @@ -318,15 +333,15 @@ sourceFile:sourceMapValidationClasses.ts 7 > greeting 8 > ) 9 > ; -1->Emitted(16, 13) Source(15, 9) + SourceIndex(0) -2 >Emitted(16, 19) Source(15, 15) + SourceIndex(0) -3 >Emitted(16, 20) Source(15, 16) + SourceIndex(0) -4 >Emitted(16, 24) Source(15, 20) + SourceIndex(0) -5 >Emitted(16, 31) Source(15, 27) + SourceIndex(0) -6 >Emitted(16, 32) Source(15, 28) + SourceIndex(0) -7 >Emitted(16, 40) Source(15, 36) + SourceIndex(0) -8 >Emitted(16, 41) Source(15, 37) + SourceIndex(0) -9 >Emitted(16, 42) Source(15, 38) + SourceIndex(0) +1->Emitted(31, 13) Source(15, 9) + SourceIndex(0) +2 >Emitted(31, 19) Source(15, 15) + SourceIndex(0) +3 >Emitted(31, 20) Source(15, 16) + SourceIndex(0) +4 >Emitted(31, 24) Source(15, 20) + SourceIndex(0) +5 >Emitted(31, 31) Source(15, 27) + SourceIndex(0) +6 >Emitted(31, 32) Source(15, 28) + SourceIndex(0) +7 >Emitted(31, 40) Source(15, 36) + SourceIndex(0) +8 >Emitted(31, 41) Source(15, 37) + SourceIndex(0) +9 >Emitted(31, 42) Source(15, 38) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -335,8 +350,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(17, 9) Source(16, 5) + SourceIndex(0) -2 >Emitted(17, 10) Source(16, 6) + SourceIndex(0) +1 >Emitted(32, 9) Source(16, 5) + SourceIndex(0) +2 >Emitted(32, 10) Source(16, 6) + SourceIndex(0) --- >>> var greeter = new Greeter("Hello, world!"); 1->^^^^^^^^ @@ -361,16 +376,16 @@ sourceFile:sourceMapValidationClasses.ts 8 > "Hello, world!" 9 > ) 10> ; -1->Emitted(18, 9) Source(18, 5) + SourceIndex(0) -2 >Emitted(18, 13) Source(18, 9) + SourceIndex(0) -3 >Emitted(18, 20) Source(18, 16) + SourceIndex(0) -4 >Emitted(18, 23) Source(18, 19) + SourceIndex(0) -5 >Emitted(18, 27) Source(18, 23) + SourceIndex(0) -6 >Emitted(18, 34) Source(18, 30) + SourceIndex(0) -7 >Emitted(18, 35) Source(18, 31) + SourceIndex(0) -8 >Emitted(18, 50) Source(18, 46) + SourceIndex(0) -9 >Emitted(18, 51) Source(18, 47) + SourceIndex(0) -10>Emitted(18, 52) Source(18, 48) + SourceIndex(0) +1->Emitted(33, 9) Source(18, 5) + SourceIndex(0) +2 >Emitted(33, 13) Source(18, 9) + SourceIndex(0) +3 >Emitted(33, 20) Source(18, 16) + SourceIndex(0) +4 >Emitted(33, 23) Source(18, 19) + SourceIndex(0) +5 >Emitted(33, 27) Source(18, 23) + SourceIndex(0) +6 >Emitted(33, 34) Source(18, 30) + SourceIndex(0) +7 >Emitted(33, 35) Source(18, 31) + SourceIndex(0) +8 >Emitted(33, 50) Source(18, 46) + SourceIndex(0) +9 >Emitted(33, 51) Source(18, 47) + SourceIndex(0) +10>Emitted(33, 52) Source(18, 48) + SourceIndex(0) --- >>> var str = greeter.greet(); 1 >^^^^^^^^ @@ -392,15 +407,15 @@ sourceFile:sourceMapValidationClasses.ts 7 > greet 8 > () 9 > ; -1 >Emitted(19, 9) Source(19, 5) + SourceIndex(0) -2 >Emitted(19, 13) Source(19, 9) + SourceIndex(0) -3 >Emitted(19, 16) Source(19, 12) + SourceIndex(0) -4 >Emitted(19, 19) Source(19, 15) + SourceIndex(0) -5 >Emitted(19, 26) Source(19, 22) + SourceIndex(0) -6 >Emitted(19, 27) Source(19, 23) + SourceIndex(0) -7 >Emitted(19, 32) Source(19, 28) + SourceIndex(0) -8 >Emitted(19, 34) Source(19, 30) + SourceIndex(0) -9 >Emitted(19, 35) Source(19, 31) + SourceIndex(0) +1 >Emitted(34, 9) Source(19, 5) + SourceIndex(0) +2 >Emitted(34, 13) Source(19, 9) + SourceIndex(0) +3 >Emitted(34, 16) Source(19, 12) + SourceIndex(0) +4 >Emitted(34, 19) Source(19, 15) + SourceIndex(0) +5 >Emitted(34, 26) Source(19, 22) + SourceIndex(0) +6 >Emitted(34, 27) Source(19, 23) + SourceIndex(0) +7 >Emitted(34, 32) Source(19, 28) + SourceIndex(0) +8 >Emitted(34, 34) Source(19, 30) + SourceIndex(0) +9 >Emitted(34, 35) Source(19, 31) + SourceIndex(0) --- >>> function foo2(greeting) { 1 >^^^^^^^^ @@ -412,9 +427,9 @@ sourceFile:sourceMapValidationClasses.ts > 2 > function foo2( 3 > greeting: string -1 >Emitted(20, 9) Source(21, 5) + SourceIndex(0) -2 >Emitted(20, 23) Source(21, 19) + SourceIndex(0) -3 >Emitted(20, 31) Source(21, 35) + SourceIndex(0) +1 >Emitted(35, 9) Source(21, 5) + SourceIndex(0) +2 >Emitted(35, 23) Source(21, 19) + SourceIndex(0) +3 >Emitted(35, 31) Source(21, 35) + SourceIndex(0) --- >>> var restGreetings /* more greeting */ = []; 1->^^^^^^^^^^^^ @@ -426,10 +441,10 @@ sourceFile:sourceMapValidationClasses.ts 2 > ...restGreetings 3 > /* more greeting */ 4 > : string[] -1->Emitted(21, 13) Source(21, 37) + SourceIndex(0) -2 >Emitted(21, 31) Source(21, 54) + SourceIndex(0) -3 >Emitted(21, 50) Source(21, 73) + SourceIndex(0) -4 >Emitted(21, 56) Source(21, 83) + SourceIndex(0) +1->Emitted(36, 13) Source(21, 37) + SourceIndex(0) +2 >Emitted(36, 31) Source(21, 54) + SourceIndex(0) +3 >Emitted(36, 50) Source(21, 73) + SourceIndex(0) +4 >Emitted(36, 56) Source(21, 83) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^^^^^ @@ -444,20 +459,20 @@ sourceFile:sourceMapValidationClasses.ts 4 > ...restGreetings /* more greeting */: string[] 5 > 6 > ...restGreetings /* more greeting */: string[] -1->Emitted(22, 18) Source(21, 37) + SourceIndex(0) -2 >Emitted(22, 28) Source(21, 83) + SourceIndex(0) -3 >Emitted(22, 30) Source(21, 37) + SourceIndex(0) -4 >Emitted(22, 51) Source(21, 83) + SourceIndex(0) -5 >Emitted(22, 53) Source(21, 37) + SourceIndex(0) -6 >Emitted(22, 57) Source(21, 83) + SourceIndex(0) +1->Emitted(37, 18) Source(21, 37) + SourceIndex(0) +2 >Emitted(37, 28) Source(21, 83) + SourceIndex(0) +3 >Emitted(37, 30) Source(21, 37) + SourceIndex(0) +4 >Emitted(37, 51) Source(21, 83) + SourceIndex(0) +5 >Emitted(37, 53) Source(21, 37) + SourceIndex(0) +6 >Emitted(37, 57) Source(21, 83) + SourceIndex(0) --- >>> restGreetings[_i - 1] = arguments[_i]; 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...restGreetings /* more greeting */: string[] -1 >Emitted(23, 17) Source(21, 37) + SourceIndex(0) -2 >Emitted(23, 55) Source(21, 83) + SourceIndex(0) +1 >Emitted(38, 17) Source(21, 37) + SourceIndex(0) +2 >Emitted(38, 55) Source(21, 83) + SourceIndex(0) --- >>> } >>> var greeters = []; /* inline block comment */ @@ -478,14 +493,14 @@ sourceFile:sourceMapValidationClasses.ts 6 > ; 7 > 8 > /* inline block comment */ -1 >Emitted(25, 13) Source(22, 9) + SourceIndex(0) -2 >Emitted(25, 17) Source(22, 13) + SourceIndex(0) -3 >Emitted(25, 25) Source(22, 21) + SourceIndex(0) -4 >Emitted(25, 28) Source(22, 35) + SourceIndex(0) -5 >Emitted(25, 30) Source(22, 37) + SourceIndex(0) -6 >Emitted(25, 31) Source(22, 38) + SourceIndex(0) -7 >Emitted(25, 32) Source(22, 39) + SourceIndex(0) -8 >Emitted(25, 58) Source(22, 65) + SourceIndex(0) +1 >Emitted(40, 13) Source(22, 9) + SourceIndex(0) +2 >Emitted(40, 17) Source(22, 13) + SourceIndex(0) +3 >Emitted(40, 25) Source(22, 21) + SourceIndex(0) +4 >Emitted(40, 28) Source(22, 35) + SourceIndex(0) +5 >Emitted(40, 30) Source(22, 37) + SourceIndex(0) +6 >Emitted(40, 31) Source(22, 38) + SourceIndex(0) +7 >Emitted(40, 32) Source(22, 39) + SourceIndex(0) +8 >Emitted(40, 58) Source(22, 65) + SourceIndex(0) --- >>> greeters[0] = new Greeter(greeting); 1 >^^^^^^^^^^^^ @@ -514,18 +529,18 @@ sourceFile:sourceMapValidationClasses.ts 10> greeting 11> ) 12> ; -1 >Emitted(26, 13) Source(23, 9) + SourceIndex(0) -2 >Emitted(26, 21) Source(23, 17) + SourceIndex(0) -3 >Emitted(26, 22) Source(23, 18) + SourceIndex(0) -4 >Emitted(26, 23) Source(23, 19) + SourceIndex(0) -5 >Emitted(26, 24) Source(23, 20) + SourceIndex(0) -6 >Emitted(26, 27) Source(23, 23) + SourceIndex(0) -7 >Emitted(26, 31) Source(23, 27) + SourceIndex(0) -8 >Emitted(26, 38) Source(23, 34) + SourceIndex(0) -9 >Emitted(26, 39) Source(23, 35) + SourceIndex(0) -10>Emitted(26, 47) Source(23, 43) + SourceIndex(0) -11>Emitted(26, 48) Source(23, 44) + SourceIndex(0) -12>Emitted(26, 49) Source(23, 45) + SourceIndex(0) +1 >Emitted(41, 13) Source(23, 9) + SourceIndex(0) +2 >Emitted(41, 21) Source(23, 17) + SourceIndex(0) +3 >Emitted(41, 22) Source(23, 18) + SourceIndex(0) +4 >Emitted(41, 23) Source(23, 19) + SourceIndex(0) +5 >Emitted(41, 24) Source(23, 20) + SourceIndex(0) +6 >Emitted(41, 27) Source(23, 23) + SourceIndex(0) +7 >Emitted(41, 31) Source(23, 27) + SourceIndex(0) +8 >Emitted(41, 38) Source(23, 34) + SourceIndex(0) +9 >Emitted(41, 39) Source(23, 35) + SourceIndex(0) +10>Emitted(41, 47) Source(23, 43) + SourceIndex(0) +11>Emitted(41, 48) Source(23, 44) + SourceIndex(0) +12>Emitted(41, 49) Source(23, 45) + SourceIndex(0) --- >>> for (var i = 0; i < restGreetings.length; i++) { 1->^^^^^^^^^^^^ @@ -568,25 +583,25 @@ sourceFile:sourceMapValidationClasses.ts 17> ++ 18> ) 19> { -1->Emitted(27, 13) Source(24, 9) + SourceIndex(0) -2 >Emitted(27, 16) Source(24, 12) + SourceIndex(0) -3 >Emitted(27, 17) Source(24, 13) + SourceIndex(0) -4 >Emitted(27, 18) Source(24, 14) + SourceIndex(0) -5 >Emitted(27, 22) Source(24, 18) + SourceIndex(0) -6 >Emitted(27, 23) Source(24, 19) + SourceIndex(0) -7 >Emitted(27, 26) Source(24, 22) + SourceIndex(0) -8 >Emitted(27, 27) Source(24, 23) + SourceIndex(0) -9 >Emitted(27, 29) Source(24, 25) + SourceIndex(0) -10>Emitted(27, 30) Source(24, 26) + SourceIndex(0) -11>Emitted(27, 33) Source(24, 29) + SourceIndex(0) -12>Emitted(27, 46) Source(24, 42) + SourceIndex(0) -13>Emitted(27, 47) Source(24, 43) + SourceIndex(0) -14>Emitted(27, 53) Source(24, 49) + SourceIndex(0) -15>Emitted(27, 55) Source(24, 51) + SourceIndex(0) -16>Emitted(27, 56) Source(24, 52) + SourceIndex(0) -17>Emitted(27, 58) Source(24, 54) + SourceIndex(0) -18>Emitted(27, 60) Source(24, 56) + SourceIndex(0) -19>Emitted(27, 61) Source(24, 57) + SourceIndex(0) +1->Emitted(42, 13) Source(24, 9) + SourceIndex(0) +2 >Emitted(42, 16) Source(24, 12) + SourceIndex(0) +3 >Emitted(42, 17) Source(24, 13) + SourceIndex(0) +4 >Emitted(42, 18) Source(24, 14) + SourceIndex(0) +5 >Emitted(42, 22) Source(24, 18) + SourceIndex(0) +6 >Emitted(42, 23) Source(24, 19) + SourceIndex(0) +7 >Emitted(42, 26) Source(24, 22) + SourceIndex(0) +8 >Emitted(42, 27) Source(24, 23) + SourceIndex(0) +9 >Emitted(42, 29) Source(24, 25) + SourceIndex(0) +10>Emitted(42, 30) Source(24, 26) + SourceIndex(0) +11>Emitted(42, 33) Source(24, 29) + SourceIndex(0) +12>Emitted(42, 46) Source(24, 42) + SourceIndex(0) +13>Emitted(42, 47) Source(24, 43) + SourceIndex(0) +14>Emitted(42, 53) Source(24, 49) + SourceIndex(0) +15>Emitted(42, 55) Source(24, 51) + SourceIndex(0) +16>Emitted(42, 56) Source(24, 52) + SourceIndex(0) +17>Emitted(42, 58) Source(24, 54) + SourceIndex(0) +18>Emitted(42, 60) Source(24, 56) + SourceIndex(0) +19>Emitted(42, 61) Source(24, 57) + SourceIndex(0) --- >>> greeters.push(new Greeter(restGreetings[i])); 1->^^^^^^^^^^^^^^^^ @@ -620,21 +635,21 @@ sourceFile:sourceMapValidationClasses.ts 13> ) 14> ) 15> ; -1->Emitted(28, 17) Source(25, 13) + SourceIndex(0) -2 >Emitted(28, 25) Source(25, 21) + SourceIndex(0) -3 >Emitted(28, 26) Source(25, 22) + SourceIndex(0) -4 >Emitted(28, 30) Source(25, 26) + SourceIndex(0) -5 >Emitted(28, 31) Source(25, 27) + SourceIndex(0) -6 >Emitted(28, 35) Source(25, 31) + SourceIndex(0) -7 >Emitted(28, 42) Source(25, 38) + SourceIndex(0) -8 >Emitted(28, 43) Source(25, 39) + SourceIndex(0) -9 >Emitted(28, 56) Source(25, 52) + SourceIndex(0) -10>Emitted(28, 57) Source(25, 53) + SourceIndex(0) -11>Emitted(28, 58) Source(25, 54) + SourceIndex(0) -12>Emitted(28, 59) Source(25, 55) + SourceIndex(0) -13>Emitted(28, 60) Source(25, 56) + SourceIndex(0) -14>Emitted(28, 61) Source(25, 57) + SourceIndex(0) -15>Emitted(28, 62) Source(25, 58) + SourceIndex(0) +1->Emitted(43, 17) Source(25, 13) + SourceIndex(0) +2 >Emitted(43, 25) Source(25, 21) + SourceIndex(0) +3 >Emitted(43, 26) Source(25, 22) + SourceIndex(0) +4 >Emitted(43, 30) Source(25, 26) + SourceIndex(0) +5 >Emitted(43, 31) Source(25, 27) + SourceIndex(0) +6 >Emitted(43, 35) Source(25, 31) + SourceIndex(0) +7 >Emitted(43, 42) Source(25, 38) + SourceIndex(0) +8 >Emitted(43, 43) Source(25, 39) + SourceIndex(0) +9 >Emitted(43, 56) Source(25, 52) + SourceIndex(0) +10>Emitted(43, 57) Source(25, 53) + SourceIndex(0) +11>Emitted(43, 58) Source(25, 54) + SourceIndex(0) +12>Emitted(43, 59) Source(25, 55) + SourceIndex(0) +13>Emitted(43, 60) Source(25, 56) + SourceIndex(0) +14>Emitted(43, 61) Source(25, 57) + SourceIndex(0) +15>Emitted(43, 62) Source(25, 58) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^ @@ -643,8 +658,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(29, 13) Source(26, 9) + SourceIndex(0) -2 >Emitted(29, 14) Source(26, 10) + SourceIndex(0) +1 >Emitted(44, 13) Source(26, 9) + SourceIndex(0) +2 >Emitted(44, 14) Source(26, 10) + SourceIndex(0) --- >>> return greeters; 1->^^^^^^^^^^^^ @@ -659,11 +674,11 @@ sourceFile:sourceMapValidationClasses.ts 3 > 4 > greeters 5 > ; -1->Emitted(30, 13) Source(28, 9) + SourceIndex(0) -2 >Emitted(30, 19) Source(28, 15) + SourceIndex(0) -3 >Emitted(30, 20) Source(28, 16) + SourceIndex(0) -4 >Emitted(30, 28) Source(28, 24) + SourceIndex(0) -5 >Emitted(30, 29) Source(28, 25) + SourceIndex(0) +1->Emitted(45, 13) Source(28, 9) + SourceIndex(0) +2 >Emitted(45, 19) Source(28, 15) + SourceIndex(0) +3 >Emitted(45, 20) Source(28, 16) + SourceIndex(0) +4 >Emitted(45, 28) Source(28, 24) + SourceIndex(0) +5 >Emitted(45, 29) Source(28, 25) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -672,8 +687,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(31, 9) Source(29, 5) + SourceIndex(0) -2 >Emitted(31, 10) Source(29, 6) + SourceIndex(0) +1 >Emitted(46, 9) Source(29, 5) + SourceIndex(0) +2 >Emitted(46, 10) Source(29, 6) + SourceIndex(0) --- >>> var b = foo2("Hello", "World", "!"); 1->^^^^^^^^ @@ -705,19 +720,19 @@ sourceFile:sourceMapValidationClasses.ts 11> "!" 12> ) 13> ; -1->Emitted(32, 9) Source(31, 5) + SourceIndex(0) -2 >Emitted(32, 13) Source(31, 9) + SourceIndex(0) -3 >Emitted(32, 14) Source(31, 10) + SourceIndex(0) -4 >Emitted(32, 17) Source(31, 13) + SourceIndex(0) -5 >Emitted(32, 21) Source(31, 17) + SourceIndex(0) -6 >Emitted(32, 22) Source(31, 18) + SourceIndex(0) -7 >Emitted(32, 29) Source(31, 25) + SourceIndex(0) -8 >Emitted(32, 31) Source(31, 27) + SourceIndex(0) -9 >Emitted(32, 38) Source(31, 34) + SourceIndex(0) -10>Emitted(32, 40) Source(31, 36) + SourceIndex(0) -11>Emitted(32, 43) Source(31, 39) + SourceIndex(0) -12>Emitted(32, 44) Source(31, 40) + SourceIndex(0) -13>Emitted(32, 45) Source(31, 41) + SourceIndex(0) +1->Emitted(47, 9) Source(31, 5) + SourceIndex(0) +2 >Emitted(47, 13) Source(31, 9) + SourceIndex(0) +3 >Emitted(47, 14) Source(31, 10) + SourceIndex(0) +4 >Emitted(47, 17) Source(31, 13) + SourceIndex(0) +5 >Emitted(47, 21) Source(31, 17) + SourceIndex(0) +6 >Emitted(47, 22) Source(31, 18) + SourceIndex(0) +7 >Emitted(47, 29) Source(31, 25) + SourceIndex(0) +8 >Emitted(47, 31) Source(31, 27) + SourceIndex(0) +9 >Emitted(47, 38) Source(31, 34) + SourceIndex(0) +10>Emitted(47, 40) Source(31, 36) + SourceIndex(0) +11>Emitted(47, 43) Source(31, 39) + SourceIndex(0) +12>Emitted(47, 44) Source(31, 40) + SourceIndex(0) +13>Emitted(47, 45) Source(31, 41) + SourceIndex(0) --- >>> // This is simple signle line comment 1->^^^^^^^^ @@ -725,8 +740,8 @@ sourceFile:sourceMapValidationClasses.ts 1-> > 2 > // This is simple signle line comment -1->Emitted(33, 9) Source(32, 5) + SourceIndex(0) -2 >Emitted(33, 46) Source(32, 42) + SourceIndex(0) +1->Emitted(48, 9) Source(32, 5) + SourceIndex(0) +2 >Emitted(48, 46) Source(32, 42) + SourceIndex(0) --- >>> for (var j = 0; j < b.length; j++) { 1 >^^^^^^^^ @@ -768,25 +783,25 @@ sourceFile:sourceMapValidationClasses.ts 17> ++ 18> ) 19> { -1 >Emitted(34, 9) Source(33, 5) + SourceIndex(0) -2 >Emitted(34, 12) Source(33, 8) + SourceIndex(0) -3 >Emitted(34, 13) Source(33, 9) + SourceIndex(0) -4 >Emitted(34, 14) Source(33, 10) + SourceIndex(0) -5 >Emitted(34, 18) Source(33, 14) + SourceIndex(0) -6 >Emitted(34, 19) Source(33, 15) + SourceIndex(0) -7 >Emitted(34, 22) Source(33, 18) + SourceIndex(0) -8 >Emitted(34, 23) Source(33, 19) + SourceIndex(0) -9 >Emitted(34, 25) Source(33, 21) + SourceIndex(0) -10>Emitted(34, 26) Source(33, 22) + SourceIndex(0) -11>Emitted(34, 29) Source(33, 25) + SourceIndex(0) -12>Emitted(34, 30) Source(33, 26) + SourceIndex(0) -13>Emitted(34, 31) Source(33, 27) + SourceIndex(0) -14>Emitted(34, 37) Source(33, 33) + SourceIndex(0) -15>Emitted(34, 39) Source(33, 35) + SourceIndex(0) -16>Emitted(34, 40) Source(33, 36) + SourceIndex(0) -17>Emitted(34, 42) Source(33, 38) + SourceIndex(0) -18>Emitted(34, 44) Source(33, 40) + SourceIndex(0) -19>Emitted(34, 45) Source(33, 41) + SourceIndex(0) +1 >Emitted(49, 9) Source(33, 5) + SourceIndex(0) +2 >Emitted(49, 12) Source(33, 8) + SourceIndex(0) +3 >Emitted(49, 13) Source(33, 9) + SourceIndex(0) +4 >Emitted(49, 14) Source(33, 10) + SourceIndex(0) +5 >Emitted(49, 18) Source(33, 14) + SourceIndex(0) +6 >Emitted(49, 19) Source(33, 15) + SourceIndex(0) +7 >Emitted(49, 22) Source(33, 18) + SourceIndex(0) +8 >Emitted(49, 23) Source(33, 19) + SourceIndex(0) +9 >Emitted(49, 25) Source(33, 21) + SourceIndex(0) +10>Emitted(49, 26) Source(33, 22) + SourceIndex(0) +11>Emitted(49, 29) Source(33, 25) + SourceIndex(0) +12>Emitted(49, 30) Source(33, 26) + SourceIndex(0) +13>Emitted(49, 31) Source(33, 27) + SourceIndex(0) +14>Emitted(49, 37) Source(33, 33) + SourceIndex(0) +15>Emitted(49, 39) Source(33, 35) + SourceIndex(0) +16>Emitted(49, 40) Source(33, 36) + SourceIndex(0) +17>Emitted(49, 42) Source(33, 38) + SourceIndex(0) +18>Emitted(49, 44) Source(33, 40) + SourceIndex(0) +19>Emitted(49, 45) Source(33, 41) + SourceIndex(0) --- >>> b[j].greet(); 1 >^^^^^^^^^^^^ @@ -808,15 +823,15 @@ sourceFile:sourceMapValidationClasses.ts 7 > greet 8 > () 9 > ; -1 >Emitted(35, 13) Source(34, 9) + SourceIndex(0) -2 >Emitted(35, 14) Source(34, 10) + SourceIndex(0) -3 >Emitted(35, 15) Source(34, 11) + SourceIndex(0) -4 >Emitted(35, 16) Source(34, 12) + SourceIndex(0) -5 >Emitted(35, 17) Source(34, 13) + SourceIndex(0) -6 >Emitted(35, 18) Source(34, 14) + SourceIndex(0) -7 >Emitted(35, 23) Source(34, 19) + SourceIndex(0) -8 >Emitted(35, 25) Source(34, 21) + SourceIndex(0) -9 >Emitted(35, 26) Source(34, 22) + SourceIndex(0) +1 >Emitted(50, 13) Source(34, 9) + SourceIndex(0) +2 >Emitted(50, 14) Source(34, 10) + SourceIndex(0) +3 >Emitted(50, 15) Source(34, 11) + SourceIndex(0) +4 >Emitted(50, 16) Source(34, 12) + SourceIndex(0) +5 >Emitted(50, 17) Source(34, 13) + SourceIndex(0) +6 >Emitted(50, 18) Source(34, 14) + SourceIndex(0) +7 >Emitted(50, 23) Source(34, 19) + SourceIndex(0) +8 >Emitted(50, 25) Source(34, 21) + SourceIndex(0) +9 >Emitted(50, 26) Source(34, 22) + SourceIndex(0) --- >>> } 1 >^^^^^^^^ @@ -825,8 +840,8 @@ sourceFile:sourceMapValidationClasses.ts 1 > > 2 > } -1 >Emitted(36, 9) Source(35, 5) + SourceIndex(0) -2 >Emitted(36, 10) Source(35, 6) + SourceIndex(0) +1 >Emitted(51, 9) Source(35, 5) + SourceIndex(0) +2 >Emitted(51, 10) Source(35, 6) + SourceIndex(0) --- >>> })(Bar = Foo.Bar || (Foo.Bar = {})); 1->^^^^ @@ -883,15 +898,15 @@ sourceFile:sourceMapValidationClasses.ts > b[j].greet(); > } > } -1->Emitted(37, 5) Source(36, 1) + SourceIndex(0) -2 >Emitted(37, 6) Source(36, 2) + SourceIndex(0) -3 >Emitted(37, 8) Source(1, 12) + SourceIndex(0) -4 >Emitted(37, 11) Source(1, 15) + SourceIndex(0) -5 >Emitted(37, 14) Source(1, 12) + SourceIndex(0) -6 >Emitted(37, 21) Source(1, 15) + SourceIndex(0) -7 >Emitted(37, 26) Source(1, 12) + SourceIndex(0) -8 >Emitted(37, 33) Source(1, 15) + SourceIndex(0) -9 >Emitted(37, 41) Source(36, 2) + SourceIndex(0) +1->Emitted(52, 5) Source(36, 1) + SourceIndex(0) +2 >Emitted(52, 6) Source(36, 2) + SourceIndex(0) +3 >Emitted(52, 8) Source(1, 12) + SourceIndex(0) +4 >Emitted(52, 11) Source(1, 15) + SourceIndex(0) +5 >Emitted(52, 14) Source(1, 12) + SourceIndex(0) +6 >Emitted(52, 21) Source(1, 15) + SourceIndex(0) +7 >Emitted(52, 26) Source(1, 12) + SourceIndex(0) +8 >Emitted(52, 33) Source(1, 15) + SourceIndex(0) +9 >Emitted(52, 41) Source(36, 2) + SourceIndex(0) --- >>>})(Foo || (Foo = {})); 1 > @@ -944,12 +959,12 @@ sourceFile:sourceMapValidationClasses.ts > b[j].greet(); > } > } -1 >Emitted(38, 1) Source(36, 1) + SourceIndex(0) -2 >Emitted(38, 2) Source(36, 2) + SourceIndex(0) -3 >Emitted(38, 4) Source(1, 8) + SourceIndex(0) -4 >Emitted(38, 7) Source(1, 11) + SourceIndex(0) -5 >Emitted(38, 12) Source(1, 8) + SourceIndex(0) -6 >Emitted(38, 15) Source(1, 11) + SourceIndex(0) -7 >Emitted(38, 23) Source(36, 2) + SourceIndex(0) +1 >Emitted(53, 1) Source(36, 1) + SourceIndex(0) +2 >Emitted(53, 2) Source(36, 2) + SourceIndex(0) +3 >Emitted(53, 4) Source(1, 8) + SourceIndex(0) +4 >Emitted(53, 7) Source(1, 11) + SourceIndex(0) +5 >Emitted(53, 12) Source(1, 8) + SourceIndex(0) +6 >Emitted(53, 15) Source(1, 11) + SourceIndex(0) +7 >Emitted(53, 23) Source(36, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationClasses.js.map \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDecorators.js b/tests/baselines/reference/sourceMapValidationDecorators.js index c3bb5cd722526..b476d7a70fd14 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.js +++ b/tests/baselines/reference/sourceMapValidationDecorators.js @@ -55,6 +55,20 @@ class Greeter { } //// [sourceMapValidationDecorators.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -88,6 +102,7 @@ var Greeter = (function () { enumerable: true, configurable: true }); + __names(Greeter.prototype, ["greet", "fn"]); Greeter.x1 = 10; __decorate([ PropertyDecorator1, diff --git a/tests/baselines/reference/sourceMapValidationDecorators.js.map b/tests/baselines/reference/sourceMapValidationDecorators.js.map index c5666dc31474f..0d365dc68d6f1 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.js.map +++ b/tests/baselines/reference/sourceMapValidationDecorators.js.map @@ -1,2 +1,2 @@ //// [sourceMapValidationDecorators.js.map] -{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":";;;;;;;;;AASA;IACI,iBAGS,QAAgB;QAIvB,WAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,0BAAc;;QAJP,aAAQ,GAAR,QAAQ,CAAQ;IAKzB,CAAC;IAID,uBAAK,GAAL;QACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAUO,oBAAE,GAAV,UAGE,CAAS;QACP,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAID,sBAAI,8BAAS;aAAb;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAGE,SAAiB;YACf,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC9B,CAAC;;;OAPA;IAbc,UAAE,GAAW,EAAE,CAAC;IAV/B;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;wCAGtB;IAID;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;sCACL;IAMlB;QACG,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;qCAGzB;IAID;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;QAMpB,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;4CAJzB;IAbD;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;6BACQ;IAvB7B,OAAO;QAFZ,eAAe;QACf,eAAe,CAAC,EAAE,CAAC;QAGb,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAGvB,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;OAPxB,OAAO,CA4CZ;IAAD,cAAC;CAAA,AA5CD,IA4CC"} \ No newline at end of file +{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASA;IACI,iBAGS,QAAgB;QAIvB,WAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,0BAAc;;QAJP,aAAQ,GAAR,QAAQ,CAAQ;IAKzB,CAAC;IAID,uBAAK,GAAL;QACI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAUO,oBAAE,GAAV,UAGE,CAAS;QACP,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAID,sBAAI,8BAAS;aAAb;YACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;aAED,UAGE,SAAiB;YACf,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC9B,CAAC;;;OAPA;;IAbc,UAAE,GAAW,EAAE,CAAC;IAV/B;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;wCAGtB;IAID;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;sCACL;IAMlB;QACG,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;qCAGzB;IAID;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;QAMpB,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;4CAJzB;IAbD;QAFC,kBAAkB;QAClB,kBAAkB,CAAC,EAAE,CAAC;6BACQ;IAvB7B,OAAO;QAFZ,eAAe;QACf,eAAe,CAAC,EAAE,CAAC;QAGb,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;QAGvB,WAAA,mBAAmB,CAAA;QACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;OAPxB,OAAO,CA4CZ;IAAD,cAAC;CAAA,AA5CD,IA4CC"} \ No newline at end of file diff --git a/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt index 2cec971546b15..f1d8268322813 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt @@ -8,6 +8,20 @@ sources: sourceMapValidationDecorators.ts emittedFile:tests/cases/compiler/sourceMapValidationDecorators.js sourceFile:sourceMapValidationDecorators.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { >>> var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; >>> if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); @@ -30,7 +44,7 @@ sourceFile:sourceMapValidationDecorators.ts >@ClassDecorator1 >@ClassDecorator2(10) > -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) +1 >Emitted(24, 1) Source(10, 1) + SourceIndex(0) --- >>> function Greeter(greeting) { 1->^^^^ @@ -43,9 +57,9 @@ sourceFile:sourceMapValidationDecorators.ts > @ParameterDecorator2(20) > public 3 > greeting: string -1->Emitted(11, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(11, 22) Source(14, 14) + SourceIndex(0) -3 >Emitted(11, 30) Source(14, 30) + SourceIndex(0) +1->Emitted(25, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(25, 22) Source(14, 14) + SourceIndex(0) +3 >Emitted(25, 30) Source(14, 30) + SourceIndex(0) --- >>> var b = []; 1 >^^^^^^^^ @@ -57,8 +71,8 @@ sourceFile:sourceMapValidationDecorators.ts > @ParameterDecorator2(30) > 2 > ...b: string[] -1 >Emitted(12, 9) Source(18, 7) + SourceIndex(0) -2 >Emitted(12, 20) Source(18, 21) + SourceIndex(0) +1 >Emitted(26, 9) Source(18, 7) + SourceIndex(0) +2 >Emitted(26, 20) Source(18, 21) + SourceIndex(0) --- >>> for (var _i = 1; _i < arguments.length; _i++) { 1->^^^^^^^^^^^^^ @@ -73,20 +87,20 @@ sourceFile:sourceMapValidationDecorators.ts 4 > ...b: string[] 5 > 6 > ...b: string[] -1->Emitted(13, 14) Source(18, 7) + SourceIndex(0) -2 >Emitted(13, 24) Source(18, 21) + SourceIndex(0) -3 >Emitted(13, 26) Source(18, 7) + SourceIndex(0) -4 >Emitted(13, 47) Source(18, 21) + SourceIndex(0) -5 >Emitted(13, 49) Source(18, 7) + SourceIndex(0) -6 >Emitted(13, 53) Source(18, 21) + SourceIndex(0) +1->Emitted(27, 14) Source(18, 7) + SourceIndex(0) +2 >Emitted(27, 24) Source(18, 21) + SourceIndex(0) +3 >Emitted(27, 26) Source(18, 7) + SourceIndex(0) +4 >Emitted(27, 47) Source(18, 21) + SourceIndex(0) +5 >Emitted(27, 49) Source(18, 7) + SourceIndex(0) +6 >Emitted(27, 53) Source(18, 21) + SourceIndex(0) --- >>> b[_i - 1] = arguments[_i]; 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: string[] -1 >Emitted(14, 13) Source(18, 7) + SourceIndex(0) -2 >Emitted(14, 39) Source(18, 21) + SourceIndex(0) +1 >Emitted(28, 13) Source(18, 7) + SourceIndex(0) +2 >Emitted(28, 39) Source(18, 21) + SourceIndex(0) --- >>> } >>> this.greeting = greeting; @@ -100,11 +114,11 @@ sourceFile:sourceMapValidationDecorators.ts 3 > 4 > greeting 5 > : string -1 >Emitted(16, 9) Source(14, 14) + SourceIndex(0) -2 >Emitted(16, 22) Source(14, 22) + SourceIndex(0) -3 >Emitted(16, 25) Source(14, 14) + SourceIndex(0) -4 >Emitted(16, 33) Source(14, 22) + SourceIndex(0) -5 >Emitted(16, 34) Source(14, 30) + SourceIndex(0) +1 >Emitted(30, 9) Source(14, 14) + SourceIndex(0) +2 >Emitted(30, 22) Source(14, 22) + SourceIndex(0) +3 >Emitted(30, 25) Source(14, 14) + SourceIndex(0) +4 >Emitted(30, 33) Source(14, 22) + SourceIndex(0) +5 >Emitted(30, 34) Source(14, 30) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -117,8 +131,8 @@ sourceFile:sourceMapValidationDecorators.ts > ...b: string[]) { > 2 > } -1 >Emitted(17, 5) Source(19, 5) + SourceIndex(0) -2 >Emitted(17, 6) Source(19, 6) + SourceIndex(0) +1 >Emitted(31, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(31, 6) Source(19, 6) + SourceIndex(0) --- >>> Greeter.prototype.greet = function () { 1->^^^^ @@ -132,9 +146,9 @@ sourceFile:sourceMapValidationDecorators.ts > 2 > greet 3 > -1->Emitted(18, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(18, 28) Source(23, 10) + SourceIndex(0) -3 >Emitted(18, 31) Source(23, 5) + SourceIndex(0) +1->Emitted(32, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(32, 28) Source(23, 10) + SourceIndex(0) +3 >Emitted(32, 31) Source(23, 5) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^ @@ -160,17 +174,17 @@ sourceFile:sourceMapValidationDecorators.ts 9 > + 10> "" 11> ; -1->Emitted(19, 9) Source(24, 9) + SourceIndex(0) -2 >Emitted(19, 15) Source(24, 15) + SourceIndex(0) -3 >Emitted(19, 16) Source(24, 16) + SourceIndex(0) -4 >Emitted(19, 22) Source(24, 22) + SourceIndex(0) -5 >Emitted(19, 25) Source(24, 25) + SourceIndex(0) -6 >Emitted(19, 29) Source(24, 29) + SourceIndex(0) -7 >Emitted(19, 30) Source(24, 30) + SourceIndex(0) -8 >Emitted(19, 38) Source(24, 38) + SourceIndex(0) -9 >Emitted(19, 41) Source(24, 41) + SourceIndex(0) -10>Emitted(19, 48) Source(24, 48) + SourceIndex(0) -11>Emitted(19, 49) Source(24, 49) + SourceIndex(0) +1->Emitted(33, 9) Source(24, 9) + SourceIndex(0) +2 >Emitted(33, 15) Source(24, 15) + SourceIndex(0) +3 >Emitted(33, 16) Source(24, 16) + SourceIndex(0) +4 >Emitted(33, 22) Source(24, 22) + SourceIndex(0) +5 >Emitted(33, 25) Source(24, 25) + SourceIndex(0) +6 >Emitted(33, 29) Source(24, 29) + SourceIndex(0) +7 >Emitted(33, 30) Source(24, 30) + SourceIndex(0) +8 >Emitted(33, 38) Source(24, 38) + SourceIndex(0) +9 >Emitted(33, 41) Source(24, 41) + SourceIndex(0) +10>Emitted(33, 48) Source(24, 48) + SourceIndex(0) +11>Emitted(33, 49) Source(24, 49) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -179,8 +193,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(20, 6) Source(25, 6) + SourceIndex(0) +1 >Emitted(34, 5) Source(25, 5) + SourceIndex(0) +2 >Emitted(34, 6) Source(25, 6) + SourceIndex(0) --- >>> Greeter.prototype.fn = function (x) { 1->^^^^ @@ -206,11 +220,11 @@ sourceFile:sourceMapValidationDecorators.ts > @ParameterDecorator2(70) > 5 > x: number -1->Emitted(21, 5) Source(35, 13) + SourceIndex(0) -2 >Emitted(21, 25) Source(35, 15) + SourceIndex(0) -3 >Emitted(21, 28) Source(35, 5) + SourceIndex(0) -4 >Emitted(21, 38) Source(38, 7) + SourceIndex(0) -5 >Emitted(21, 39) Source(38, 16) + SourceIndex(0) +1->Emitted(35, 5) Source(35, 13) + SourceIndex(0) +2 >Emitted(35, 25) Source(35, 15) + SourceIndex(0) +3 >Emitted(35, 28) Source(35, 5) + SourceIndex(0) +4 >Emitted(35, 38) Source(38, 7) + SourceIndex(0) +5 >Emitted(35, 39) Source(38, 16) + SourceIndex(0) --- >>> return this.greeting; 1 >^^^^^^^^ @@ -228,13 +242,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > . 6 > greeting 7 > ; -1 >Emitted(22, 9) Source(39, 9) + SourceIndex(0) -2 >Emitted(22, 15) Source(39, 15) + SourceIndex(0) -3 >Emitted(22, 16) Source(39, 16) + SourceIndex(0) -4 >Emitted(22, 20) Source(39, 20) + SourceIndex(0) -5 >Emitted(22, 21) Source(39, 21) + SourceIndex(0) -6 >Emitted(22, 29) Source(39, 29) + SourceIndex(0) -7 >Emitted(22, 30) Source(39, 30) + SourceIndex(0) +1 >Emitted(36, 9) Source(39, 9) + SourceIndex(0) +2 >Emitted(36, 15) Source(39, 15) + SourceIndex(0) +3 >Emitted(36, 16) Source(39, 16) + SourceIndex(0) +4 >Emitted(36, 20) Source(39, 20) + SourceIndex(0) +5 >Emitted(36, 21) Source(39, 21) + SourceIndex(0) +6 >Emitted(36, 29) Source(39, 29) + SourceIndex(0) +7 >Emitted(36, 30) Source(39, 30) + SourceIndex(0) --- >>> }; 1 >^^^^ @@ -243,8 +257,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(40, 5) + SourceIndex(0) -2 >Emitted(23, 6) Source(40, 6) + SourceIndex(0) +1 >Emitted(37, 5) Source(40, 5) + SourceIndex(0) +2 >Emitted(37, 6) Source(40, 6) + SourceIndex(0) --- >>> Object.defineProperty(Greeter.prototype, "greetings", { 1->^^^^ @@ -257,15 +271,15 @@ sourceFile:sourceMapValidationDecorators.ts > 2 > get 3 > greetings -1->Emitted(24, 5) Source(44, 5) + SourceIndex(0) -2 >Emitted(24, 27) Source(44, 9) + SourceIndex(0) -3 >Emitted(24, 57) Source(44, 18) + SourceIndex(0) +1->Emitted(38, 5) Source(44, 5) + SourceIndex(0) +2 >Emitted(38, 27) Source(44, 9) + SourceIndex(0) +3 >Emitted(38, 57) Source(44, 18) + SourceIndex(0) --- >>> get: function () { 1 >^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(25, 14) Source(44, 5) + SourceIndex(0) +1 >Emitted(39, 14) Source(44, 5) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^^^^^ @@ -283,13 +297,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > . 6 > greeting 7 > ; -1->Emitted(26, 13) Source(45, 9) + SourceIndex(0) -2 >Emitted(26, 19) Source(45, 15) + SourceIndex(0) -3 >Emitted(26, 20) Source(45, 16) + SourceIndex(0) -4 >Emitted(26, 24) Source(45, 20) + SourceIndex(0) -5 >Emitted(26, 25) Source(45, 21) + SourceIndex(0) -6 >Emitted(26, 33) Source(45, 29) + SourceIndex(0) -7 >Emitted(26, 34) Source(45, 30) + SourceIndex(0) +1->Emitted(40, 13) Source(45, 9) + SourceIndex(0) +2 >Emitted(40, 19) Source(45, 15) + SourceIndex(0) +3 >Emitted(40, 20) Source(45, 16) + SourceIndex(0) +4 >Emitted(40, 24) Source(45, 20) + SourceIndex(0) +5 >Emitted(40, 25) Source(45, 21) + SourceIndex(0) +6 >Emitted(40, 33) Source(45, 29) + SourceIndex(0) +7 >Emitted(40, 34) Source(45, 30) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -298,8 +312,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(27, 9) Source(46, 5) + SourceIndex(0) -2 >Emitted(27, 10) Source(46, 6) + SourceIndex(0) +1 >Emitted(41, 9) Source(46, 5) + SourceIndex(0) +2 >Emitted(41, 10) Source(46, 6) + SourceIndex(0) --- >>> set: function (greetings) { 1->^^^^^^^^^^^^^ @@ -314,9 +328,9 @@ sourceFile:sourceMapValidationDecorators.ts > @ParameterDecorator2(90) > 3 > greetings: string -1->Emitted(28, 14) Source(48, 5) + SourceIndex(0) -2 >Emitted(28, 24) Source(51, 7) + SourceIndex(0) -3 >Emitted(28, 33) Source(51, 24) + SourceIndex(0) +1->Emitted(42, 14) Source(48, 5) + SourceIndex(0) +2 >Emitted(42, 24) Source(51, 7) + SourceIndex(0) +3 >Emitted(42, 33) Source(51, 24) + SourceIndex(0) --- >>> this.greeting = greetings; 1->^^^^^^^^^^^^ @@ -334,13 +348,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > = 6 > greetings 7 > ; -1->Emitted(29, 13) Source(52, 9) + SourceIndex(0) -2 >Emitted(29, 17) Source(52, 13) + SourceIndex(0) -3 >Emitted(29, 18) Source(52, 14) + SourceIndex(0) -4 >Emitted(29, 26) Source(52, 22) + SourceIndex(0) -5 >Emitted(29, 29) Source(52, 25) + SourceIndex(0) -6 >Emitted(29, 38) Source(52, 34) + SourceIndex(0) -7 >Emitted(29, 39) Source(52, 35) + SourceIndex(0) +1->Emitted(43, 13) Source(52, 9) + SourceIndex(0) +2 >Emitted(43, 17) Source(52, 13) + SourceIndex(0) +3 >Emitted(43, 18) Source(52, 14) + SourceIndex(0) +4 >Emitted(43, 26) Source(52, 22) + SourceIndex(0) +5 >Emitted(43, 29) Source(52, 25) + SourceIndex(0) +6 >Emitted(43, 38) Source(52, 34) + SourceIndex(0) +7 >Emitted(43, 39) Source(52, 35) + SourceIndex(0) --- >>> }, 1 >^^^^^^^^ @@ -349,17 +363,18 @@ sourceFile:sourceMapValidationDecorators.ts 1 > > 2 > } -1 >Emitted(30, 9) Source(53, 5) + SourceIndex(0) -2 >Emitted(30, 10) Source(53, 6) + SourceIndex(0) +1 >Emitted(44, 9) Source(53, 5) + SourceIndex(0) +2 >Emitted(44, 10) Source(53, 6) + SourceIndex(0) --- >>> enumerable: true, >>> configurable: true >>> }); 1->^^^^^^^ -2 > ^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(33, 8) Source(46, 6) + SourceIndex(0) +1->Emitted(47, 8) Source(46, 6) + SourceIndex(0) --- +>>> __names(Greeter.prototype, ["greet", "fn"]); >>> Greeter.x1 = 10; 1->^^^^ 2 > ^^^^^^^^^^ @@ -371,17 +386,17 @@ sourceFile:sourceMapValidationDecorators.ts 3 > : number = 4 > 10 5 > ; -1->Emitted(34, 5) Source(33, 20) + SourceIndex(0) -2 >Emitted(34, 15) Source(33, 22) + SourceIndex(0) -3 >Emitted(34, 18) Source(33, 33) + SourceIndex(0) -4 >Emitted(34, 20) Source(33, 35) + SourceIndex(0) -5 >Emitted(34, 21) Source(33, 36) + SourceIndex(0) +1->Emitted(49, 5) Source(33, 20) + SourceIndex(0) +2 >Emitted(49, 15) Source(33, 22) + SourceIndex(0) +3 >Emitted(49, 18) Source(33, 33) + SourceIndex(0) +4 >Emitted(49, 20) Source(33, 35) + SourceIndex(0) +5 >Emitted(49, 21) Source(33, 36) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(35, 5) Source(23, 5) + SourceIndex(0) +1 >Emitted(50, 5) Source(23, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -389,8 +404,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^-> 1-> 2 > PropertyDecorator1 -1->Emitted(36, 9) Source(21, 6) + SourceIndex(0) -2 >Emitted(36, 27) Source(21, 24) + SourceIndex(0) +1->Emitted(51, 9) Source(21, 6) + SourceIndex(0) +2 >Emitted(51, 27) Source(21, 24) + SourceIndex(0) --- >>> PropertyDecorator2(40) 1->^^^^^^^^ @@ -405,11 +420,11 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 40 5 > ) -1->Emitted(37, 9) Source(22, 6) + SourceIndex(0) -2 >Emitted(37, 27) Source(22, 24) + SourceIndex(0) -3 >Emitted(37, 28) Source(22, 25) + SourceIndex(0) -4 >Emitted(37, 30) Source(22, 27) + SourceIndex(0) -5 >Emitted(37, 31) Source(22, 28) + SourceIndex(0) +1->Emitted(52, 9) Source(22, 6) + SourceIndex(0) +2 >Emitted(52, 27) Source(22, 24) + SourceIndex(0) +3 >Emitted(52, 28) Source(22, 25) + SourceIndex(0) +4 >Emitted(52, 30) Source(22, 27) + SourceIndex(0) +5 >Emitted(52, 31) Source(22, 28) + SourceIndex(0) --- >>> ], Greeter.prototype, "greet", null); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -417,7 +432,7 @@ sourceFile:sourceMapValidationDecorators.ts > greet() { > return "

" + this.greeting + "

"; > } -1->Emitted(38, 41) Source(25, 6) + SourceIndex(0) +1->Emitted(53, 41) Source(25, 6) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ @@ -427,7 +442,7 @@ sourceFile:sourceMapValidationDecorators.ts > @PropertyDecorator1 > @PropertyDecorator2(50) > -1 >Emitted(39, 5) Source(29, 5) + SourceIndex(0) +1 >Emitted(54, 5) Source(29, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -435,8 +450,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^-> 1-> 2 > PropertyDecorator1 -1->Emitted(40, 9) Source(27, 6) + SourceIndex(0) -2 >Emitted(40, 27) Source(27, 24) + SourceIndex(0) +1->Emitted(55, 9) Source(27, 6) + SourceIndex(0) +2 >Emitted(55, 27) Source(27, 24) + SourceIndex(0) --- >>> PropertyDecorator2(50) 1->^^^^^^^^ @@ -451,17 +466,17 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 50 5 > ) -1->Emitted(41, 9) Source(28, 6) + SourceIndex(0) -2 >Emitted(41, 27) Source(28, 24) + SourceIndex(0) -3 >Emitted(41, 28) Source(28, 25) + SourceIndex(0) -4 >Emitted(41, 30) Source(28, 27) + SourceIndex(0) -5 >Emitted(41, 31) Source(28, 28) + SourceIndex(0) +1->Emitted(56, 9) Source(28, 6) + SourceIndex(0) +2 >Emitted(56, 27) Source(28, 24) + SourceIndex(0) +3 >Emitted(56, 28) Source(28, 25) + SourceIndex(0) +4 >Emitted(56, 30) Source(28, 27) + SourceIndex(0) +5 >Emitted(56, 31) Source(28, 28) + SourceIndex(0) --- >>> ], Greeter.prototype, "x", void 0); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> > private x: string; -1->Emitted(42, 39) Source(29, 23) + SourceIndex(0) +1->Emitted(57, 39) Source(29, 23) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ @@ -473,7 +488,7 @@ sourceFile:sourceMapValidationDecorators.ts > private static x1: number = 10; > > -1 >Emitted(43, 5) Source(35, 5) + SourceIndex(0) +1 >Emitted(58, 5) Source(35, 5) + SourceIndex(0) --- >>> __param(0, ParameterDecorator1), 1->^^^^^^^^ @@ -486,10 +501,10 @@ sourceFile:sourceMapValidationDecorators.ts 2 > 3 > ParameterDecorator1 4 > -1->Emitted(44, 9) Source(36, 8) + SourceIndex(0) -2 >Emitted(44, 20) Source(36, 8) + SourceIndex(0) -3 >Emitted(44, 39) Source(36, 27) + SourceIndex(0) -4 >Emitted(44, 40) Source(36, 27) + SourceIndex(0) +1->Emitted(59, 9) Source(36, 8) + SourceIndex(0) +2 >Emitted(59, 20) Source(36, 8) + SourceIndex(0) +3 >Emitted(59, 39) Source(36, 27) + SourceIndex(0) +4 >Emitted(59, 40) Source(36, 27) + SourceIndex(0) --- >>> __param(0, ParameterDecorator2(70)) 1->^^^^^^^^ @@ -507,13 +522,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > 70 6 > ) 7 > -1->Emitted(45, 9) Source(37, 8) + SourceIndex(0) -2 >Emitted(45, 20) Source(37, 8) + SourceIndex(0) -3 >Emitted(45, 39) Source(37, 27) + SourceIndex(0) -4 >Emitted(45, 40) Source(37, 28) + SourceIndex(0) -5 >Emitted(45, 42) Source(37, 30) + SourceIndex(0) -6 >Emitted(45, 43) Source(37, 31) + SourceIndex(0) -7 >Emitted(45, 44) Source(37, 31) + SourceIndex(0) +1->Emitted(60, 9) Source(37, 8) + SourceIndex(0) +2 >Emitted(60, 20) Source(37, 8) + SourceIndex(0) +3 >Emitted(60, 39) Source(37, 27) + SourceIndex(0) +4 >Emitted(60, 40) Source(37, 28) + SourceIndex(0) +5 >Emitted(60, 42) Source(37, 30) + SourceIndex(0) +6 >Emitted(60, 43) Source(37, 31) + SourceIndex(0) +7 >Emitted(60, 44) Source(37, 31) + SourceIndex(0) --- >>> ], Greeter.prototype, "fn", null); 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -521,7 +536,7 @@ sourceFile:sourceMapValidationDecorators.ts > x: number) { > return this.greeting; > } -1 >Emitted(46, 38) Source(40, 6) + SourceIndex(0) +1 >Emitted(61, 38) Source(40, 6) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ @@ -531,7 +546,7 @@ sourceFile:sourceMapValidationDecorators.ts > @PropertyDecorator1 > @PropertyDecorator2(80) > -1 >Emitted(47, 5) Source(44, 5) + SourceIndex(0) +1 >Emitted(62, 5) Source(44, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -539,8 +554,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^^-> 1-> 2 > PropertyDecorator1 -1->Emitted(48, 9) Source(42, 6) + SourceIndex(0) -2 >Emitted(48, 27) Source(42, 24) + SourceIndex(0) +1->Emitted(63, 9) Source(42, 6) + SourceIndex(0) +2 >Emitted(63, 27) Source(42, 24) + SourceIndex(0) --- >>> PropertyDecorator2(80), 1->^^^^^^^^ @@ -555,11 +570,11 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 80 5 > ) -1->Emitted(49, 9) Source(43, 6) + SourceIndex(0) -2 >Emitted(49, 27) Source(43, 24) + SourceIndex(0) -3 >Emitted(49, 28) Source(43, 25) + SourceIndex(0) -4 >Emitted(49, 30) Source(43, 27) + SourceIndex(0) -5 >Emitted(49, 31) Source(43, 28) + SourceIndex(0) +1->Emitted(64, 9) Source(43, 6) + SourceIndex(0) +2 >Emitted(64, 27) Source(43, 24) + SourceIndex(0) +3 >Emitted(64, 28) Source(43, 25) + SourceIndex(0) +4 >Emitted(64, 30) Source(43, 27) + SourceIndex(0) +5 >Emitted(64, 31) Source(43, 28) + SourceIndex(0) --- >>> __param(0, ParameterDecorator1), 1->^^^^^^^^ @@ -577,10 +592,10 @@ sourceFile:sourceMapValidationDecorators.ts 2 > 3 > ParameterDecorator1 4 > -1->Emitted(50, 9) Source(49, 8) + SourceIndex(0) -2 >Emitted(50, 20) Source(49, 8) + SourceIndex(0) -3 >Emitted(50, 39) Source(49, 27) + SourceIndex(0) -4 >Emitted(50, 40) Source(49, 27) + SourceIndex(0) +1->Emitted(65, 9) Source(49, 8) + SourceIndex(0) +2 >Emitted(65, 20) Source(49, 8) + SourceIndex(0) +3 >Emitted(65, 39) Source(49, 27) + SourceIndex(0) +4 >Emitted(65, 40) Source(49, 27) + SourceIndex(0) --- >>> __param(0, ParameterDecorator2(90)) 1->^^^^^^^^ @@ -599,24 +614,24 @@ sourceFile:sourceMapValidationDecorators.ts 5 > 90 6 > ) 7 > -1->Emitted(51, 9) Source(50, 8) + SourceIndex(0) -2 >Emitted(51, 20) Source(50, 8) + SourceIndex(0) -3 >Emitted(51, 39) Source(50, 27) + SourceIndex(0) -4 >Emitted(51, 40) Source(50, 28) + SourceIndex(0) -5 >Emitted(51, 42) Source(50, 30) + SourceIndex(0) -6 >Emitted(51, 43) Source(50, 31) + SourceIndex(0) -7 >Emitted(51, 44) Source(50, 31) + SourceIndex(0) +1->Emitted(66, 9) Source(50, 8) + SourceIndex(0) +2 >Emitted(66, 20) Source(50, 8) + SourceIndex(0) +3 >Emitted(66, 39) Source(50, 27) + SourceIndex(0) +4 >Emitted(66, 40) Source(50, 28) + SourceIndex(0) +5 >Emitted(66, 42) Source(50, 30) + SourceIndex(0) +6 >Emitted(66, 43) Source(50, 31) + SourceIndex(0) +7 >Emitted(66, 44) Source(50, 31) + SourceIndex(0) --- >>> ], Greeter.prototype, "greetings", null); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> -1->Emitted(52, 45) Source(46, 6) + SourceIndex(0) +1->Emitted(67, 45) Source(46, 6) + SourceIndex(0) --- >>> __decorate([ 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(53, 5) Source(33, 5) + SourceIndex(0) +1 >Emitted(68, 5) Source(33, 5) + SourceIndex(0) --- >>> PropertyDecorator1, 1->^^^^^^^^ @@ -624,8 +639,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^-> 1-> 2 > PropertyDecorator1 -1->Emitted(54, 9) Source(31, 6) + SourceIndex(0) -2 >Emitted(54, 27) Source(31, 24) + SourceIndex(0) +1->Emitted(69, 9) Source(31, 6) + SourceIndex(0) +2 >Emitted(69, 27) Source(31, 24) + SourceIndex(0) --- >>> PropertyDecorator2(60) 1->^^^^^^^^ @@ -640,17 +655,17 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 60 5 > ) -1->Emitted(55, 9) Source(32, 6) + SourceIndex(0) -2 >Emitted(55, 27) Source(32, 24) + SourceIndex(0) -3 >Emitted(55, 28) Source(32, 25) + SourceIndex(0) -4 >Emitted(55, 30) Source(32, 27) + SourceIndex(0) -5 >Emitted(55, 31) Source(32, 28) + SourceIndex(0) +1->Emitted(70, 9) Source(32, 6) + SourceIndex(0) +2 >Emitted(70, 27) Source(32, 24) + SourceIndex(0) +3 >Emitted(70, 28) Source(32, 25) + SourceIndex(0) +4 >Emitted(70, 30) Source(32, 27) + SourceIndex(0) +5 >Emitted(70, 31) Source(32, 28) + SourceIndex(0) --- >>> ], Greeter, "x1", void 0); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1-> > private static x1: number = 10; -1->Emitted(56, 30) Source(33, 36) + SourceIndex(0) +1->Emitted(71, 30) Source(33, 36) + SourceIndex(0) --- >>> Greeter = __decorate([ 1 >^^^^ @@ -658,8 +673,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^^^^^^^^^^-> 1 > 2 > Greeter -1 >Emitted(57, 5) Source(10, 7) + SourceIndex(0) -2 >Emitted(57, 12) Source(10, 14) + SourceIndex(0) +1 >Emitted(72, 5) Source(10, 7) + SourceIndex(0) +2 >Emitted(72, 12) Source(10, 14) + SourceIndex(0) --- >>> ClassDecorator1, 1->^^^^^^^^ @@ -667,8 +682,8 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ^^^^^^-> 1-> 2 > ClassDecorator1 -1->Emitted(58, 9) Source(8, 2) + SourceIndex(0) -2 >Emitted(58, 24) Source(8, 17) + SourceIndex(0) +1->Emitted(73, 9) Source(8, 2) + SourceIndex(0) +2 >Emitted(73, 24) Source(8, 17) + SourceIndex(0) --- >>> ClassDecorator2(10), 1->^^^^^^^^ @@ -683,11 +698,11 @@ sourceFile:sourceMapValidationDecorators.ts 3 > ( 4 > 10 5 > ) -1->Emitted(59, 9) Source(9, 2) + SourceIndex(0) -2 >Emitted(59, 24) Source(9, 17) + SourceIndex(0) -3 >Emitted(59, 25) Source(9, 18) + SourceIndex(0) -4 >Emitted(59, 27) Source(9, 20) + SourceIndex(0) -5 >Emitted(59, 28) Source(9, 21) + SourceIndex(0) +1->Emitted(74, 9) Source(9, 2) + SourceIndex(0) +2 >Emitted(74, 24) Source(9, 17) + SourceIndex(0) +3 >Emitted(74, 25) Source(9, 18) + SourceIndex(0) +4 >Emitted(74, 27) Source(9, 20) + SourceIndex(0) +5 >Emitted(74, 28) Source(9, 21) + SourceIndex(0) --- >>> __param(0, ParameterDecorator1), 1->^^^^^^^^ @@ -702,10 +717,10 @@ sourceFile:sourceMapValidationDecorators.ts 2 > 3 > ParameterDecorator1 4 > -1->Emitted(60, 9) Source(12, 8) + SourceIndex(0) -2 >Emitted(60, 20) Source(12, 8) + SourceIndex(0) -3 >Emitted(60, 39) Source(12, 27) + SourceIndex(0) -4 >Emitted(60, 40) Source(12, 27) + SourceIndex(0) +1->Emitted(75, 9) Source(12, 8) + SourceIndex(0) +2 >Emitted(75, 20) Source(12, 8) + SourceIndex(0) +3 >Emitted(75, 39) Source(12, 27) + SourceIndex(0) +4 >Emitted(75, 40) Source(12, 27) + SourceIndex(0) --- >>> __param(0, ParameterDecorator2(20)), 1->^^^^^^^^ @@ -723,13 +738,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > 20 6 > ) 7 > -1->Emitted(61, 9) Source(13, 8) + SourceIndex(0) -2 >Emitted(61, 20) Source(13, 8) + SourceIndex(0) -3 >Emitted(61, 39) Source(13, 27) + SourceIndex(0) -4 >Emitted(61, 40) Source(13, 28) + SourceIndex(0) -5 >Emitted(61, 42) Source(13, 30) + SourceIndex(0) -6 >Emitted(61, 43) Source(13, 31) + SourceIndex(0) -7 >Emitted(61, 44) Source(13, 31) + SourceIndex(0) +1->Emitted(76, 9) Source(13, 8) + SourceIndex(0) +2 >Emitted(76, 20) Source(13, 8) + SourceIndex(0) +3 >Emitted(76, 39) Source(13, 27) + SourceIndex(0) +4 >Emitted(76, 40) Source(13, 28) + SourceIndex(0) +5 >Emitted(76, 42) Source(13, 30) + SourceIndex(0) +6 >Emitted(76, 43) Source(13, 31) + SourceIndex(0) +7 >Emitted(76, 44) Source(13, 31) + SourceIndex(0) --- >>> __param(1, ParameterDecorator1), 1 >^^^^^^^^ @@ -744,10 +759,10 @@ sourceFile:sourceMapValidationDecorators.ts 2 > 3 > ParameterDecorator1 4 > -1 >Emitted(62, 9) Source(16, 8) + SourceIndex(0) -2 >Emitted(62, 20) Source(16, 8) + SourceIndex(0) -3 >Emitted(62, 39) Source(16, 27) + SourceIndex(0) -4 >Emitted(62, 40) Source(16, 27) + SourceIndex(0) +1 >Emitted(77, 9) Source(16, 8) + SourceIndex(0) +2 >Emitted(77, 20) Source(16, 8) + SourceIndex(0) +3 >Emitted(77, 39) Source(16, 27) + SourceIndex(0) +4 >Emitted(77, 40) Source(16, 27) + SourceIndex(0) --- >>> __param(1, ParameterDecorator2(30)) 1->^^^^^^^^ @@ -765,13 +780,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > 30 6 > ) 7 > -1->Emitted(63, 9) Source(17, 8) + SourceIndex(0) -2 >Emitted(63, 20) Source(17, 8) + SourceIndex(0) -3 >Emitted(63, 39) Source(17, 27) + SourceIndex(0) -4 >Emitted(63, 40) Source(17, 28) + SourceIndex(0) -5 >Emitted(63, 42) Source(17, 30) + SourceIndex(0) -6 >Emitted(63, 43) Source(17, 31) + SourceIndex(0) -7 >Emitted(63, 44) Source(17, 31) + SourceIndex(0) +1->Emitted(78, 9) Source(17, 8) + SourceIndex(0) +2 >Emitted(78, 20) Source(17, 8) + SourceIndex(0) +3 >Emitted(78, 39) Source(17, 27) + SourceIndex(0) +4 >Emitted(78, 40) Source(17, 28) + SourceIndex(0) +5 >Emitted(78, 42) Source(17, 30) + SourceIndex(0) +6 >Emitted(78, 43) Source(17, 31) + SourceIndex(0) +7 >Emitted(78, 44) Source(17, 31) + SourceIndex(0) --- >>> ], Greeter); 1 >^^^^^^^ @@ -825,17 +840,17 @@ sourceFile:sourceMapValidationDecorators.ts > this.greeting = greetings; > } > } -1 >Emitted(64, 8) Source(10, 7) + SourceIndex(0) -2 >Emitted(64, 15) Source(10, 14) + SourceIndex(0) -3 >Emitted(64, 16) Source(54, 2) + SourceIndex(0) +1 >Emitted(79, 8) Source(10, 7) + SourceIndex(0) +2 >Emitted(79, 15) Source(10, 14) + SourceIndex(0) +3 >Emitted(79, 16) Source(54, 2) + SourceIndex(0) --- >>> return Greeter; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(65, 5) Source(54, 1) + SourceIndex(0) -2 >Emitted(65, 19) Source(54, 2) + SourceIndex(0) +1->Emitted(80, 5) Source(54, 1) + SourceIndex(0) +2 >Emitted(80, 19) Source(54, 2) + SourceIndex(0) --- >>>}()); 1 >^ @@ -889,8 +904,8 @@ sourceFile:sourceMapValidationDecorators.ts > this.greeting = greetings; > } > } -1 >Emitted(66, 2) Source(54, 2) + SourceIndex(0) -2 >Emitted(66, 2) Source(10, 1) + SourceIndex(0) -3 >Emitted(66, 6) Source(54, 2) + SourceIndex(0) +1 >Emitted(81, 2) Source(54, 2) + SourceIndex(0) +2 >Emitted(81, 2) Source(10, 1) + SourceIndex(0) +3 >Emitted(81, 6) Source(54, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/tests/baselines/reference/specializedOverloadWithRestParameters.js b/tests/baselines/reference/specializedOverloadWithRestParameters.js index 892f30441f8a6..fdb9d2982a059 100644 --- a/tests/baselines/reference/specializedOverloadWithRestParameters.js +++ b/tests/baselines/reference/specializedOverloadWithRestParameters.js @@ -13,6 +13,20 @@ function g(tagName: any): Base { } //// [specializedOverloadWithRestParameters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -27,6 +41,7 @@ var Base = (function () { function Base() { } Base.prototype.foo = function () { }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived1 = (function (_super) { @@ -35,6 +50,7 @@ var Derived1 = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived1.prototype.bar = function () { }; + __names(Derived1.prototype, ["bar"]); return Derived1; }(Base)); function f(tagName) { diff --git a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js index 2654049a323e2..7393463ba5df5 100644 --- a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js +++ b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js @@ -64,23 +64,40 @@ var a3: { //// [specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { } var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function () { function C2() { } C2.prototype.foo = function (x) { }; + __names(C2.prototype, ["foo"]); return C2; }()); var C3 = (function () { function C3() { } C3.prototype.foo = function (x) { }; + __names(C3.prototype, ["foo"]); return C3; }()); var a; diff --git a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js index f4e7961226a2b..179253fc35538 100644 --- a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js +++ b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js @@ -84,23 +84,40 @@ var a3: { //// [specializedSignatureIsSubtypeOfNonSpecializedSignature.js] // Specialized signatures must be a subtype of a non-specialized signature // All the below should not be errors +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { } var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); var C2 = (function () { function C2() { } C2.prototype.foo = function (x) { }; + __names(C2.prototype, ["foo"]); return C2; }()); var C3 = (function () { function C3() { } C3.prototype.foo = function (x) { }; + __names(C3.prototype, ["foo"]); return C3; }()); var a; diff --git a/tests/baselines/reference/spreadMethods.js b/tests/baselines/reference/spreadMethods.js index 691d6fa282944..c877687779629 100644 --- a/tests/baselines/reference/spreadMethods.js +++ b/tests/baselines/reference/spreadMethods.js @@ -25,6 +25,20 @@ sso.m(); // ok //// [spreadMethods.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __assign = (this && this.__assign) || Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; @@ -38,6 +52,7 @@ var K = (function () { this.p = 12; } K.prototype.m = function () { }; + __names(K.prototype, ["m"]); return K; }()); var k = new K(); diff --git a/tests/baselines/reference/staticAndMemberFunctions.js b/tests/baselines/reference/staticAndMemberFunctions.js index ddf47b941d46e..1949ca1f64c41 100644 --- a/tests/baselines/reference/staticAndMemberFunctions.js +++ b/tests/baselines/reference/staticAndMemberFunctions.js @@ -5,10 +5,25 @@ class T { } //// [staticAndMemberFunctions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var T = (function () { function T() { } T.x = function () { }; T.prototype.y = function () { }; + __names(T.prototype, ["y"]); return T; }()); diff --git a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js index a5c7c5245e927..a423898e379dc 100644 --- a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js +++ b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js @@ -8,10 +8,25 @@ class C { } //// [staticAndNonStaticPropertiesSameName.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.f = function () { }; C.f = function () { }; + __names(C.prototype, ["f"]); return C; }()); diff --git a/tests/baselines/reference/staticClassMemberError.js b/tests/baselines/reference/staticClassMemberError.js index 62166aef8337e..c4ce20719ac26 100644 --- a/tests/baselines/reference/staticClassMemberError.js +++ b/tests/baselines/reference/staticClassMemberError.js @@ -13,12 +13,27 @@ class Foo { } //// [staticClassMemberError.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.a = function () { s = 1; }; + __names(C.prototype, ["a"]); return C; }()); var Foo = (function () { diff --git a/tests/baselines/reference/staticClassProps.js b/tests/baselines/reference/staticClassProps.js index 31aa67c56df4c..39925d139e8ad 100644 --- a/tests/baselines/reference/staticClassProps.js +++ b/tests/baselines/reference/staticClassProps.js @@ -9,11 +9,26 @@ class C //// [staticClassProps.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); C.z = 1; return C; }()); diff --git a/tests/baselines/reference/staticFactory1.js b/tests/baselines/reference/staticFactory1.js index b73dce8a0cf3b..a37c3ed112c16 100644 --- a/tests/baselines/reference/staticFactory1.js +++ b/tests/baselines/reference/staticFactory1.js @@ -14,6 +14,20 @@ var d = Derived.create(); d.foo(); //// [staticFactory1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -31,6 +45,7 @@ var Base = (function () { Base.create = function () { return new this(); }; + __names(Base.prototype, ["foo"]); return Base; }()); var Derived = (function (_super) { @@ -39,6 +54,7 @@ var Derived = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } Derived.prototype.foo = function () { return 2; }; + __names(Derived.prototype, ["foo"]); return Derived; }(Base)); var d = Derived.create(); diff --git a/tests/baselines/reference/staticInstanceResolution.js b/tests/baselines/reference/staticInstanceResolution.js index 788a8634c2eb4..ccbba20fab463 100644 --- a/tests/baselines/reference/staticInstanceResolution.js +++ b/tests/baselines/reference/staticInstanceResolution.js @@ -15,6 +15,20 @@ class Comment { } //// [staticInstanceResolution.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Comment = (function () { function Comment() { } @@ -25,5 +39,6 @@ var Comment = (function () { var c; c.getDocCommentText(); }; + __names(Comment.prototype, ["getDocCommentText"]); return Comment; }()); diff --git a/tests/baselines/reference/staticInstanceResolution4.js b/tests/baselines/reference/staticInstanceResolution4.js index ab98d9deb8e08..409777bd8ab76 100644 --- a/tests/baselines/reference/staticInstanceResolution4.js +++ b/tests/baselines/reference/staticInstanceResolution4.js @@ -6,10 +6,25 @@ class A { A.foo(); //// [staticInstanceResolution4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); A.foo(); diff --git a/tests/baselines/reference/staticMemberExportAccess.js b/tests/baselines/reference/staticMemberExportAccess.js index b0261e79c8ebb..874e694dbae50 100644 --- a/tests/baselines/reference/staticMemberExportAccess.js +++ b/tests/baselines/reference/staticMemberExportAccess.js @@ -21,6 +21,20 @@ var r4 = $.sammy.x; // error Sammy.bar(); //// [staticMemberExportAccess.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Sammy = (function () { function Sammy() { } @@ -28,6 +42,7 @@ var Sammy = (function () { Sammy.bar = function () { return -1; }; + __names(Sammy.prototype, ["foo"]); return Sammy; }()); (function (Sammy) { diff --git a/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js b/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js index 00de82a4f6de7..7df37b0e38540 100644 --- a/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js +++ b/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js @@ -26,10 +26,25 @@ c = a; //// [staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var B = (function () { function B() { } B.prototype.prop = function () { }; + __names(B.prototype, ["prop"]); return B; }()); var C = (function () { diff --git a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js index b8b5b030bcd87..37ff9da5c6587 100644 --- a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js +++ b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js @@ -23,6 +23,20 @@ export class publicClassWithWithPrivateTypeParameters { //// [staticMethodWithTypeParameterExtendsClauseDeclFile.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var privateClass = (function () { function privateClass() { @@ -50,6 +64,7 @@ var publicClassWithWithPrivateTypeParameters = (function () { }; publicClassWithWithPrivateTypeParameters.prototype.myPublicMethod = function () { }; + __names(publicClassWithWithPrivateTypeParameters.prototype, ["myPrivateMethod1", "myPrivateMethod2", "myPublicMethod"]); return publicClassWithWithPrivateTypeParameters; }()); exports.publicClassWithWithPrivateTypeParameters = publicClassWithWithPrivateTypeParameters; diff --git a/tests/baselines/reference/staticOffOfInstance1.js b/tests/baselines/reference/staticOffOfInstance1.js index fa9f99f71fb2f..598a942258770 100644 --- a/tests/baselines/reference/staticOffOfInstance1.js +++ b/tests/baselines/reference/staticOffOfInstance1.js @@ -7,6 +7,20 @@ class List { } //// [staticOffOfInstance1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var List = (function () { function List() { } @@ -14,5 +28,6 @@ var List = (function () { this.Foo(); }; List.Foo = function () { }; + __names(List.prototype, ["Blah"]); return List; }()); diff --git a/tests/baselines/reference/staticOffOfInstance2.js b/tests/baselines/reference/staticOffOfInstance2.js index e23416e29ddcc..63365a84ad6ab 100644 --- a/tests/baselines/reference/staticOffOfInstance2.js +++ b/tests/baselines/reference/staticOffOfInstance2.js @@ -9,6 +9,20 @@ class List { //// [staticOffOfInstance2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var List = (function () { function List() { } @@ -17,5 +31,6 @@ var List = (function () { List.Foo(); }; List.Foo = function () { }; + __names(List.prototype, ["Blah"]); return List; }()); diff --git a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js index 71db1ca8ef198..02b1e0cc80d12 100644 --- a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js +++ b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js @@ -10,6 +10,20 @@ class D { } //// [staticPropertyAndFunctionWithSameName.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -19,5 +33,6 @@ var D = (function () { function D() { } D.prototype.f = function () { }; + __names(D.prototype, ["f"]); return D; }()); diff --git a/tests/baselines/reference/staticPropertyNameConflicts.js b/tests/baselines/reference/staticPropertyNameConflicts.js index b93b16550f0ca..db250be830f1b 100644 --- a/tests/baselines/reference/staticPropertyNameConflicts.js +++ b/tests/baselines/reference/staticPropertyNameConflicts.js @@ -192,6 +192,20 @@ module TestOnDefaultExportedClass_10 { } //// [staticPropertyNameConflicts.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // name var StaticName = (function () { function StaticName() { @@ -203,6 +217,7 @@ var StaticNameFn = (function () { } StaticNameFn.name = function () { }; // error StaticNameFn.prototype.name = function () { }; // ok + __names(StaticNameFn.prototype, ["name"]); return StaticNameFn; }()); // length @@ -216,6 +231,7 @@ var StaticLengthFn = (function () { } StaticLengthFn.length = function () { }; // error StaticLengthFn.prototype.length = function () { }; // ok + __names(StaticLengthFn.prototype, ["length"]); return StaticLengthFn; }()); // prototype @@ -229,6 +245,7 @@ var StaticPrototypeFn = (function () { } StaticPrototypeFn.prototype = function () { }; // error StaticPrototypeFn.prototype.prototype = function () { }; // ok + __names(StaticPrototypeFn.prototype, ["prototype"]); return StaticPrototypeFn; }()); // caller @@ -242,6 +259,7 @@ var StaticCallerFn = (function () { } StaticCallerFn.caller = function () { }; // error StaticCallerFn.prototype.caller = function () { }; // ok + __names(StaticCallerFn.prototype, ["caller"]); return StaticCallerFn; }()); // arguments @@ -255,6 +273,7 @@ var StaticArgumentsFn = (function () { } StaticArgumentsFn.arguments = function () { }; // error StaticArgumentsFn.prototype.arguments = function () { }; // ok + __names(StaticArgumentsFn.prototype, ["arguments"]); return StaticArgumentsFn; }()); // === Static properties on anonymous classes === @@ -269,6 +288,7 @@ var StaticNameFn_Anonymous = (function () { } class_2.name = function () { }; // error class_2.prototype.name = function () { }; // ok + __names(class_2.prototype, ["name"]); return class_2; }()); // length @@ -282,6 +302,7 @@ var StaticLengthFn_Anonymous = (function () { } class_4.length = function () { }; // error class_4.prototype.length = function () { }; // ok + __names(class_4.prototype, ["length"]); return class_4; }()); // prototype @@ -295,6 +316,7 @@ var StaticPrototypeFn_Anonymous = (function () { } class_6.prototype = function () { }; // error class_6.prototype.prototype = function () { }; // ok + __names(class_6.prototype, ["prototype"]); return class_6; }()); // caller @@ -308,6 +330,7 @@ var StaticCallerFn_Anonymous = (function () { } class_8.caller = function () { }; // error class_8.prototype.caller = function () { }; // ok + __names(class_8.prototype, ["caller"]); return class_8; }()); // arguments @@ -321,6 +344,7 @@ var StaticArgumentsFn_Anonymous = (function () { } class_10.arguments = function () { }; // error class_10.prototype.arguments = function () { }; // ok + __names(class_10.prototype, ["arguments"]); return class_10; }()); // === Static properties on default exported classes === @@ -340,6 +364,7 @@ var TestOnDefaultExportedClass_2; } StaticNameFn.name = function () { }; // error StaticNameFn.prototype.name = function () { }; // ok + __names(StaticNameFn.prototype, ["name"]); return StaticNameFn; }()); })(TestOnDefaultExportedClass_2 || (TestOnDefaultExportedClass_2 = {})); @@ -360,6 +385,7 @@ var TestOnDefaultExportedClass_4; } StaticLengthFn.length = function () { }; // error StaticLengthFn.prototype.length = function () { }; // ok + __names(StaticLengthFn.prototype, ["length"]); return StaticLengthFn; }()); TestOnDefaultExportedClass_4.StaticLengthFn = StaticLengthFn; @@ -381,6 +407,7 @@ var TestOnDefaultExportedClass_6; } StaticPrototypeFn.prototype = function () { }; // error StaticPrototypeFn.prototype.prototype = function () { }; // ok + __names(StaticPrototypeFn.prototype, ["prototype"]); return StaticPrototypeFn; }()); TestOnDefaultExportedClass_6.StaticPrototypeFn = StaticPrototypeFn; @@ -402,6 +429,7 @@ var TestOnDefaultExportedClass_8; } StaticCallerFn.caller = function () { }; // error StaticCallerFn.prototype.caller = function () { }; // ok + __names(StaticCallerFn.prototype, ["caller"]); return StaticCallerFn; }()); TestOnDefaultExportedClass_8.StaticCallerFn = StaticCallerFn; @@ -423,6 +451,7 @@ var TestOnDefaultExportedClass_10; } StaticArgumentsFn.arguments = function () { }; // error StaticArgumentsFn.prototype.arguments = function () { }; // ok + __names(StaticArgumentsFn.prototype, ["arguments"]); return StaticArgumentsFn; }()); TestOnDefaultExportedClass_10.StaticArgumentsFn = StaticArgumentsFn; diff --git a/tests/baselines/reference/staticPropertyNotInClassType.js b/tests/baselines/reference/staticPropertyNotInClassType.js index 6caa108a7106e..561419ead1e5a 100644 --- a/tests/baselines/reference/staticPropertyNotInClassType.js +++ b/tests/baselines/reference/staticPropertyNotInClassType.js @@ -40,6 +40,20 @@ module Generic { } //// [staticPropertyNotInClassType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var NonGeneric; (function (NonGeneric) { var C = (function () { @@ -54,6 +68,7 @@ var NonGeneric; enumerable: true, configurable: true }); + __names(C.prototype, ["fn"]); return C; }()); (function (C) { @@ -79,6 +94,7 @@ var Generic; enumerable: true, configurable: true }); + __names(C.prototype, ["fn"]); return C; }()); (function (C) { diff --git a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js index 2539ce5dbbb46..3b8b65c09123d 100644 --- a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js +++ b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js @@ -29,6 +29,20 @@ class G extends package { } class H extends package.A { } //// [strictModeReservedWordInClassDeclaration.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -44,6 +58,7 @@ var Foo = (function () { private = public = static; } Foo.prototype.banana = function (x) { }; + __names(Foo.prototype, ["banana"]); return Foo; }()); var C = (function () { @@ -55,6 +70,7 @@ var C = (function () { var z = function let() { }; }; C.prototype.pulbic = function () { }; // No Error; + __names(C.prototype, ["foo1", "pulbic"]); return C; }()); var D = (function () { diff --git a/tests/baselines/reference/strictModeUseContextualKeyword.js b/tests/baselines/reference/strictModeUseContextualKeyword.js index d21463f3b398f..9a8816d8bcbc6 100644 --- a/tests/baselines/reference/strictModeUseContextualKeyword.js +++ b/tests/baselines/reference/strictModeUseContextualKeyword.js @@ -15,12 +15,27 @@ function H() { //// [strictModeUseContextualKeyword.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var as = 0; function foo(as) { } var C = (function () { function C() { } C.prototype.as = function () { }; + __names(C.prototype, ["as"]); return C; }()); function F() { diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js index 57df8ce288351..6a02a3bd77825 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js @@ -99,6 +99,20 @@ var b: { [x: string]: string; } = { //// [stringIndexerConstrainsPropertyDeclarations.js] // String indexer types constrain the types of named properties in their containing type +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } // ok @@ -122,6 +136,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js index f9942aff04232..0249347bec10e 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js @@ -41,6 +41,20 @@ var b: { [x: string]: A } = { //// [stringIndexerConstrainsPropertyDeclarations2.js] // String indexer providing a constraint of a user defined type +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -55,6 +69,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return ''; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -63,6 +78,7 @@ var B = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } B.prototype.bar = function () { return ''; }; + __names(B.prototype, ["bar"]); return B; }(A)); var Foo = (function () { diff --git a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js index 55ea133577104..631125fc5bd32 100644 --- a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js +++ b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js @@ -102,6 +102,20 @@ function f16(x: any) { } //// [stringLiteralTypeIsSubtypeOfString.js] // string literal types are subtypes of string, any +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f1(x) { } function f2(x) { } function f3(x) { } @@ -140,6 +154,7 @@ var C = (function () { C.prototype.trim = function () { return null; }; C.prototype.substr = function (from, length) { return null; }; C.prototype.valueOf = function () { return null; }; + __names(C.prototype, ["toString", "charAt", "charCodeAt", "concat", "indexOf", "lastIndexOf", "localeCompare", "match", "replace", "search", "slice", "split", "substring", "toLowerCase", "toLocaleLowerCase", "toUpperCase", "toLocaleUpperCase", "trim", "substr", "valueOf"]); return C; }()); function f10(x) { } diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js index e9bdc90ecf33b..6466462e31576 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js @@ -28,6 +28,20 @@ var b = { //// [stringLiteralTypesInImplementationSignatures.js] // String literal types are only valid in overload signatures +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { } var f = function foo(x) { }; var f2 = function (x, y) { }; @@ -35,6 +49,7 @@ var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js index a33c6424eda6c..fafc023318a90 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js @@ -31,11 +31,26 @@ var b = { //// [stringLiteralTypesInImplementationSignatures2.js] // String literal types are only valid in overload signatures +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(x) { } var C = (function () { function C() { } C.prototype.foo = function (x) { }; + __names(C.prototype, ["foo"]); return C; }()); var a; diff --git a/tests/baselines/reference/stripInternal1.js b/tests/baselines/reference/stripInternal1.js index 475904906f01e..0fc8639ce0c36 100644 --- a/tests/baselines/reference/stripInternal1.js +++ b/tests/baselines/reference/stripInternal1.js @@ -6,12 +6,27 @@ class C { } //// [stripInternal1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.foo = function () { }; // @internal C.prototype.bar = function () { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); diff --git a/tests/baselines/reference/super.js b/tests/baselines/reference/super.js index 3dd0e9ed538be..c5629befb7265 100644 --- a/tests/baselines/reference/super.js +++ b/tests/baselines/reference/super.js @@ -38,6 +38,20 @@ s.foo() + ss.foo(); //// [super.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -58,6 +72,7 @@ var Base = (function () { Base.prototype.bar = function () { return "basebar"; }; + __names(Base.prototype, ["foo", "bar"]); return Base; }()); var Sub1 = (function (_super) { @@ -68,6 +83,7 @@ var Sub1 = (function (_super) { Sub1.prototype.foo = function () { return "sub1" + _super.prototype.foo.call(this) + _super.prototype.bar.call(this); }; + __names(Sub1.prototype, ["foo"]); return Sub1; }(Base)); var SubSub1 = (function (_super) { @@ -78,6 +94,7 @@ var SubSub1 = (function (_super) { SubSub1.prototype.foo = function () { return "subsub1" + _super.prototype.foo.call(this); }; + __names(SubSub1.prototype, ["foo"]); return SubSub1; }(Sub1)); var Base2 = (function () { @@ -86,6 +103,7 @@ var Base2 = (function () { Base2.prototype.foo = function () { _super.prototype.foo.call(this); }; + __names(Base2.prototype, ["foo"]); return Base2; }()); var s = new Sub1(); diff --git a/tests/baselines/reference/super1.js b/tests/baselines/reference/super1.js index 1ed0edbe0512d..7656e700e0c84 100644 --- a/tests/baselines/reference/super1.js +++ b/tests/baselines/reference/super1.js @@ -67,6 +67,20 @@ module Base4 { //// [super1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -84,6 +98,7 @@ var Base1 = (function () { Base1.prototype.foo = function () { return "base"; }; + __names(Base1.prototype, ["foo"]); return Base1; }()); var Sub1 = (function (_super) { @@ -94,6 +109,7 @@ var Sub1 = (function (_super) { Sub1.prototype.bar = function () { return "base"; }; + __names(Sub1.prototype, ["bar"]); return Sub1; }(Base1)); var SubSub1 = (function (_super) { @@ -104,6 +120,7 @@ var SubSub1 = (function (_super) { SubSub1.prototype.bar = function () { return _super.prototype["super"].foo; }; + __names(SubSub1.prototype, ["bar"]); return SubSub1; }(Sub1)); // Case 2 @@ -113,6 +130,7 @@ var Base2 = (function () { Base2.prototype.foo = function () { return "base"; }; + __names(Base2.prototype, ["foo"]); return Base2; }()); var SubE2 = (function (_super) { @@ -123,6 +141,7 @@ var SubE2 = (function (_super) { SubE2.prototype.bar = function () { return _super.prototype.prototype.foo = null; }; + __names(SubE2.prototype, ["bar"]); return SubE2; }(Base2)); // Case 3 @@ -132,6 +151,7 @@ var Base3 = (function () { Base3.prototype.foo = function () { return "base"; }; + __names(Base3.prototype, ["foo"]); return Base3; }()); var SubE3 = (function (_super) { @@ -142,6 +162,7 @@ var SubE3 = (function (_super) { SubE3.prototype.bar = function () { return _super.prototype.bar.call(this); }; + __names(SubE3.prototype, ["bar"]); return SubE3; }(Base3)); // Case 4 @@ -153,6 +174,7 @@ var Base4; Sub4.prototype.x = function () { return "hello"; }; + __names(Sub4.prototype, ["x"]); return Sub4; }()); var SubSub4 = (function (_super) { @@ -163,6 +185,7 @@ var Base4; SubSub4.prototype.x = function () { return _super.prototype.x.call(this); }; + __names(SubSub4.prototype, ["x"]); return SubSub4; }(Sub4)); Base4.SubSub4 = SubSub4; @@ -172,6 +195,7 @@ var Base4; Sub4E.prototype.x = function () { return _super.prototype.x.call(this); }; + __names(Sub4E.prototype, ["x"]); return Sub4E; }()); Base4.Sub4E = Sub4E; diff --git a/tests/baselines/reference/super2.js b/tests/baselines/reference/super2.js index 0f2101bc4dd34..25b44e1168e30 100644 --- a/tests/baselines/reference/super2.js +++ b/tests/baselines/reference/super2.js @@ -51,6 +51,20 @@ results1.x() + results1.y() + results2.y(); //// [super2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -71,6 +85,7 @@ var Base5 = (function () { Base5.prototype.y = function () { return "BaseY"; }; + __names(Base5.prototype, ["x", "y"]); return Base5; }()); var Sub5 = (function (_super) { @@ -81,6 +96,7 @@ var Sub5 = (function (_super) { Sub5.prototype.x = function () { return "SubX"; }; + __names(Sub5.prototype, ["x"]); return Sub5; }(Base5)); var SubSub5 = (function (_super) { @@ -94,6 +110,7 @@ var SubSub5 = (function (_super) { SubSub5.prototype.y = function () { return _super.prototype.y.call(this); }; + __names(SubSub5.prototype, ["x", "y"]); return SubSub5; }(Sub5)); // Case 6 @@ -103,6 +120,7 @@ var Base6 = (function () { Base6.prototype.x = function () { return "BaseX"; }; + __names(Base6.prototype, ["x"]); return Base6; }()); var Sub6 = (function (_super) { @@ -113,6 +131,7 @@ var Sub6 = (function (_super) { Sub6.prototype.y = function () { return "SubY"; }; + __names(Sub6.prototype, ["y"]); return Sub6; }(Base6)); var SubSub6 = (function (_super) { @@ -123,6 +142,7 @@ var SubSub6 = (function (_super) { SubSub6.prototype.y = function () { return _super.prototype.y.call(this); }; + __names(SubSub6.prototype, ["y"]); return SubSub6; }(Sub6)); var results1 = new SubSub5(); diff --git a/tests/baselines/reference/superAccess.js b/tests/baselines/reference/superAccess.js index aac0025961359..66b80b1ca3a87 100644 --- a/tests/baselines/reference/superAccess.js +++ b/tests/baselines/reference/superAccess.js @@ -24,6 +24,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var MyBase = (function () { function MyBase() { this.S2 = "test"; @@ -42,5 +56,6 @@ var MyDerived = (function (_super) { var l4 = _super.prototype.S2; // Expected => Error: Only public instance methods of the base class are accessible via the 'super' keyword var l5 = _super.prototype.f.call(this); // Expected => Error: Only public instance methods of the base class are accessible via the 'super' keyword }; + __names(MyDerived.prototype, ["foo"]); return MyDerived; }(MyBase)); diff --git a/tests/baselines/reference/superAccess2.js b/tests/baselines/reference/superAccess2.js index 9fa848dbf6a6f..9441d85d1a99f 100644 --- a/tests/baselines/reference/superAccess2.js +++ b/tests/baselines/reference/superAccess2.js @@ -25,6 +25,20 @@ class Q extends P { } //// [superAccess2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -40,6 +54,7 @@ var P = (function () { } P.prototype.x = function () { }; P.y = function () { }; + __names(P.prototype, ["x"]); return P; }()); var Q = (function (_super) { @@ -64,6 +79,7 @@ var Q = (function (_super) { _super.x.call(this); // error _super.y.call(this); }; + __names(Q.prototype, ["foo"]); Q.yy = _super.; // error for static initializer accessing super return Q; }(P)); diff --git a/tests/baselines/reference/superAccessInFatArrow1.js b/tests/baselines/reference/superAccessInFatArrow1.js index ebbf9ccf8d23a..e5a8723f4e550 100644 --- a/tests/baselines/reference/superAccessInFatArrow1.js +++ b/tests/baselines/reference/superAccessInFatArrow1.js @@ -16,6 +16,20 @@ module test { } //// [superAccessInFatArrow1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -33,6 +47,7 @@ var test; } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); test.A = A; @@ -49,6 +64,7 @@ var test; _super.prototype.foo.call(_this); }); }; + __names(B.prototype, ["bar", "runme"]); return B; }(A)); test.B = B; diff --git a/tests/baselines/reference/superCallInNonStaticMethod.js b/tests/baselines/reference/superCallInNonStaticMethod.js index 056dda2bf3392..80ce1ac9bb2b5 100644 --- a/tests/baselines/reference/superCallInNonStaticMethod.js +++ b/tests/baselines/reference/superCallInNonStaticMethod.js @@ -51,6 +51,20 @@ class Other extends Doing { //// [superCallInNonStaticMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -66,6 +80,7 @@ var Doing = (function () { } Doing.prototype.instanceMethod = function () { }; + __names(Doing.prototype, ["instanceMethod"]); return Doing; }()); var Other = (function (_super) { @@ -111,5 +126,6 @@ var Other = (function (_super) { enumerable: true, configurable: true }); + __names(Other.prototype, ["instanceMethod", "lambdaInsideAnInstanceMethod", "objectLiteralInsideAnInstanceMethod"]); return Other; }(Doing)); diff --git a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js index 541539d39aca2..445bb3ce8ef93 100644 --- a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js +++ b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js @@ -13,6 +13,20 @@ class B extends A { } //// [superCallInsideObjectLiteralExpression.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var A = (function () { } A.prototype.foo = function () { }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { diff --git a/tests/baselines/reference/superCallOutsideConstructor.js b/tests/baselines/reference/superCallOutsideConstructor.js index 60e9411d4142d..f763863cce525 100644 --- a/tests/baselines/reference/superCallOutsideConstructor.js +++ b/tests/baselines/reference/superCallOutsideConstructor.js @@ -23,6 +23,20 @@ var d = new D(); //// [superCallOutsideConstructor.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -37,6 +51,7 @@ var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function (_super) { diff --git a/tests/baselines/reference/superCallParameterContextualTyping3.js b/tests/baselines/reference/superCallParameterContextualTyping3.js index c955f210779ba..c2dd9d3724e8b 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping3.js +++ b/tests/baselines/reference/superCallParameterContextualTyping3.js @@ -32,6 +32,20 @@ class C extends CBase { } //// [superCallParameterContextualTyping3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -47,6 +61,7 @@ var CBase = (function () { } CBase.prototype.foo = function (param) { }; + __names(CBase.prototype, ["foo"]); return CBase; }()); var C = (function (_super) { diff --git a/tests/baselines/reference/superCallWithMissingBaseClass.js b/tests/baselines/reference/superCallWithMissingBaseClass.js index 71c408f6df84b..14bcaaa039e45 100644 --- a/tests/baselines/reference/superCallWithMissingBaseClass.js +++ b/tests/baselines/reference/superCallWithMissingBaseClass.js @@ -20,6 +20,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function (_super) { __extends(Foo, _super); function Foo() { @@ -31,5 +45,6 @@ var Foo = (function (_super) { Foo.m2 = function () { return _super.m2.call(this); }; + __names(Foo.prototype, ["m1"]); return Foo; }(Bar)); diff --git a/tests/baselines/reference/superCallsInConstructor.js b/tests/baselines/reference/superCallsInConstructor.js index b5d653dc34f57..df1ecf4774084 100644 --- a/tests/baselines/reference/superCallsInConstructor.js +++ b/tests/baselines/reference/superCallsInConstructor.js @@ -21,6 +21,20 @@ class Derived extends Base { } //// [superCallsInConstructor.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -36,6 +50,7 @@ var C = (function () { } C.prototype.foo = function () { }; C.prototype.bar = function () { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); var Base = (function () { diff --git a/tests/baselines/reference/superErrors.js b/tests/baselines/reference/superErrors.js index cf7edc83a63a2..a7d89bfccd65f 100644 --- a/tests/baselines/reference/superErrors.js +++ b/tests/baselines/reference/superErrors.js @@ -52,6 +52,20 @@ class RegisteredUser extends User { } //// [superErrors.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -76,6 +90,7 @@ var User = (function () { User.prototype.sayHello = function () { //console.log("Hello, " + this.name); }; + __names(User.prototype, ["sayHello"]); return User; }()); var RegisteredUser = (function (_super) { @@ -120,5 +135,6 @@ var RegisteredUser = (function (_super) { var x = function () { return _super.; }; var y = function () { return function () { return function () { return _super.; }; }; }; }; + __names(RegisteredUser.prototype, ["sayHello"]); return RegisteredUser; }(User)); diff --git a/tests/baselines/reference/superHasMethodsFromMergedInterface.js b/tests/baselines/reference/superHasMethodsFromMergedInterface.js index e7086106210cd..48000c9c3ea39 100644 --- a/tests/baselines/reference/superHasMethodsFromMergedInterface.js +++ b/tests/baselines/reference/superHasMethodsFromMergedInterface.js @@ -9,6 +9,20 @@ class Sub extends C { //// [superHasMethodsFromMergedInterface.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -23,6 +37,7 @@ var C = (function () { function C() { } C.prototype.m1 = function () { }; + __names(C.prototype, ["m1"]); return C; }()); var Sub = (function (_super) { @@ -33,5 +48,6 @@ var Sub = (function (_super) { Sub.prototype.m3 = function () { _super.prototype.m2.call(this); }; + __names(Sub.prototype, ["m3"]); return Sub; }(C)); diff --git a/tests/baselines/reference/superInCatchBlock1.js b/tests/baselines/reference/superInCatchBlock1.js index 1f7375fe36081..3a83b2a3a78bd 100644 --- a/tests/baselines/reference/superInCatchBlock1.js +++ b/tests/baselines/reference/superInCatchBlock1.js @@ -14,6 +14,20 @@ class B extends A { //// [superInCatchBlock1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var A = (function () { function A() { } A.prototype.m = function () { }; + __names(A.prototype, ["m"]); return A; }()); var B = (function (_super) { @@ -42,5 +57,6 @@ var B = (function (_super) { _super.prototype.m.call(this); } }; + __names(B.prototype, ["m"]); return B; }(A)); diff --git a/tests/baselines/reference/superInConstructorParam1.js b/tests/baselines/reference/superInConstructorParam1.js index 89f88c43c4a08..c10f37ead7a0f 100644 --- a/tests/baselines/reference/superInConstructorParam1.js +++ b/tests/baselines/reference/superInConstructorParam1.js @@ -11,6 +11,20 @@ class C extends B { } //// [superInConstructorParam1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -27,6 +41,7 @@ var B = (function () { B.prototype.foo = function () { return 0; }; + __names(B.prototype, ["foo"]); return B; }()); var C = (function (_super) { diff --git a/tests/baselines/reference/superInLambdas.js b/tests/baselines/reference/superInLambdas.js index 83dad0b32515c..f4a6b34dbb3a6 100644 --- a/tests/baselines/reference/superInLambdas.js +++ b/tests/baselines/reference/superInLambdas.js @@ -68,6 +68,20 @@ class RegisteredUser4 extends User { } //// [superInLambdas.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -85,6 +99,7 @@ var User = (function () { User.prototype.sayHello = function () { //console.log("Hello, " + this.name); }; + __names(User.prototype, ["sayHello"]); return User; }()); var RegisteredUser = (function (_super) { @@ -105,6 +120,7 @@ var RegisteredUser = (function (_super) { // super call in a lambda in a method var x = function () { return _super.prototype.sayHello.call(_this); }; }; + __names(RegisteredUser.prototype, ["sayHello"]); return RegisteredUser; }(User)); var RegisteredUser2 = (function (_super) { @@ -121,6 +137,7 @@ var RegisteredUser2 = (function (_super) { // super call in a nested lambda in a method var x = function () { return function () { return function () { return _super.prototype.sayHello.call(_this); }; }; }; }; + __names(RegisteredUser2.prototype, ["sayHello"]); return RegisteredUser2; }(User)); var RegisteredUser3 = (function (_super) { @@ -137,6 +154,7 @@ var RegisteredUser3 = (function (_super) { // super property in a nested lambda in a method var superName = function () { return function () { return function () { return _super.prototype.name; }; }; }; }; + __names(RegisteredUser3.prototype, ["sayHello"]); return RegisteredUser3; }(User)); var RegisteredUser4 = (function (_super) { @@ -153,5 +171,6 @@ var RegisteredUser4 = (function (_super) { // super in a nested lambda in a method var x = function () { return function () { return _super.prototype.; }; }; }; + __names(RegisteredUser4.prototype, ["sayHello"]); return RegisteredUser4; }(User)); diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.js b/tests/baselines/reference/superInObjectLiterals_ES5.js index 81d8c09da0d6a..b119eb3c24bf4 100644 --- a/tests/baselines/reference/superInObjectLiterals_ES5.js +++ b/tests/baselines/reference/superInObjectLiterals_ES5.js @@ -60,6 +60,20 @@ class B extends A { } //// [superInObjectLiterals_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -100,6 +114,7 @@ var A = (function () { function A() { } A.prototype.method = function () { }; + __names(A.prototype, ["method"]); return A; }()); var B = (function (_super) { @@ -135,5 +150,6 @@ var B = (function (_super) { } }; }; + __names(B.prototype, ["f"]); return B; }(A)); diff --git a/tests/baselines/reference/superPropertyAccess.js b/tests/baselines/reference/superPropertyAccess.js index d84bb5c08b829..8052972f2dfef 100644 --- a/tests/baselines/reference/superPropertyAccess.js +++ b/tests/baselines/reference/superPropertyAccess.js @@ -36,6 +36,20 @@ class MyDerived extends MyBase { } //// [superPropertyAccess.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -60,6 +74,7 @@ var MyBase = (function () { enumerable: true, configurable: true }); + __names(MyBase.prototype, ["m1", "p1"]); return MyBase; }()); var MyDerived = (function (_super) { @@ -79,5 +94,6 @@ var MyDerived = (function (_super) { _super.prototype.value = 0; // Should error, instance data property not a public instance member function var z = _super.prototype.value; // Should error, instance data property not a public instance member function }; + __names(MyDerived.prototype, ["foo"]); return MyDerived; }(MyBase)); diff --git a/tests/baselines/reference/superPropertyAccess1.js b/tests/baselines/reference/superPropertyAccess1.js index 8779dd7069b36..95e17ab56f49f 100644 --- a/tests/baselines/reference/superPropertyAccess1.js +++ b/tests/baselines/reference/superPropertyAccess1.js @@ -28,6 +28,20 @@ class D extends C { } //// [superPropertyAccess1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -50,6 +64,7 @@ var C = (function () { configurable: true }); C.prototype.bar = function () { }; + __names(C.prototype, ["foo", "bar"]); return C; }()); var D = (function (_super) { @@ -73,5 +88,6 @@ var D = (function (_super) { enumerable: true, configurable: true }); + __names(D.prototype, ["foo"]); return D; }(C)); diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js index cf256fa91eca4..f363957bd7ccb 100644 --- a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js +++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js @@ -15,6 +15,20 @@ class B extends A { } //// [superPropertyAccessInComputedPropertiesOfNestedType_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -29,6 +43,7 @@ var A = (function () { function A() { } A.prototype.foo = function () { return 1; }; + __names(A.prototype, ["foo"]); return A; }()); var B = (function (_super) { @@ -41,11 +56,14 @@ var B = (function (_super) { return (function () { function class_1() { } - class_1.prototype[_super.prototype.foo.call(this)] = function () { + class_1.prototype[_a = _super.prototype.foo.call(this)] = function () { return 100; }; + __names(class_1.prototype, [_a]); return class_1; + var _a; }()); }; + __names(B.prototype, ["foo", "bar"]); return B; }(A)); diff --git a/tests/baselines/reference/superPropertyAccessInSuperCall01.js b/tests/baselines/reference/superPropertyAccessInSuperCall01.js index d5800323de250..de1e4944148b8 100644 --- a/tests/baselines/reference/superPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/superPropertyAccessInSuperCall01.js @@ -12,6 +12,20 @@ class B extends A { } //// [superPropertyAccessInSuperCall01.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -26,6 +40,7 @@ var A = (function () { function A(f) { } A.prototype.blah = function () { return ""; }; + __names(A.prototype, ["blah"]); return A; }()); var B = (function (_super) { diff --git a/tests/baselines/reference/superPropertyAccessNoError.js b/tests/baselines/reference/superPropertyAccessNoError.js index d2e3d7aad4148..c9db138649378 100644 --- a/tests/baselines/reference/superPropertyAccessNoError.js +++ b/tests/baselines/reference/superPropertyAccessNoError.js @@ -77,6 +77,20 @@ instance.returnThis().fn(); //super.publicInstanceMemberFunction in lambda in member function //super.publicStaticMemberFunction in static member function of derived class //super.publicStaticMemberFunction in static member accessor(get and set) of derived class +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -99,6 +113,7 @@ var SomeBaseClass = (function () { SomeBaseClass.prototype.returnThis = function () { return this; }; + __names(SomeBaseClass.prototype, ["func", "returnThis"]); return SomeBaseClass; }()); var SomeDerivedClass = (function (_super) { @@ -148,6 +163,7 @@ var SomeDerivedClass = (function (_super) { SomeDerivedClass.prototype.returnThis = function () { return _super.prototype.returnThis.call(this); }; + __names(SomeDerivedClass.prototype, ["fn", "returnThis"]); return SomeDerivedClass; }(SomeBaseClass)); var instance = new SomeDerivedClass(); diff --git a/tests/baselines/reference/superPropertyAccess_ES5.js b/tests/baselines/reference/superPropertyAccess_ES5.js index 406fa087a4440..f2ea444cc171e 100644 --- a/tests/baselines/reference/superPropertyAccess_ES5.js +++ b/tests/baselines/reference/superPropertyAccess_ES5.js @@ -29,6 +29,20 @@ class B extends A { } //// [superPropertyAccess_ES5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -48,6 +62,7 @@ var MyBase = (function () { enumerable: true, configurable: true }); + __names(MyBase.prototype, ["getValue"]); return MyBase; }()); var MyDerived = (function (_super) { diff --git a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js index eb698f1ae7e1a..88bae4ed47921 100644 --- a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js +++ b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js @@ -16,6 +16,20 @@ class C2 extends B { } //// [superPropertyInConstructorBeforeSuperCall.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -30,6 +44,7 @@ var B = (function () { function B(x) { } B.prototype.x = function () { return ""; }; + __names(B.prototype, ["x"]); return B; }()); var C1 = (function (_super) { diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.js b/tests/baselines/reference/superSymbolIndexedAccess5.js index 5820c56504d45..ee769255d357c 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess5.js +++ b/tests/baselines/reference/superSymbolIndexedAccess5.js @@ -14,6 +14,20 @@ class Bar extends Foo { } //// [superSymbolIndexedAccess5.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,18 +42,22 @@ var symbol; var Foo = (function () { function Foo() { } - Foo.prototype[symbol] = function () { + Foo.prototype[_a = symbol] = function () { return 0; }; + __names(Foo.prototype, [_a]); return Foo; + var _a; }()); var Bar = (function (_super) { __extends(Bar, _super); function Bar() { return _super !== null && _super.apply(this, arguments) || this; } - Bar.prototype[symbol] = function () { + Bar.prototype[_a = symbol] = function () { return _super.prototype[symbol].call(this); }; + __names(Bar.prototype, [_a]); return Bar; + var _a; }(Foo)); diff --git a/tests/baselines/reference/superWithTypeArgument3.js b/tests/baselines/reference/superWithTypeArgument3.js index d5c61d54fb65a..490f144a01e77 100644 --- a/tests/baselines/reference/superWithTypeArgument3.js +++ b/tests/baselines/reference/superWithTypeArgument3.js @@ -14,6 +14,20 @@ class D extends C { } //// [superWithTypeArgument3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -28,6 +42,7 @@ var C = (function () { function C() { } C.prototype.bar = function (x) { }; + __names(C.prototype, ["bar"]); return C; }()); var D = (function (_super) { @@ -40,5 +55,6 @@ var D = (function (_super) { D.prototype.bar = function () { _super.prototype.bar.call(this, null); }; + __names(D.prototype, ["bar"]); return D; }(C)); 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 140f8258669b1..85cbdbedce3d3 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 @@ -28,6 +28,20 @@ class SuperObjectTest extends F { //// [super_inside-object-literal-getters-and-setters.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -57,6 +71,7 @@ var F = (function () { function F() { } F.prototype.test = function () { return ""; }; + __names(F.prototype, ["test"]); return F; }()); var SuperObjectTest = (function (_super) { @@ -71,5 +86,6 @@ var SuperObjectTest = (function (_super) { } }; }; + __names(SuperObjectTest.prototype, ["testing"]); return SuperObjectTest; }(F)); diff --git a/tests/baselines/reference/thisBinding.js b/tests/baselines/reference/thisBinding.js index d8d7f5b7c0a32..7bcbf25952451 100644 --- a/tests/baselines/reference/thisBinding.js +++ b/tests/baselines/reference/thisBinding.js @@ -22,6 +22,20 @@ class C { } //// [thisBinding.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { @@ -33,6 +47,7 @@ var M; x.e; // e not found x.z; // ok }; + __names(C.prototype, ["f"]); return C; }()); M.C = C; @@ -42,5 +57,6 @@ var C = (function () { } C.prototype.f = function (x) { }; + __names(C.prototype, ["f"]); return C; }()); diff --git a/tests/baselines/reference/thisCapture1.js b/tests/baselines/reference/thisCapture1.js index 8ee3fa2fddcf6..28ead6d784b9c 100644 --- a/tests/baselines/reference/thisCapture1.js +++ b/tests/baselines/reference/thisCapture1.js @@ -10,6 +10,20 @@ class X { } //// [thisCapture1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var X = (function () { function X() { this.y = 0; @@ -21,5 +35,6 @@ var X = (function () { _this.y = 0; }).promise(); }; + __names(X.prototype, ["getSettings"]); return X; }()); diff --git a/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js b/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js index 9aea88edf4678..dc73d9f86ab1d 100644 --- a/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js +++ b/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js @@ -5,6 +5,20 @@ class C { //// [thisExpressionInCallExpressionWithTypeArguments.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -12,5 +26,6 @@ var C = (function () { var _this = this; [1, 2, 3].map(function (x) { return _this; }); }; + __names(C.prototype, ["foo"]); return C; }()); diff --git a/tests/baselines/reference/thisInConstructorParameter2.js b/tests/baselines/reference/thisInConstructorParameter2.js index 7260ecafcb98c..2a3008427bb2f 100644 --- a/tests/baselines/reference/thisInConstructorParameter2.js +++ b/tests/baselines/reference/thisInConstructorParameter2.js @@ -10,6 +10,20 @@ class P { } //// [thisInConstructorParameter2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var P = (function () { function P(z, zz) { if (z === void 0) { z = this; } @@ -25,6 +39,7 @@ var P = (function () { if (zz === void 0) { zz = this; } zz.y; }; + __names(P.prototype, ["foo"]); P.y = this; return P; }()); diff --git a/tests/baselines/reference/thisInInnerFunctions.js b/tests/baselines/reference/thisInInnerFunctions.js index ec8a387bd1b05..82938dda9ea94 100644 --- a/tests/baselines/reference/thisInInnerFunctions.js +++ b/tests/baselines/reference/thisInInnerFunctions.js @@ -18,6 +18,20 @@ function test() { //// [thisInInnerFunctions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { this.x = "hello"; @@ -29,6 +43,7 @@ var Foo = (function () { var f = function () { return _this.y; }; // 'this' should be not type to 'Foo' either } }; + __names(Foo.prototype, ["bar"]); return Foo; }()); function test() { diff --git a/tests/baselines/reference/thisInLambda.js b/tests/baselines/reference/thisInLambda.js index b121947ce9b95..a583db3b75a03 100644 --- a/tests/baselines/reference/thisInLambda.js +++ b/tests/baselines/reference/thisInLambda.js @@ -19,6 +19,20 @@ class myCls { } //// [thisInLambda.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { this.x = "hello"; @@ -28,6 +42,7 @@ var Foo = (function () { this.x; // 'this' is type 'Foo' var f = function () { return _this.x; }; // 'this' should be type 'Foo' as well }; + __names(Foo.prototype, ["bar"]); return Foo; }()); function myFn(a) { } diff --git a/tests/baselines/reference/thisInObjectLiterals.js b/tests/baselines/reference/thisInObjectLiterals.js index 6331f12105d91..eb36655dfa3f6 100644 --- a/tests/baselines/reference/thisInObjectLiterals.js +++ b/tests/baselines/reference/thisInObjectLiterals.js @@ -20,6 +20,20 @@ var obj: { f: () => any; }; //// [thisInObjectLiterals.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var MyClass = (function () { function MyClass() { } @@ -28,6 +42,7 @@ var MyClass = (function () { var t = { x: this, y: this.t }; var t; }; + __names(MyClass.prototype, ["fn"]); return MyClass; }()); //type of 'this' in an object literal method is the type of the object literal diff --git a/tests/baselines/reference/thisInOuterClassBody.js b/tests/baselines/reference/thisInOuterClassBody.js index 40e4a2e2485da..e1ee4a2ce37a0 100644 --- a/tests/baselines/reference/thisInOuterClassBody.js +++ b/tests/baselines/reference/thisInOuterClassBody.js @@ -21,6 +21,20 @@ class Foo { } //// [thisInOuterClassBody.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { this.x = this; @@ -36,6 +50,7 @@ var Foo = (function () { var a = this.y; var b = this.x; }; + __names(Foo.prototype, ["bar"]); Foo.y = this; return Foo; }()); diff --git a/tests/baselines/reference/thisInPropertyBoundDeclarations.js b/tests/baselines/reference/thisInPropertyBoundDeclarations.js index 0b378cec51aaf..374135e76572d 100644 --- a/tests/baselines/reference/thisInPropertyBoundDeclarations.js +++ b/tests/baselines/reference/thisInPropertyBoundDeclarations.js @@ -68,12 +68,27 @@ class B { } //// [thisInPropertyBoundDeclarations.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Bug = (function () { function Bug() { } Bug.prototype.foo = function (name) { this.name = name; }; + __names(Bug.prototype, ["foo"]); Bug.func = [ function (that, name) { that.foo(name); diff --git a/tests/baselines/reference/thisTypeAndConstraints.js b/tests/baselines/reference/thisTypeAndConstraints.js index 3800b8bc5e385..aacf3eb1bb3ee 100644 --- a/tests/baselines/reference/thisTypeAndConstraints.js +++ b/tests/baselines/reference/thisTypeAndConstraints.js @@ -23,12 +23,27 @@ class B { //// [thisTypeAndConstraints.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.self = function () { return this; }; + __names(A.prototype, ["self"]); return A; }()); function f(x) { @@ -46,5 +61,6 @@ var B = (function () { B.prototype.bar = function (x) { x = x.self(); }; + __names(B.prototype, ["foo", "bar"]); return B; }()); diff --git a/tests/baselines/reference/thisTypeAsConstraint.js b/tests/baselines/reference/thisTypeAsConstraint.js index b5a7113549dba..c6ce9b283b31c 100644 --- a/tests/baselines/reference/thisTypeAsConstraint.js +++ b/tests/baselines/reference/thisTypeAsConstraint.js @@ -5,10 +5,25 @@ class C { } //// [thisTypeAsConstraint.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } C.prototype.m = function () { }; + __names(C.prototype, ["m"]); return C; }()); diff --git a/tests/baselines/reference/thisTypeErrors.js b/tests/baselines/reference/thisTypeErrors.js index f246b80f4f4f6..70d286fa22a6b 100644 --- a/tests/baselines/reference/thisTypeErrors.js +++ b/tests/baselines/reference/thisTypeErrors.js @@ -57,6 +57,20 @@ class C3 { //// [thisTypeErrors.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var x1; var x2; var x3; @@ -100,5 +114,6 @@ var C3 = (function () { } }; }; + __names(C3.prototype, ["f"]); return C3; }()); diff --git a/tests/baselines/reference/thisTypeInClasses.js b/tests/baselines/reference/thisTypeInClasses.js index c6790b3d52d79..0530f3e042066 100644 --- a/tests/baselines/reference/thisTypeInClasses.js +++ b/tests/baselines/reference/thisTypeInClasses.js @@ -51,10 +51,25 @@ class C5 { //// [thisTypeInClasses.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C1 = (function () { function C1() { } C1.prototype.f = function (x) { return undefined; }; + __names(C1.prototype, ["f"]); return C1; }()); var C2 = (function () { @@ -86,5 +101,6 @@ var C5 = (function () { var x1 = undefined; var x2 = undefined; }; + __names(C5.prototype, ["foo", "bar"]); return C5; }()); diff --git a/tests/baselines/reference/thisTypeInFunctions.js b/tests/baselines/reference/thisTypeInFunctions.js index 68513c151d98a..7fff3a3924244 100644 --- a/tests/baselines/reference/thisTypeInFunctions.js +++ b/tests/baselines/reference/thisTypeInFunctions.js @@ -195,6 +195,20 @@ function missingTypeIsImplicitAny(this, a: number) { return this.anything + a; } //// [thisTypeInFunctions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -227,6 +241,7 @@ var C = (function () { C.prototype.explicitVoid = function (m) { return m + 1; }; + __names(C.prototype, ["explicitThis", "explicitC", "explicitProperty", "explicitVoid"]); return C; }()); var D = (function (_super) { @@ -336,6 +351,7 @@ var Base1 = (function () { Base1.prototype.polymorphic = function () { return this.x; }; Base1.prototype.explicit = function () { return this.x; }; Base1.explicitStatic = function () { return this.y; }; + __names(Base1.prototype, ["polymorphic", "explicit"]); return Base1; }()); var Derived1 = (function (_super) { @@ -350,6 +366,7 @@ var Base2 = (function () { } Base2.prototype.polymorphic = function () { return this.y; }; Base2.prototype.explicit = function () { return this.x; }; + __names(Base2.prototype, ["polymorphic", "explicit"]); return Base2; }()); var Derived2 = (function (_super) { diff --git a/tests/baselines/reference/thisTypeInFunctionsNegative.js b/tests/baselines/reference/thisTypeInFunctionsNegative.js index 4b0e18f9b94e0..209c461c6fab0 100644 --- a/tests/baselines/reference/thisTypeInFunctionsNegative.js +++ b/tests/baselines/reference/thisTypeInFunctionsNegative.js @@ -177,6 +177,20 @@ c.explicitProperty = (this, m) => m + this.n; //// [thisTypeInFunctionsNegative.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -206,6 +220,7 @@ var C = (function () { C.prototype.explicitVoid = function (m) { return this.n + m; // 'n' doesn't exist on type 'void'. }; + __names(C.prototype, ["explicitThis", "implicitThis", "explicitC", "explicitProperty", "explicitVoid"]); return C; }()); var D = (function () { @@ -217,6 +232,7 @@ var D = (function () { D.prototype.explicitD = function (m) { return this.x + m; }; + __names(D.prototype, ["explicitThis", "explicitD"]); return D; }()); var impl = { @@ -296,6 +312,7 @@ var Base1 = (function () { Base1.prototype.polymorphic = function () { return this.x; }; Base1.prototype.explicit = function () { return this.x; }; Base1.explicitStatic = function () { return this.x; }; + __names(Base1.prototype, ["polymorphic", "explicit"]); return Base1; }()); var Derived1 = (function (_super) { @@ -310,6 +327,7 @@ var Base2 = (function () { } Base2.prototype.polymorphic = function () { return this.y; }; Base2.prototype.explicit = function () { return this.x; }; + __names(Base2.prototype, ["polymorphic", "explicit"]); return Base2; }()); var Derived2 = (function (_super) { diff --git a/tests/baselines/reference/thisWhenTypeCheckFails.js b/tests/baselines/reference/thisWhenTypeCheckFails.js index fee1ef2d61ea7..c066410702a53 100644 --- a/tests/baselines/reference/thisWhenTypeCheckFails.js +++ b/tests/baselines/reference/thisWhenTypeCheckFails.js @@ -9,6 +9,20 @@ class c { //// [thisWhenTypeCheckFails.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var c = (function () { function c() { } @@ -18,5 +32,6 @@ var c = (function () { var s = _this.n(); }; }; + __names(c.prototype, ["n"]); return c; }()); diff --git a/tests/baselines/reference/throwInEnclosingStatements.js b/tests/baselines/reference/throwInEnclosingStatements.js index eb4da2e6c4d13..41c0e68e5bdbe 100644 --- a/tests/baselines/reference/throwInEnclosingStatements.js +++ b/tests/baselines/reference/throwInEnclosingStatements.js @@ -47,6 +47,20 @@ var aa = { //// [throwInEnclosingStatements.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function fn(x) { throw x; } @@ -82,6 +96,7 @@ var C = (function () { C.prototype.biz = function () { throw this.value; }; + __names(C.prototype, ["biz"]); return C; }()); var aa = { diff --git a/tests/baselines/reference/topLevel.js b/tests/baselines/reference/topLevel.js index 1908ab8c729cb..8fbafb3ea1351 100644 --- a/tests/baselines/reference/topLevel.js +++ b/tests/baselines/reference/topLevel.js @@ -28,6 +28,20 @@ result+=(M.origin.move(1,1)); //// [topLevel.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Point = (function () { function Point(x, y) { this.x = x; @@ -41,6 +55,7 @@ var Point = (function () { Point.prototype.toString = function () { return ("(" + this.x + "," + this.y + ")"); }; + __names(Point.prototype, ["move", "toString"]); return Point; }()); var result = ""; diff --git a/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js b/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js index 8041025f66ab0..fc68add9c5591 100644 --- a/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js +++ b/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js @@ -10,6 +10,20 @@ class arrTest { //// [trailingCommaInHeterogenousArrayLiteral1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var arrTest = (function () { function arrTest() { } @@ -19,5 +33,6 @@ var arrTest = (function () { this.test([1, 2, "hi", 5,]); this.test([1, 2, "hi", 5]); }; + __names(arrTest.prototype, ["test", "callTest"]); return arrTest; }()); diff --git a/tests/baselines/reference/tsxAttributeResolution10.js b/tests/baselines/reference/tsxAttributeResolution10.js index 141743c17bc20..5034708e3c8fd 100644 --- a/tests/baselines/reference/tsxAttributeResolution10.js +++ b/tests/baselines/reference/tsxAttributeResolution10.js @@ -31,6 +31,20 @@ export class MyComponent { //// [file.jsx] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -39,6 +53,7 @@ define(["require", "exports"], function (require, exports) { } MyComponent.prototype.render = function () { }; + __names(MyComponent.prototype, ["render"]); return MyComponent; }()); exports.MyComponent = MyComponent; diff --git a/tests/baselines/reference/tsxAttributeResolution11.js b/tests/baselines/reference/tsxAttributeResolution11.js index c4d62a7147aa3..fc245ec5d154b 100644 --- a/tests/baselines/reference/tsxAttributeResolution11.js +++ b/tests/baselines/reference/tsxAttributeResolution11.js @@ -29,11 +29,26 @@ var x = ; //// [file.jsx] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var MyComponent = (function () { function MyComponent() { } MyComponent.prototype.render = function () { }; + __names(MyComponent.prototype, ["render"]); return MyComponent; }()); // Should be an OK diff --git a/tests/baselines/reference/tsxAttributeResolution15.js b/tests/baselines/reference/tsxAttributeResolution15.js index 0fbc01e6e0fce..10fcb30d5e469 100644 --- a/tests/baselines/reference/tsxAttributeResolution15.js +++ b/tests/baselines/reference/tsxAttributeResolution15.js @@ -27,6 +27,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var _this = this; exports.__esModule = true; var React = require("react"); @@ -38,6 +52,7 @@ var BigGreeter = (function (_super) { BigGreeter.prototype.render = function () { return
Default hi
; }; + __names(BigGreeter.prototype, ["render"]); return BigGreeter; }(React.Component)); // Error diff --git a/tests/baselines/reference/tsxAttributeResolution16.js b/tests/baselines/reference/tsxAttributeResolution16.js index 1c05446b4938e..c1ff322234db7 100644 --- a/tests/baselines/reference/tsxAttributeResolution16.js +++ b/tests/baselines/reference/tsxAttributeResolution16.js @@ -36,6 +36,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var AddressComp = (function (_super) { @@ -46,6 +60,7 @@ var AddressComp = (function (_super) { AddressComp.prototype.render = function () { return null; }; + __names(AddressComp.prototype, ["render"]); return AddressComp; }(React.Component)); exports.AddressComp = AddressComp; diff --git a/tests/baselines/reference/tsxAttributeResolution9.js b/tests/baselines/reference/tsxAttributeResolution9.js index a982fea412b1e..106a897f7e22f 100644 --- a/tests/baselines/reference/tsxAttributeResolution9.js +++ b/tests/baselines/reference/tsxAttributeResolution9.js @@ -27,6 +27,20 @@ export class MyComponent { //// [file.jsx] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -35,6 +49,7 @@ define(["require", "exports"], function (require, exports) { } MyComponent.prototype.render = function () { }; + __names(MyComponent.prototype, ["render"]); return MyComponent; }()); exports.MyComponent = MyComponent; diff --git a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js index f6403804fae29..7853187a4b727 100644 --- a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js +++ b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js @@ -31,6 +31,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var ShortDetails = (function (_super) { __extends(ShortDetails, _super); @@ -42,6 +56,7 @@ var ShortDetails = (function (_super) { return (React.createElement("div", null)); } }; + __names(ShortDetails.prototype, ["render"]); return ShortDetails; }(React.Component)); exports.ShortDetails = ShortDetails; diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution1.js b/tests/baselines/reference/tsxDefaultAttributesResolution1.js index 8d22db3b69f13..50a09b5e4541d 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution1.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution1.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Poisoned = (function (_super) { @@ -35,6 +49,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); // OK diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution2.js b/tests/baselines/reference/tsxDefaultAttributesResolution2.js index 38735169f10a3..23185f7d7ce21 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution2.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution2.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Poisoned = (function (_super) { @@ -35,6 +49,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); // OK diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution3.js b/tests/baselines/reference/tsxDefaultAttributesResolution3.js index 14da51516b578..17c6eccf1d920 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution3.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution3.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Poisoned = (function (_super) { @@ -35,6 +49,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); // Error diff --git a/tests/baselines/reference/tsxDynamicTagName5.js b/tests/baselines/reference/tsxDynamicTagName5.js index 1aa3650a9632d..73277ae860fb1 100644 --- a/tests/baselines/reference/tsxDynamicTagName5.js +++ b/tests/baselines/reference/tsxDynamicTagName5.js @@ -30,6 +30,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Text = (function (_super) { @@ -42,6 +56,7 @@ var Text = (function (_super) { Text.prototype.render = function () { return (); }; + __names(Text.prototype, ["render"]); return Text; }(React.Component)); exports.Text = Text; diff --git a/tests/baselines/reference/tsxDynamicTagName7.js b/tests/baselines/reference/tsxDynamicTagName7.js index 1bfade5d5da29..7ee5d47e678c9 100644 --- a/tests/baselines/reference/tsxDynamicTagName7.js +++ b/tests/baselines/reference/tsxDynamicTagName7.js @@ -30,6 +30,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Text = (function (_super) { @@ -43,6 +57,7 @@ var Text = (function (_super) { return ( // this should be an error ); }; + __names(Text.prototype, ["render"]); return Text; }(React.Component)); exports.Text = Text; diff --git a/tests/baselines/reference/tsxDynamicTagName8.js b/tests/baselines/reference/tsxDynamicTagName8.js index 34a587c7d19b3..dcc50ce5e5cbe 100644 --- a/tests/baselines/reference/tsxDynamicTagName8.js +++ b/tests/baselines/reference/tsxDynamicTagName8.js @@ -30,6 +30,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Text = (function (_super) { @@ -42,6 +56,7 @@ var Text = (function (_super) { Text.prototype.render = function () { return ( Hello world ); }; + __names(Text.prototype, ["render"]); return Text; }(React.Component)); exports.Text = Text; diff --git a/tests/baselines/reference/tsxDynamicTagName9.js b/tests/baselines/reference/tsxDynamicTagName9.js index e5229f97a39da..be8b8aad683a9 100644 --- a/tests/baselines/reference/tsxDynamicTagName9.js +++ b/tests/baselines/reference/tsxDynamicTagName9.js @@ -30,6 +30,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Text = (function (_super) { @@ -42,6 +56,7 @@ var Text = (function (_super) { Text.prototype.render = function () { return ( Hello world ); }; + __names(Text.prototype, ["render"]); return Text; }(React.Component)); exports.Text = Text; diff --git a/tests/baselines/reference/tsxEmit1.js b/tests/baselines/reference/tsxEmit1.js index dacb3ad621ad1..80f380d8231aa 100644 --- a/tests/baselines/reference/tsxEmit1.js +++ b/tests/baselines/reference/tsxEmit1.js @@ -41,6 +41,20 @@ var whitespace3 =
//// [file.jsx] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var p; var selfClosed1 =
; var selfClosed2 =
; @@ -66,6 +80,7 @@ var SomeClass = (function () { var rewrites5 =
; var rewrites6 =
; }; + __names(SomeClass.prototype, ["f"]); return SomeClass; }()); var whitespace1 =
; diff --git a/tests/baselines/reference/tsxExternalModuleEmit1.js b/tests/baselines/reference/tsxExternalModuleEmit1.js index 578d952be983d..ff56aa90b46d0 100644 --- a/tests/baselines/reference/tsxExternalModuleEmit1.js +++ b/tests/baselines/reference/tsxExternalModuleEmit1.js @@ -42,6 +42,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Button = (function (_super) { @@ -52,6 +66,7 @@ var Button = (function (_super) { Button.prototype.render = function () { return ; }; + __names(Button.prototype, ["render"]); return Button; }(React.Component)); exports.Button = Button; @@ -67,6 +82,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); // Should see var button_1 = require('./button') here @@ -79,6 +108,7 @@ var App = (function (_super) { App.prototype.render = function () { return ; }; + __names(App.prototype, ["render"]); return App; }(React.Component)); exports.App = App; diff --git a/tests/baselines/reference/tsxGenericAttributesType3.js b/tests/baselines/reference/tsxGenericAttributesType3.js index 51491d99aa2a1..0f3c6827e620a 100644 --- a/tests/baselines/reference/tsxGenericAttributesType3.js +++ b/tests/baselines/reference/tsxGenericAttributesType3.js @@ -24,6 +24,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var B1 = (function (_super) { @@ -34,6 +48,7 @@ var B1 = (function (_super) { B1.prototype.render = function () { return
hi
; }; + __names(B1.prototype, ["render"]); return B1; }(React.Component)); var B = (function (_super) { @@ -44,5 +59,6 @@ var B = (function (_super) { B.prototype.render = function () { return ; }; + __names(B.prototype, ["render"]); return B; }(React.Component)); diff --git a/tests/baselines/reference/tsxGenericAttributesType4.js b/tests/baselines/reference/tsxGenericAttributesType4.js index a00d03cd61bf0..7ad79bd550a29 100644 --- a/tests/baselines/reference/tsxGenericAttributesType4.js +++ b/tests/baselines/reference/tsxGenericAttributesType4.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var B1 = (function (_super) { @@ -35,6 +49,7 @@ var B1 = (function (_super) { B1.prototype.render = function () { return
hi
; }; + __names(B1.prototype, ["render"]); return B1; }(React.Component)); var B = (function (_super) { @@ -46,5 +61,6 @@ var B = (function (_super) { // Should be an ok but as of 2.3.3 this will be an error as we will instantiate B1.props to be empty object return ; }; + __names(B.prototype, ["render"]); return B; }(React.Component)); diff --git a/tests/baselines/reference/tsxGenericAttributesType5.js b/tests/baselines/reference/tsxGenericAttributesType5.js index cb535417dd661..d158a5e78df43 100644 --- a/tests/baselines/reference/tsxGenericAttributesType5.js +++ b/tests/baselines/reference/tsxGenericAttributesType5.js @@ -26,6 +26,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var B1 = (function (_super) { @@ -36,6 +50,7 @@ var B1 = (function (_super) { B1.prototype.render = function () { return
hi
; }; + __names(B1.prototype, ["render"]); return B1; }(React.Component)); var B = (function (_super) { @@ -47,5 +62,6 @@ var B = (function (_super) { // Should be an ok but as of 2.3.3 this will be an error as we will instantiate B1.props to be empty object return ; }; + __names(B.prototype, ["render"]); return B; }(React.Component)); diff --git a/tests/baselines/reference/tsxGenericAttributesType6.js b/tests/baselines/reference/tsxGenericAttributesType6.js index 84cab3e1f94b2..0ce7f98eef65c 100644 --- a/tests/baselines/reference/tsxGenericAttributesType6.js +++ b/tests/baselines/reference/tsxGenericAttributesType6.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var B1 = (function (_super) { @@ -35,6 +49,7 @@ var B1 = (function (_super) { B1.prototype.render = function () { return
hi
; }; + __names(B1.prototype, ["render"]); return B1; }(React.Component)); var B = (function (_super) { @@ -45,5 +60,6 @@ var B = (function (_super) { B.prototype.render = function () { return ; }; + __names(B.prototype, ["render"]); return B; }(React.Component)); diff --git a/tests/baselines/reference/tsxGenericAttributesType9.js b/tests/baselines/reference/tsxGenericAttributesType9.js index c53a8de520e52..6a48a6921dd70 100644 --- a/tests/baselines/reference/tsxGenericAttributesType9.js +++ b/tests/baselines/reference/tsxGenericAttributesType9.js @@ -25,6 +25,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); function makeP(Ctor) { @@ -36,6 +50,7 @@ function makeP(Ctor) { class_1.prototype.render = function () { return (); }; + __names(class_1.prototype, ["render"]); return class_1; }(React.PureComponent)); } diff --git a/tests/baselines/reference/tsxReactEmit1.js b/tests/baselines/reference/tsxReactEmit1.js index 20a91b3fe89e0..bce8983aa0db1 100644 --- a/tests/baselines/reference/tsxReactEmit1.js +++ b/tests/baselines/reference/tsxReactEmit1.js @@ -42,6 +42,20 @@ var whitespace3 =
//// [file.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var p; var selfClosed1 = React.createElement("div", null); var selfClosed2 = React.createElement("div", { x: "1" }); @@ -67,6 +81,7 @@ var SomeClass = (function () { var rewrites5 = React.createElement("div", { a: [p].concat(p, [p]) }); var rewrites6 = React.createElement("div", { a: { p: p } }); }; + __names(SomeClass.prototype, ["f"]); return SomeClass; }()); var whitespace1 = React.createElement("div", null, " "); diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution1.js b/tests/baselines/reference/tsxSpreadAttributesResolution1.js index 7d83e9bd39067..1dea3ceacfb9a 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution1.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution1.js @@ -26,6 +26,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Poisoned = (function (_super) { @@ -36,6 +50,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); var obj = {}; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution10.js b/tests/baselines/reference/tsxSpreadAttributesResolution10.js index f8d56f608de9f..c6c6efc56d7a1 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution10.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution10.js @@ -35,6 +35,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Opt = (function (_super) { @@ -45,6 +59,7 @@ var Opt = (function (_super) { Opt.prototype.render = function () { return
Hello
; }; + __names(Opt.prototype, ["render"]); return Opt; }(React.Component)); var obj = {}; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution11.js b/tests/baselines/reference/tsxSpreadAttributesResolution11.js index 44e2dcd529211..3097f21e76113 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution11.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution11.js @@ -43,6 +43,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var obj = {}; @@ -61,6 +75,7 @@ var OverWriteAttr = (function (_super) { OverWriteAttr.prototype.render = function () { return
Hello
; }; + __names(OverWriteAttr.prototype, ["render"]); return OverWriteAttr; }(React.Component)); var anyobj; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.js b/tests/baselines/reference/tsxSpreadAttributesResolution12.js index a68755a7592d2..425f9040c6a1a 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution12.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.js @@ -44,6 +44,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var obj = {}; @@ -62,6 +76,7 @@ var OverWriteAttr = (function (_super) { OverWriteAttr.prototype.render = function () { return
Hello
; }; + __names(OverWriteAttr.prototype, ["render"]); return OverWriteAttr; }(React.Component)); var anyobj; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.js b/tests/baselines/reference/tsxSpreadAttributesResolution2.js index ad2af27548582..3cea6a2dc8b09 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution2.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.js @@ -33,6 +33,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Poisoned = (function (_super) { @@ -43,6 +57,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); var obj = {}; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution3.js b/tests/baselines/reference/tsxSpreadAttributesResolution3.js index e2e0f38da0d51..7ae886eb2eff5 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution3.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution3.js @@ -33,6 +33,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Poisoned = (function (_super) { @@ -43,6 +57,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); var obj = { diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution4.js b/tests/baselines/reference/tsxSpreadAttributesResolution4.js index 3ac18a7c21931..8ad239a344022 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution4.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution4.js @@ -46,6 +46,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var _this = this; exports.__esModule = true; var React = require("react"); @@ -57,6 +71,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); var obj = { @@ -73,6 +88,7 @@ var EmptyProp = (function (_super) { EmptyProp.prototype.render = function () { return
Default hi
; }; + __names(EmptyProp.prototype, ["render"]); return EmptyProp; }(React.Component)); // OK diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution5.js b/tests/baselines/reference/tsxSpreadAttributesResolution5.js index 192f4b78770bd..9228b70a2fa5f 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution5.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution5.js @@ -45,6 +45,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Poisoned = (function (_super) { @@ -55,6 +69,7 @@ var Poisoned = (function (_super) { Poisoned.prototype.render = function () { return
Hello
; }; + __names(Poisoned.prototype, ["render"]); return Poisoned; }(React.Component)); var obj = { @@ -71,6 +86,7 @@ var EmptyProp = (function (_super) { EmptyProp.prototype.render = function () { return
Default hi
; }; + __names(EmptyProp.prototype, ["render"]); return EmptyProp; }(React.Component)); var o = { diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution6.js b/tests/baselines/reference/tsxSpreadAttributesResolution6.js index e6d714a670507..edcd3e64a28fa 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution6.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution6.js @@ -29,6 +29,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var TextComponent = (function (_super) { @@ -39,6 +53,7 @@ var TextComponent = (function (_super) { TextComponent.prototype.render = function () { return Some Text..; }; + __names(TextComponent.prototype, ["render"]); return TextComponent; }(React.Component)); // Error diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution7.js b/tests/baselines/reference/tsxSpreadAttributesResolution7.js index d93e2e80a9242..edcd6645c35b8 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution7.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution7.js @@ -36,6 +36,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var TextComponent = (function (_super) { @@ -46,6 +60,7 @@ var TextComponent = (function (_super) { TextComponent.prototype.render = function () { return Some Text..; }; + __names(TextComponent.prototype, ["render"]); return TextComponent; }(React.Component)); // OK diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution8.js b/tests/baselines/reference/tsxSpreadAttributesResolution8.js index 9b07fa5e903bc..827c07f7eacff 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution8.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution8.js @@ -38,6 +38,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var obj = {}; @@ -56,6 +70,7 @@ var OverWriteAttr = (function (_super) { OverWriteAttr.prototype.render = function () { return
Hello
; }; + __names(OverWriteAttr.prototype, ["render"]); return OverWriteAttr; }(React.Component)); // OK diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution9.js b/tests/baselines/reference/tsxSpreadAttributesResolution9.js index c7379ab2db1d9..70351631ad688 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution9.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution9.js @@ -36,6 +36,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var Opt = (function (_super) { @@ -46,6 +60,7 @@ var Opt = (function (_super) { Opt.prototype.render = function () { return
Hello
; }; + __names(Opt.prototype, ["render"]); return Opt; }(React.Component)); var obj = {}; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.js b/tests/baselines/reference/tsxStatelessFunctionComponents2.js index 90112ef1f139a..85ce1dd739ceb 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.js @@ -49,6 +49,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); function Greet(x) { @@ -62,6 +76,7 @@ var BigGreeter = (function (_super) { BigGreeter.prototype.render = function () { return
; }; + __names(BigGreeter.prototype, ["render"]); return BigGreeter; }(React.Component)); // OK diff --git a/tests/baselines/reference/tsxUnionElementType3.js b/tests/baselines/reference/tsxUnionElementType3.js index 7724c9aebae00..db52ef1e7e709 100644 --- a/tests/baselines/reference/tsxUnionElementType3.js +++ b/tests/baselines/reference/tsxUnionElementType3.js @@ -48,6 +48,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var RC1 = (function (_super) { @@ -58,6 +72,7 @@ var RC1 = (function (_super) { RC1.prototype.render = function () { return null; }; + __names(RC1.prototype, ["render"]); return RC1; }(React.Component)); var RC2 = (function (_super) { @@ -69,6 +84,7 @@ var RC2 = (function (_super) { return null; }; RC2.prototype.method = function () { }; + __names(RC2.prototype, ["render", "method"]); return RC2; }(React.Component)); var RC3 = (function (_super) { @@ -79,6 +95,7 @@ var RC3 = (function (_super) { RC3.prototype.render = function () { return null; }; + __names(RC3.prototype, ["render"]); return RC3; }(React.Component)); var RC4 = (function (_super) { @@ -89,6 +106,7 @@ var RC4 = (function (_super) { RC4.prototype.render = function () { return null; }; + __names(RC4.prototype, ["render"]); return RC4; }(React.Component)); var EmptyRCComp = RC3 || RC4; diff --git a/tests/baselines/reference/tsxUnionElementType4.js b/tests/baselines/reference/tsxUnionElementType4.js index c09dcb522002d..dd98da2fd7662 100644 --- a/tests/baselines/reference/tsxUnionElementType4.js +++ b/tests/baselines/reference/tsxUnionElementType4.js @@ -47,6 +47,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var RC1 = (function (_super) { @@ -57,6 +71,7 @@ var RC1 = (function (_super) { RC1.prototype.render = function () { return null; }; + __names(RC1.prototype, ["render"]); return RC1; }(React.Component)); var RC2 = (function (_super) { @@ -68,6 +83,7 @@ var RC2 = (function (_super) { return null; }; RC2.prototype.method = function () { }; + __names(RC2.prototype, ["render", "method"]); return RC2; }(React.Component)); var RC3 = (function (_super) { @@ -78,6 +94,7 @@ var RC3 = (function (_super) { RC3.prototype.render = function () { return null; }; + __names(RC3.prototype, ["render"]); return RC3; }(React.Component)); var RC4 = (function (_super) { @@ -88,6 +105,7 @@ var RC4 = (function (_super) { RC4.prototype.render = function () { return null; }; + __names(RC4.prototype, ["render"]); return RC4; }(React.Component)); var RCComp = RC1 || RC2; diff --git a/tests/baselines/reference/tsxUnionTypeComponent1.js b/tests/baselines/reference/tsxUnionTypeComponent1.js index 7c5349cdc5f85..3801c5a599b6b 100644 --- a/tests/baselines/reference/tsxUnionTypeComponent1.js +++ b/tests/baselines/reference/tsxUnionTypeComponent1.js @@ -35,6 +35,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var React = require("react"); var MyComponent = (function (_super) { @@ -46,6 +60,7 @@ var MyComponent = (function (_super) { var AnyComponent = this.props.AnyComponent; return (React.createElement(AnyComponent, null)); }; + __names(MyComponent.prototype, ["render"]); return MyComponent; }(React.Component)); // Stateless Component As Props diff --git a/tests/baselines/reference/typeCheckTypeArgument.js b/tests/baselines/reference/typeCheckTypeArgument.js index d4db194a1f9d3..8765d17ee8484 100644 --- a/tests/baselines/reference/typeCheckTypeArgument.js +++ b/tests/baselines/reference/typeCheckTypeArgument.js @@ -14,6 +14,20 @@ class Foo2 { ((a) => { }); //// [typeCheckTypeArgument.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var f; var Foo = (function () { function Foo() { @@ -25,6 +39,7 @@ var Foo2 = (function () { function Foo2() { } Foo2.prototype.method = function () { }; + __names(Foo2.prototype, ["method"]); return Foo2; }()); (function (a) { }); diff --git a/tests/baselines/reference/typeConstraintsWithConstructSignatures.js b/tests/baselines/reference/typeConstraintsWithConstructSignatures.js index b5d2574834a51..dedbf6c4156f1 100644 --- a/tests/baselines/reference/typeConstraintsWithConstructSignatures.js +++ b/tests/baselines/reference/typeConstraintsWithConstructSignatures.js @@ -13,6 +13,20 @@ class C { //// [typeConstraintsWithConstructSignatures.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(data, data2) { this.data = data; @@ -22,5 +36,6 @@ var C = (function () { var x = new this.data(); // should not error var x2 = new this.data2(); // should not error }; + __names(C.prototype, ["create"]); return C; }()); diff --git a/tests/baselines/reference/typeGuardFunction.js b/tests/baselines/reference/typeGuardFunction.js index 20518ddab2156..50952ec1027a0 100644 --- a/tests/baselines/reference/typeGuardFunction.js +++ b/tests/baselines/reference/typeGuardFunction.js @@ -93,6 +93,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -137,6 +151,7 @@ var D = (function () { D.prototype.method1 = function (p1) { return true; }; + __names(D.prototype, ["method1"]); return D; }()); // Arrow function diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.js b/tests/baselines/reference/typeGuardFunctionOfFormThis.js index 7ebee44cc307b..3623b6b18569b 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThis.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.js @@ -142,6 +142,20 @@ interface MimicGuardInterface { //// [typeGuardFunctionOfFormThis.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -161,6 +175,7 @@ var RoyalGuard = (function () { RoyalGuard.prototype.isFollower = function () { return this instanceof FollowerGuard; }; + __names(RoyalGuard.prototype, ["isLeader", "isFollower"]); return RoyalGuard; }()); var LeadGuard = (function (_super) { @@ -170,6 +185,7 @@ var LeadGuard = (function (_super) { } LeadGuard.prototype.lead = function () { }; ; + __names(LeadGuard.prototype, ["lead"]); return LeadGuard; }(RoyalGuard)); var FollowerGuard = (function (_super) { @@ -179,6 +195,7 @@ var FollowerGuard = (function (_super) { } FollowerGuard.prototype.follow = function () { }; ; + __names(FollowerGuard.prototype, ["follow"]); return FollowerGuard; }(RoyalGuard)); var a = new FollowerGuard(); @@ -232,6 +249,7 @@ var ArrowElite = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } ArrowElite.prototype.defend = function () { }; + __names(ArrowElite.prototype, ["defend"]); return ArrowElite; }(ArrowGuard)); var ArrowMedic = (function (_super) { @@ -240,6 +258,7 @@ var ArrowMedic = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } ArrowMedic.prototype.heal = function () { }; + __names(ArrowMedic.prototype, ["heal"]); return ArrowMedic; }(ArrowGuard)); var guard = new ArrowGuard(); @@ -266,6 +285,7 @@ var MimicGuard = (function () { ; MimicGuard.prototype.isFollower = function () { return this instanceof MimicFollower; }; ; + __names(MimicGuard.prototype, ["isLeader", "isFollower"]); return MimicGuard; }()); var MimicLeader = (function (_super) { @@ -274,6 +294,7 @@ var MimicLeader = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } MimicLeader.prototype.lead = function () { }; + __names(MimicLeader.prototype, ["lead"]); return MimicLeader; }(MimicGuard)); var MimicFollower = (function (_super) { @@ -282,6 +303,7 @@ var MimicFollower = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } MimicFollower.prototype.follow = function () { }; + __names(MimicFollower.prototype, ["follow"]); return MimicFollower; }(MimicGuard)); var mimic = new MimicGuard(); diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js index e25c9a2dc9d74..a092542802a8f 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js @@ -60,6 +60,20 @@ else { } //// [typeGuardFunctionOfFormThisErrors.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -79,6 +93,7 @@ var RoyalGuard = (function () { RoyalGuard.prototype.isFollower = function () { return this instanceof FollowerGuard; }; + __names(RoyalGuard.prototype, ["isLeader", "isFollower"]); return RoyalGuard; }()); var LeadGuard = (function (_super) { @@ -88,6 +103,7 @@ var LeadGuard = (function (_super) { } LeadGuard.prototype.lead = function () { }; ; + __names(LeadGuard.prototype, ["lead"]); return LeadGuard; }(RoyalGuard)); var FollowerGuard = (function (_super) { @@ -97,6 +113,7 @@ var FollowerGuard = (function (_super) { } FollowerGuard.prototype.follow = function () { }; ; + __names(FollowerGuard.prototype, ["follow"]); return FollowerGuard; }(RoyalGuard)); var a = new FollowerGuard(); diff --git a/tests/baselines/reference/typeGuardsInClassMethods.js b/tests/baselines/reference/typeGuardsInClassMethods.js index f5ad4e6325d81..a7e1137184071 100644 --- a/tests/baselines/reference/typeGuardsInClassMethods.js +++ b/tests/baselines/reference/typeGuardsInClassMethods.js @@ -71,6 +71,20 @@ class C1 { //// [typeGuardsInClassMethods.js] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // variables in global var num; var var1; @@ -124,5 +138,6 @@ var C1 = (function () { // parameters in function declaration num = typeof param === "string" && param.length; // string }; + __names(C1.prototype, ["p1", "p2"]); return C1; }()); diff --git a/tests/baselines/reference/typeGuardsInProperties.js b/tests/baselines/reference/typeGuardsInProperties.js index 77d4f3a609665..3a4cfee5d012b 100644 --- a/tests/baselines/reference/typeGuardsInProperties.js +++ b/tests/baselines/reference/typeGuardsInProperties.js @@ -28,6 +28,20 @@ strOrNum = typeof obj1.x === "string" && obj1.x; // string | number //// [typeGuardsInProperties.js] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var num; var strOrNum; var C1 = (function () { @@ -46,6 +60,7 @@ var C1 = (function () { strOrNum = typeof this.pp2 === "string" && this.pp2; // string | number strOrNum = typeof this.pp3 === "string" && this.pp3; // string | number }; + __names(C1.prototype, ["method"]); return C1; }()); var c1; diff --git a/tests/baselines/reference/typeGuardsOnClassProperty.js b/tests/baselines/reference/typeGuardsOnClassProperty.js index abe031e96e672..d1ba221411f02 100644 --- a/tests/baselines/reference/typeGuardsOnClassProperty.js +++ b/tests/baselines/reference/typeGuardsOnClassProperty.js @@ -31,6 +31,20 @@ if (typeof prop1 === "string" && prop1.toLocaleLowerCase()) { } //// [typeGuardsOnClassProperty.js] // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Note that the class's property must be copied to a local variable for // the type guard to have an effect var D = (function () { @@ -43,6 +57,7 @@ var D = (function () { D.prototype.getData1 = function () { return typeof this.data === "string" ? this.data : this.data.join(" "); }; + __names(D.prototype, ["getData", "getData1"]); return D; }()); var o = { diff --git a/tests/baselines/reference/typeInferenceLiteralUnion.js b/tests/baselines/reference/typeInferenceLiteralUnion.js index 289dd4130460b..ef6e69b6f945f 100644 --- a/tests/baselines/reference/typeInferenceLiteralUnion.js +++ b/tests/baselines/reference/typeInferenceLiteralUnion.js @@ -38,6 +38,20 @@ extentMixed = extent([new NumCoercible(10), 13, '12', true]); //// [typeInferenceLiteralUnion.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; // Not very useful, but meets Numeric var NumCoercible = (function () { @@ -47,6 +61,7 @@ var NumCoercible = (function () { NumCoercible.prototype.valueOf = function () { return this.a; }; + __names(NumCoercible.prototype, ["valueOf"]); return NumCoercible; }()); /** diff --git a/tests/baselines/reference/typeInferenceReturnTypeCallback.js b/tests/baselines/reference/typeInferenceReturnTypeCallback.js index 6de0cb5524c81..94ff05fc8b52f 100644 --- a/tests/baselines/reference/typeInferenceReturnTypeCallback.js +++ b/tests/baselines/reference/typeInferenceReturnTypeCallback.js @@ -22,12 +22,27 @@ class Cons implements IList{ } //// [typeInferenceReturnTypeCallback.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Nil = (function () { function Nil() { } Nil.prototype.map = function (f) { return null; }; + __names(Nil.prototype, ["map"]); return Nil; }()); var Cons = (function () { @@ -41,5 +56,6 @@ var Cons = (function () { Cons.prototype.foldRight = function (z, f) { return null; }; + __names(Cons.prototype, ["map", "foldRight"]); return Cons; }()); diff --git a/tests/baselines/reference/typeOfThis.js b/tests/baselines/reference/typeOfThis.js index c1febeae4e4d8..3782e8f5ffac1 100644 --- a/tests/baselines/reference/typeOfThis.js +++ b/tests/baselines/reference/typeOfThis.js @@ -178,6 +178,20 @@ this.spaaaaace = 4; //// [typeOfThis.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var _this = this; var MyTestClass = (function () { function MyTestClass() { @@ -247,6 +261,7 @@ var MyTestClass = (function () { enumerable: true, configurable: true }); + __names(MyTestClass.prototype, ["memberFunc"]); return MyTestClass; }()); var MyGenericTestClass = (function () { @@ -317,6 +332,7 @@ var MyGenericTestClass = (function () { enumerable: true, configurable: true }); + __names(MyGenericTestClass.prototype, ["memberFunc"]); return MyGenericTestClass; }()); //type of 'this' in a function declaration param list is Any diff --git a/tests/baselines/reference/typeOfThisInInstanceMember.js b/tests/baselines/reference/typeOfThisInInstanceMember.js index fce84290d5e38..00a824a8214e3 100644 --- a/tests/baselines/reference/typeOfThisInInstanceMember.js +++ b/tests/baselines/reference/typeOfThisInInstanceMember.js @@ -32,6 +32,20 @@ rs.forEach(x => { }); //// [typeOfThisInInstanceMember.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x) { this.x = this; @@ -51,6 +65,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/typeOfThisInInstanceMember2.js b/tests/baselines/reference/typeOfThisInInstanceMember2.js index 2b8867e7ec89a..ccd3efa0fbc84 100644 --- a/tests/baselines/reference/typeOfThisInInstanceMember2.js +++ b/tests/baselines/reference/typeOfThisInInstanceMember2.js @@ -36,6 +36,20 @@ rs.forEach(x => { }); //// [typeOfThisInInstanceMember2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x) { this.x = this; @@ -55,6 +69,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["foo"]); return C; }()); var c; diff --git a/tests/baselines/reference/typeOfThisInMemberFunctions.js b/tests/baselines/reference/typeOfThisInMemberFunctions.js index 9ef1e3a4d7d39..48ad3bc3aa1ca 100644 --- a/tests/baselines/reference/typeOfThisInMemberFunctions.js +++ b/tests/baselines/reference/typeOfThisInMemberFunctions.js @@ -32,6 +32,20 @@ class E { } //// [typeOfThisInMemberFunctions.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -41,6 +55,7 @@ var C = (function () { C.bar = function () { var r2 = this; }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function () { @@ -52,6 +67,7 @@ var D = (function () { D.bar = function () { var r2 = this; }; + __names(D.prototype, ["foo"]); return D; }()); var E = (function () { @@ -63,5 +79,6 @@ var E = (function () { E.bar = function () { var r2 = this; }; + __names(E.prototype, ["foo"]); return E; }()); diff --git a/tests/baselines/reference/typeParameterAssignmentCompat1.js b/tests/baselines/reference/typeParameterAssignmentCompat1.js index c7570a7d0657f..c1a739f220ae0 100644 --- a/tests/baselines/reference/typeParameterAssignmentCompat1.js +++ b/tests/baselines/reference/typeParameterAssignmentCompat1.js @@ -20,6 +20,20 @@ class C { } //// [typeParameterAssignmentCompat1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function f() { var x; var y; @@ -35,5 +49,6 @@ var C = (function () { x = y; // should be an error return x; }; + __names(C.prototype, ["f"]); return C; }()); diff --git a/tests/baselines/reference/typeParameterExtendingUnion1.js b/tests/baselines/reference/typeParameterExtendingUnion1.js index b582877f35cda..bece6309f23d8 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion1.js +++ b/tests/baselines/reference/typeParameterExtendingUnion1.js @@ -13,6 +13,20 @@ function f(a: T) { } //// [typeParameterExtendingUnion1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -27,6 +41,7 @@ var Animal = (function () { function Animal() { } Animal.prototype.run = function () { }; + __names(Animal.prototype, ["run"]); return Animal; }()); var Cat = (function (_super) { diff --git a/tests/baselines/reference/typeParameterExtendingUnion2.js b/tests/baselines/reference/typeParameterExtendingUnion2.js index b96298c574f12..0a927ed2d8a18 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion2.js +++ b/tests/baselines/reference/typeParameterExtendingUnion2.js @@ -13,6 +13,20 @@ function f(a: T) { } //// [typeParameterExtendingUnion2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -27,6 +41,7 @@ var Animal = (function () { function Animal() { } Animal.prototype.run = function () { }; + __names(Animal.prototype, ["run"]); return Animal; }()); var Cat = (function (_super) { diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js index d78cf2aa3665c..5885098c2c4b1 100644 --- a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js @@ -56,6 +56,20 @@ var f4 = (x: V, y: X) => { // error //// [typeParameterUsedAsTypeParameterConstraint4.js] // Type parameters are in scope in their own and other type parameter lists // Some negative cases +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { } @@ -63,6 +77,7 @@ var C = (function () { var r; return x; }; + __names(C.prototype, ["foo"]); return C; }()); function foo(x, y) { diff --git a/tests/baselines/reference/typeParameterWithInvalidConstraintType.js b/tests/baselines/reference/typeParameterWithInvalidConstraintType.js index 40a2aeacf4b3e..82823c9c0091e 100644 --- a/tests/baselines/reference/typeParameterWithInvalidConstraintType.js +++ b/tests/baselines/reference/typeParameterWithInvalidConstraintType.js @@ -10,6 +10,20 @@ class A { } //// [typeParameterWithInvalidConstraintType.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -20,5 +34,6 @@ var A = (function () { var c = x[1]; var d = x(); }; + __names(A.prototype, ["foo"]); return A; }()); diff --git a/tests/baselines/reference/typeParametersAndParametersInComputedNames.js b/tests/baselines/reference/typeParametersAndParametersInComputedNames.js index 7f2c04c2ec34b..b2634904c9761 100644 --- a/tests/baselines/reference/typeParametersAndParametersInComputedNames.js +++ b/tests/baselines/reference/typeParametersAndParametersInComputedNames.js @@ -9,13 +9,29 @@ class A { } //// [typeParametersAndParametersInComputedNames.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo(a) { return ""; } var A = (function () { function A() { } - A.prototype[foo(a)] = function (a) { + A.prototype[_a = foo(a)] = function (a) { }; + __names(A.prototype, [_a]); return A; + var _a; }()); diff --git a/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js b/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js index 699f3f2f26e5c..705fb6ac038c6 100644 --- a/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js +++ b/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js @@ -78,6 +78,20 @@ interface I2 { //// [typeParametersAreIdenticalToThemselves.js] // type parameters from the same declaration are identical to themself +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); function foo1(x) { } function foo2(x) { } function foo3(x, y) { @@ -91,6 +105,7 @@ var C = (function () { C.prototype.foo2 = function (a, x) { }; C.prototype.foo3 = function (x) { }; C.prototype.foo4 = function (x) { }; + __names(C.prototype, ["foo1", "foo2", "foo3", "foo4"]); return C; }()); var C2 = (function () { @@ -99,5 +114,6 @@ var C2 = (function () { C2.prototype.foo1 = function (x) { }; C2.prototype.foo2 = function (a, x) { }; C2.prototype.foo3 = function (x) { }; + __names(C2.prototype, ["foo1", "foo2", "foo3"]); return C2; }()); diff --git a/tests/baselines/reference/typeParametersAvailableInNestedScope.js b/tests/baselines/reference/typeParametersAvailableInNestedScope.js index d1b50029d23c2..88d54f8f3fce5 100644 --- a/tests/baselines/reference/typeParametersAvailableInNestedScope.js +++ b/tests/baselines/reference/typeParametersAvailableInNestedScope.js @@ -22,6 +22,20 @@ c.data = c.foo(); //// [typeParametersAvailableInNestedScope.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C() { this.x = function (a) { @@ -36,6 +50,7 @@ var C = (function () { } return temp(null); }; + __names(C.prototype, ["foo"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/typeQueryOnClass.js b/tests/baselines/reference/typeQueryOnClass.js index 85dff0de831e0..11bed558f48bd 100644 --- a/tests/baselines/reference/typeQueryOnClass.js +++ b/tests/baselines/reference/typeQueryOnClass.js @@ -57,6 +57,20 @@ var r3: typeof D; var r4: typeof d; //// [typeQueryOnClass.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x) { var _this = this; @@ -99,6 +113,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["baz"]); C.sa = 1; C.sb = function () { return 1; }; return C; @@ -112,6 +127,7 @@ var D = (function () { this.y = y; } D.prototype.foo = function () { }; + __names(D.prototype, ["foo"]); return D; }()); var d; diff --git a/tests/baselines/reference/typeQueryWithReservedWords.js b/tests/baselines/reference/typeQueryWithReservedWords.js index 09c3b642a36d0..2e6f9c505f1d4 100644 --- a/tests/baselines/reference/typeQueryWithReservedWords.js +++ b/tests/baselines/reference/typeQueryWithReservedWords.js @@ -16,6 +16,20 @@ interface IScope { //// [typeQueryWithReservedWords.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Controller = (function () { function Controller() { } @@ -25,5 +39,6 @@ var Controller = (function () { }; Controller.prototype["var"] = function () { }; + __names(Controller.prototype, ["create", "delete", "var"]); return Controller; }()); diff --git a/tests/baselines/reference/typeRelationships.js b/tests/baselines/reference/typeRelationships.js index 5227a109b172a..b26da5266198d 100644 --- a/tests/baselines/reference/typeRelationships.js +++ b/tests/baselines/reference/typeRelationships.js @@ -41,6 +41,20 @@ class D extends C { //// [typeRelationships.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -72,6 +86,7 @@ var C = (function () { C.prototype.f3 = function (b) { return b ? this.c : this.self; // Should be C }; + __names(C.prototype, ["foo", "f1", "f2", "f3"]); return C; }()); var D = (function (_super) { @@ -96,5 +111,6 @@ var D = (function (_super) { this.self = this.d; // Error this.c = this.d; }; + __names(D.prototype, ["bar"]); return D; }(C)); diff --git a/tests/baselines/reference/typeResolution.js b/tests/baselines/reference/typeResolution.js index cb8a40cf0a6e6..c92156714a575 100644 --- a/tests/baselines/reference/typeResolution.js +++ b/tests/baselines/reference/typeResolution.js @@ -111,6 +111,20 @@ module TopLevelModule2 { //// [typeResolution.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); define(["require", "exports"], function (require, exports) { "use strict"; exports.__esModule = true; @@ -147,6 +161,7 @@ define(["require", "exports"], function (require, exports) { var d2; d2.XisIn1_1_1(); }; + __names(ClassA.prototype, ["AisIn1_1_1"]); return ClassA; }()); SubSubModule1.ClassA = ClassA; @@ -180,6 +195,7 @@ define(["require", "exports"], function (require, exports) { var d2; d2.XisIn1_1_1(); }; + __names(ClassB.prototype, ["BisIn1_1_1"]); return ClassB; }()); SubSubModule1.ClassB = ClassB; @@ -227,6 +243,7 @@ define(["require", "exports"], function (require, exports) { function ClassA() { } ClassA.prototype.AisIn1_2_2 = function () { }; + __names(ClassA.prototype, ["AisIn1_2_2"]); return ClassA; }()); SubSubModule2.ClassA = ClassA; @@ -234,6 +251,7 @@ define(["require", "exports"], function (require, exports) { function ClassB() { } ClassB.prototype.BisIn1_2_2 = function () { }; + __names(ClassB.prototype, ["BisIn1_2_2"]); return ClassB; }()); SubSubModule2.ClassB = ClassB; @@ -241,6 +259,7 @@ define(["require", "exports"], function (require, exports) { function ClassC() { } ClassC.prototype.CisIn1_2_2 = function () { }; + __names(ClassC.prototype, ["CisIn1_2_2"]); return ClassC; }()); SubSubModule2.ClassC = ClassC; @@ -250,6 +269,7 @@ define(["require", "exports"], function (require, exports) { function ClassA() { } ClassA.prototype.AisIn1 = function () { }; + __names(ClassA.prototype, ["AisIn1"]); return ClassA; }()); var NotExportedModule; @@ -270,6 +290,7 @@ define(["require", "exports"], function (require, exports) { function ClassA() { } ClassA.prototype.AisIn2_3 = function () { }; + __names(ClassA.prototype, ["AisIn2_3"]); return ClassA; }()); SubModule3.ClassA = ClassA; diff --git a/tests/baselines/reference/typeResolution.js.map b/tests/baselines/reference/typeResolution.js.map index 5bf95ac5b29c3..eabc422a2d8d3 100644 --- a/tests/baselines/reference/typeResolution.js.map +++ b/tests/baselines/reference/typeResolution.js.map @@ -1,2 +1,2 @@ //// [typeResolution.js.map] -{"version":3,"file":"typeResolution.js","sourceRoot":"","sources":["typeResolution.ts"],"names":[],"mappings":";;;IAAA,IAAc,eAAe,CAmG5B;IAnGD,WAAc,eAAe;QACzB,IAAc,UAAU,CAwEvB;QAxED,WAAc,UAAU;YACpB,IAAc,aAAa,CAwD1B;YAxDD,WAAc,aAAa;gBACvB;oBAAA;oBAmBA,CAAC;oBAlBU,2BAAU,GAAjB;wBACI,uCAAuC;wBACvC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,yCAAyC;wBACzC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,qCAAqC;wBACrC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,sBAAsB;wBACtB,IAAI,EAAc,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACpC,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;oBACL,aAAC;gBAAD,CAAC,AAnBD,IAmBC;gBAnBY,oBAAM,SAmBlB,CAAA;gBACD;oBAAA;oBAsBA,CAAC;oBArBU,2BAAU,GAAjB;wBACI,+CAA+C;wBAE/C,uCAAuC;wBACvC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,yCAAyC;wBACzC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,qCAAqC;wBACrC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzE,IAAI,EAAqC,CAAC;wBAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;wBAEzD,sBAAsB;wBACtB,IAAI,EAAc,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACpC,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;oBACL,aAAC;gBAAD,CAAC,AAtBD,IAsBC;gBAtBY,oBAAM,SAsBlB,CAAA;gBAED;oBACI;wBACI;4BACI,uCAAuC;4BACvC,IAAI,EAAmD,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACzE,IAAI,EAAmD,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACzE,IAAI,EAAc,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACpC,IAAI,EAAqC,CAAC;4BAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;wBAC7D,CAAC;oBACL,CAAC;oBACL,wBAAC;gBAAD,CAAC,AAVD,IAUC;YACL,CAAC,EAxDa,aAAa,GAAb,wBAAa,KAAb,wBAAa,QAwD1B;YAED,0EAA0E;YAC1E;gBACI;oBACI;wBACI,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,sBAAsB;wBACtB,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;gBACL,CAAC;gBACL,aAAC;YAAD,CAAC,AAXD,IAWC;QACL,CAAC,EAxEa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAwEvB;QAED,IAAc,UAAU,CAWvB;QAXD,WAAc,UAAU;YACpB,IAAc,aAAa,CAO1B;YAPD,WAAc,aAAa;gBACvB,6DAA6D;gBAC7D;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;gBAC/C;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;gBAC/C;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;YAGnD,CAAC,EAPa,aAAa,GAAb,wBAAa,KAAb,wBAAa,QAO1B;QAGL,CAAC,EAXa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAWvB;QAED;YAAA;YAEA,CAAC;YADU,uBAAM,GAAb,cAAkB,CAAC;YACvB,aAAC;QAAD,CAAC,AAFD,IAEC;QAMD,IAAO,iBAAiB,CAEvB;QAFD,WAAO,iBAAiB;YACpB;gBAAA;gBAAsB,CAAC;gBAAD,aAAC;YAAD,CAAC,AAAvB,IAAuB;YAAV,wBAAM,SAAI,CAAA;QAC3B,CAAC,EAFM,iBAAiB,KAAjB,iBAAiB,QAEvB;IACL,CAAC,EAnGa,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmG5B;IAED,IAAO,eAAe,CAMrB;IAND,WAAO,eAAe;QAClB,IAAc,UAAU,CAIvB;QAJD,WAAc,UAAU;YACpB;gBAAA;gBAEA,CAAC;gBADU,yBAAQ,GAAf,cAAoB,CAAC;gBACzB,aAAC;YAAD,CAAC,AAFD,IAEC;YAFY,iBAAM,SAElB,CAAA;QACL,CAAC,EAJa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAIvB;IACL,CAAC,EANM,eAAe,KAAf,eAAe,QAMrB"} \ No newline at end of file +{"version":3,"file":"typeResolution.js","sourceRoot":"","sources":["typeResolution.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAAA,IAAc,eAAe,CAmG5B;IAnGD,WAAc,eAAe;QACzB,IAAc,UAAU,CAwEvB;QAxED,WAAc,UAAU;YACpB,IAAc,aAAa,CAwD1B;YAxDD,WAAc,aAAa;gBACvB;oBAAA;oBAmBA,CAAC;oBAlBU,2BAAU,GAAjB;wBACI,uCAAuC;wBACvC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,yCAAyC;wBACzC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,qCAAqC;wBACrC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,sBAAsB;wBACtB,IAAI,EAAc,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACpC,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;;oBACL,aAAC;gBAAD,CAAC,AAnBD,IAmBC;gBAnBY,oBAAM,SAmBlB,CAAA;gBACD;oBAAA;oBAsBA,CAAC;oBArBU,2BAAU,GAAjB;wBACI,+CAA+C;wBAE/C,uCAAuC;wBACvC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,yCAAyC;wBACzC,IAAI,EAAU,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAChC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,qCAAqC;wBACrC,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzE,IAAI,EAAqC,CAAC;wBAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;wBAEzD,sBAAsB;wBACtB,IAAI,EAAc,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACpC,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;;oBACL,aAAC;gBAAD,CAAC,AAtBD,IAsBC;gBAtBY,oBAAM,SAsBlB,CAAA;gBAED;oBACI;wBACI;4BACI,uCAAuC;4BACvC,IAAI,EAAmD,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACzE,IAAI,EAAmD,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACzE,IAAI,EAAc,CAAC;4BAAC,EAAE,CAAC,UAAU,EAAE,CAAC;4BACpC,IAAI,EAAqC,CAAC;4BAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;wBAC7D,CAAC;oBACL,CAAC;oBACL,wBAAC;gBAAD,CAAC,AAVD,IAUC;YACL,CAAC,EAxDa,aAAa,GAAb,wBAAa,KAAb,wBAAa,QAwD1B;YAED,0EAA0E;YAC1E;gBACI;oBACI;wBACI,IAAI,EAAwB,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAC9C,IAAI,EAAmC,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBACzD,IAAI,EAAmD,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;wBAEzE,sBAAsB;wBACtB,IAAI,EAA4B,CAAC;wBAAC,EAAE,CAAC,UAAU,EAAE,CAAC;oBACtD,CAAC;gBACL,CAAC;gBACL,aAAC;YAAD,CAAC,AAXD,IAWC;QACL,CAAC,EAxEa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAwEvB;QAED,IAAc,UAAU,CAWvB;QAXD,WAAc,UAAU;YACpB,IAAc,aAAa,CAO1B;YAPD,WAAc,aAAa;gBACvB,6DAA6D;gBAC7D;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;gBAC/C;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;gBAC/C;oBAAA;oBAA8C,CAAC;oBAAlB,2BAAU,GAAjB,cAAsB,CAAC;;oBAAC,aAAC;gBAAD,CAAC,AAA/C,IAA+C;gBAAlC,oBAAM,SAA4B,CAAA;YAGnD,CAAC,EAPa,aAAa,GAAb,wBAAa,KAAb,wBAAa,QAO1B;QAGL,CAAC,EAXa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAWvB;QAED;YAAA;YAEA,CAAC;YADU,uBAAM,GAAb,cAAkB,CAAC;;YACvB,aAAC;QAAD,CAAC,AAFD,IAEC;QAMD,IAAO,iBAAiB,CAEvB;QAFD,WAAO,iBAAiB;YACpB;gBAAA;gBAAsB,CAAC;gBAAD,aAAC;YAAD,CAAC,AAAvB,IAAuB;YAAV,wBAAM,SAAI,CAAA;QAC3B,CAAC,EAFM,iBAAiB,KAAjB,iBAAiB,QAEvB;IACL,CAAC,EAnGa,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmG5B;IAED,IAAO,eAAe,CAMrB;IAND,WAAO,eAAe;QAClB,IAAc,UAAU,CAIvB;QAJD,WAAc,UAAU;YACpB;gBAAA;gBAEA,CAAC;gBADU,yBAAQ,GAAf,cAAoB,CAAC;;gBACzB,aAAC;YAAD,CAAC,AAFD,IAEC;YAFY,iBAAM,SAElB,CAAA;QACL,CAAC,EAJa,UAAU,GAAV,0BAAU,KAAV,0BAAU,QAIvB;IACL,CAAC,EANM,eAAe,KAAf,eAAe,QAMrB"} \ No newline at end of file diff --git a/tests/baselines/reference/typeResolution.sourcemap.txt b/tests/baselines/reference/typeResolution.sourcemap.txt index 19e8b9991d154..618675fedf011 100644 --- a/tests/baselines/reference/typeResolution.sourcemap.txt +++ b/tests/baselines/reference/typeResolution.sourcemap.txt @@ -8,6 +8,20 @@ sources: typeResolution.ts emittedFile:tests/cases/compiler/typeResolution.js sourceFile:typeResolution.ts ------------------------------------------------------------------- +>>>var __names = (this && this.__names) || (function() { +>>> var name = Object.defineProperty ? (function(proto, name) { +>>> Object.defineProperty(proto[name], 'name', { +>>> value: name, configurable: true, writable: false, enumerable: false +>>> }); +>>> }) : (function(proto, name) { +>>> proto[name].name = name; +>>> }); +>>> return function (proto, keys) { +>>> for (var i = keys.length - 1; i >= 0; i--) { +>>> name(proto, keys[i]) +>>> } +>>> }; +>>>})(); >>>define(["require", "exports"], function (require, exports) { >>> "use strict"; >>> exports.__esModule = true; @@ -120,10 +134,10 @@ sourceFile:typeResolution.ts > export class ClassA { } > } > } -1 >Emitted(4, 5) Source(1, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(1, 15) + SourceIndex(0) -3 >Emitted(4, 24) Source(1, 30) + SourceIndex(0) -4 >Emitted(4, 25) Source(100, 2) + SourceIndex(0) +1 >Emitted(18, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(18, 9) Source(1, 15) + SourceIndex(0) +3 >Emitted(18, 24) Source(1, 30) + SourceIndex(0) +4 >Emitted(18, 25) Source(100, 2) + SourceIndex(0) --- >>> (function (TopLevelModule1) { 1->^^^^ @@ -132,9 +146,9 @@ sourceFile:typeResolution.ts 1-> 2 > export module 3 > TopLevelModule1 -1->Emitted(5, 5) Source(1, 1) + SourceIndex(0) -2 >Emitted(5, 16) Source(1, 15) + SourceIndex(0) -3 >Emitted(5, 31) Source(1, 30) + SourceIndex(0) +1->Emitted(19, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(19, 16) Source(1, 15) + SourceIndex(0) +3 >Emitted(19, 31) Source(1, 30) + SourceIndex(0) --- >>> var SubModule1; 1 >^^^^^^^^ @@ -219,10 +233,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(6, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(6, 13) Source(2, 19) + SourceIndex(0) -3 >Emitted(6, 23) Source(2, 29) + SourceIndex(0) -4 >Emitted(6, 24) Source(74, 6) + SourceIndex(0) +1 >Emitted(20, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(20, 13) Source(2, 19) + SourceIndex(0) +3 >Emitted(20, 23) Source(2, 29) + SourceIndex(0) +4 >Emitted(20, 24) Source(74, 6) + SourceIndex(0) --- >>> (function (SubModule1) { 1->^^^^^^^^ @@ -232,9 +246,9 @@ sourceFile:typeResolution.ts 1-> 2 > export module 3 > SubModule1 -1->Emitted(7, 9) Source(2, 5) + SourceIndex(0) -2 >Emitted(7, 20) Source(2, 19) + SourceIndex(0) -3 >Emitted(7, 30) Source(2, 29) + SourceIndex(0) +1->Emitted(21, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(21, 20) Source(2, 19) + SourceIndex(0) +3 >Emitted(21, 30) Source(2, 29) + SourceIndex(0) --- >>> var SubSubModule1; 1->^^^^^^^^^^^^ @@ -303,10 +317,10 @@ sourceFile:typeResolution.ts > } > } > } -1->Emitted(8, 13) Source(3, 9) + SourceIndex(0) -2 >Emitted(8, 17) Source(3, 23) + SourceIndex(0) -3 >Emitted(8, 30) Source(3, 36) + SourceIndex(0) -4 >Emitted(8, 31) Source(59, 10) + SourceIndex(0) +1->Emitted(22, 13) Source(3, 9) + SourceIndex(0) +2 >Emitted(22, 17) Source(3, 23) + SourceIndex(0) +3 >Emitted(22, 30) Source(3, 36) + SourceIndex(0) +4 >Emitted(22, 31) Source(59, 10) + SourceIndex(0) --- >>> (function (SubSubModule1) { 1->^^^^^^^^^^^^ @@ -316,22 +330,22 @@ sourceFile:typeResolution.ts 1-> 2 > export module 3 > SubSubModule1 -1->Emitted(9, 13) Source(3, 9) + SourceIndex(0) -2 >Emitted(9, 24) Source(3, 23) + SourceIndex(0) -3 >Emitted(9, 37) Source(3, 36) + SourceIndex(0) +1->Emitted(23, 13) Source(3, 9) + SourceIndex(0) +2 >Emitted(23, 24) Source(3, 23) + SourceIndex(0) +3 >Emitted(23, 37) Source(3, 36) + SourceIndex(0) --- >>> var ClassA = (function () { 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(10, 17) Source(4, 13) + SourceIndex(0) +1->Emitted(24, 17) Source(4, 13) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(11, 21) Source(4, 13) + SourceIndex(0) +1->Emitted(25, 21) Source(4, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -358,8 +372,8 @@ sourceFile:typeResolution.ts > } > 2 > } -1->Emitted(12, 21) Source(23, 13) + SourceIndex(0) -2 >Emitted(12, 22) Source(23, 14) + SourceIndex(0) +1->Emitted(26, 21) Source(23, 13) + SourceIndex(0) +2 >Emitted(26, 22) Source(23, 14) + SourceIndex(0) --- >>> ClassA.prototype.AisIn1_1_1 = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -369,9 +383,9 @@ sourceFile:typeResolution.ts 1-> 2 > AisIn1_1_1 3 > -1->Emitted(13, 21) Source(5, 24) + SourceIndex(0) -2 >Emitted(13, 48) Source(5, 34) + SourceIndex(0) -3 >Emitted(13, 51) Source(5, 17) + SourceIndex(0) +1->Emitted(27, 21) Source(5, 24) + SourceIndex(0) +2 >Emitted(27, 48) Source(5, 34) + SourceIndex(0) +3 >Emitted(27, 51) Source(5, 17) + SourceIndex(0) --- >>> // Try all qualified names of this type 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -379,8 +393,8 @@ sourceFile:typeResolution.ts 1->public AisIn1_1_1() { > 2 > // Try all qualified names of this type -1->Emitted(14, 25) Source(6, 21) + SourceIndex(0) -2 >Emitted(14, 64) Source(6, 60) + SourceIndex(0) +1->Emitted(28, 25) Source(6, 21) + SourceIndex(0) +2 >Emitted(28, 64) Source(6, 60) + SourceIndex(0) --- >>> var a1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -393,10 +407,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a1: ClassA 4 > ; -1 >Emitted(15, 25) Source(7, 21) + SourceIndex(0) -2 >Emitted(15, 29) Source(7, 25) + SourceIndex(0) -3 >Emitted(15, 31) Source(7, 35) + SourceIndex(0) -4 >Emitted(15, 32) Source(7, 36) + SourceIndex(0) +1 >Emitted(29, 25) Source(7, 21) + SourceIndex(0) +2 >Emitted(29, 29) Source(7, 25) + SourceIndex(0) +3 >Emitted(29, 31) Source(7, 35) + SourceIndex(0) +4 >Emitted(29, 32) Source(7, 36) + SourceIndex(0) --- >>> a1.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -411,12 +425,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(16, 25) Source(7, 37) + SourceIndex(0) -2 >Emitted(16, 27) Source(7, 39) + SourceIndex(0) -3 >Emitted(16, 28) Source(7, 40) + SourceIndex(0) -4 >Emitted(16, 38) Source(7, 50) + SourceIndex(0) -5 >Emitted(16, 40) Source(7, 52) + SourceIndex(0) -6 >Emitted(16, 41) Source(7, 53) + SourceIndex(0) +1->Emitted(30, 25) Source(7, 37) + SourceIndex(0) +2 >Emitted(30, 27) Source(7, 39) + SourceIndex(0) +3 >Emitted(30, 28) Source(7, 40) + SourceIndex(0) +4 >Emitted(30, 38) Source(7, 50) + SourceIndex(0) +5 >Emitted(30, 40) Source(7, 52) + SourceIndex(0) +6 >Emitted(30, 41) Source(7, 53) + SourceIndex(0) --- >>> var a2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -429,10 +443,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a2: SubSubModule1.ClassA 4 > ; -1 >Emitted(17, 25) Source(8, 21) + SourceIndex(0) -2 >Emitted(17, 29) Source(8, 25) + SourceIndex(0) -3 >Emitted(17, 31) Source(8, 49) + SourceIndex(0) -4 >Emitted(17, 32) Source(8, 50) + SourceIndex(0) +1 >Emitted(31, 25) Source(8, 21) + SourceIndex(0) +2 >Emitted(31, 29) Source(8, 25) + SourceIndex(0) +3 >Emitted(31, 31) Source(8, 49) + SourceIndex(0) +4 >Emitted(31, 32) Source(8, 50) + SourceIndex(0) --- >>> a2.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -447,12 +461,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(18, 25) Source(8, 51) + SourceIndex(0) -2 >Emitted(18, 27) Source(8, 53) + SourceIndex(0) -3 >Emitted(18, 28) Source(8, 54) + SourceIndex(0) -4 >Emitted(18, 38) Source(8, 64) + SourceIndex(0) -5 >Emitted(18, 40) Source(8, 66) + SourceIndex(0) -6 >Emitted(18, 41) Source(8, 67) + SourceIndex(0) +1->Emitted(32, 25) Source(8, 51) + SourceIndex(0) +2 >Emitted(32, 27) Source(8, 53) + SourceIndex(0) +3 >Emitted(32, 28) Source(8, 54) + SourceIndex(0) +4 >Emitted(32, 38) Source(8, 64) + SourceIndex(0) +5 >Emitted(32, 40) Source(8, 66) + SourceIndex(0) +6 >Emitted(32, 41) Source(8, 67) + SourceIndex(0) --- >>> var a3; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -465,10 +479,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a3: SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(19, 25) Source(9, 21) + SourceIndex(0) -2 >Emitted(19, 29) Source(9, 25) + SourceIndex(0) -3 >Emitted(19, 31) Source(9, 60) + SourceIndex(0) -4 >Emitted(19, 32) Source(9, 61) + SourceIndex(0) +1 >Emitted(33, 25) Source(9, 21) + SourceIndex(0) +2 >Emitted(33, 29) Source(9, 25) + SourceIndex(0) +3 >Emitted(33, 31) Source(9, 60) + SourceIndex(0) +4 >Emitted(33, 32) Source(9, 61) + SourceIndex(0) --- >>> a3.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -483,12 +497,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(20, 25) Source(9, 62) + SourceIndex(0) -2 >Emitted(20, 27) Source(9, 64) + SourceIndex(0) -3 >Emitted(20, 28) Source(9, 65) + SourceIndex(0) -4 >Emitted(20, 38) Source(9, 75) + SourceIndex(0) -5 >Emitted(20, 40) Source(9, 77) + SourceIndex(0) -6 >Emitted(20, 41) Source(9, 78) + SourceIndex(0) +1->Emitted(34, 25) Source(9, 62) + SourceIndex(0) +2 >Emitted(34, 27) Source(9, 64) + SourceIndex(0) +3 >Emitted(34, 28) Source(9, 65) + SourceIndex(0) +4 >Emitted(34, 38) Source(9, 75) + SourceIndex(0) +5 >Emitted(34, 40) Source(9, 77) + SourceIndex(0) +6 >Emitted(34, 41) Source(9, 78) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -501,10 +515,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(21, 25) Source(10, 21) + SourceIndex(0) -2 >Emitted(21, 29) Source(10, 25) + SourceIndex(0) -3 >Emitted(21, 31) Source(10, 76) + SourceIndex(0) -4 >Emitted(21, 32) Source(10, 77) + SourceIndex(0) +1 >Emitted(35, 25) Source(10, 21) + SourceIndex(0) +2 >Emitted(35, 29) Source(10, 25) + SourceIndex(0) +3 >Emitted(35, 31) Source(10, 76) + SourceIndex(0) +4 >Emitted(35, 32) Source(10, 77) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -520,12 +534,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(22, 25) Source(10, 78) + SourceIndex(0) -2 >Emitted(22, 27) Source(10, 80) + SourceIndex(0) -3 >Emitted(22, 28) Source(10, 81) + SourceIndex(0) -4 >Emitted(22, 38) Source(10, 91) + SourceIndex(0) -5 >Emitted(22, 40) Source(10, 93) + SourceIndex(0) -6 >Emitted(22, 41) Source(10, 94) + SourceIndex(0) +1->Emitted(36, 25) Source(10, 78) + SourceIndex(0) +2 >Emitted(36, 27) Source(10, 80) + SourceIndex(0) +3 >Emitted(36, 28) Source(10, 81) + SourceIndex(0) +4 >Emitted(36, 38) Source(10, 91) + SourceIndex(0) +5 >Emitted(36, 40) Source(10, 93) + SourceIndex(0) +6 >Emitted(36, 41) Source(10, 94) + SourceIndex(0) --- >>> // Two variants of qualifying a peer type 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -534,8 +548,8 @@ sourceFile:typeResolution.ts > > 2 > // Two variants of qualifying a peer type -1->Emitted(23, 25) Source(12, 21) + SourceIndex(0) -2 >Emitted(23, 66) Source(12, 62) + SourceIndex(0) +1->Emitted(37, 25) Source(12, 21) + SourceIndex(0) +2 >Emitted(37, 66) Source(12, 62) + SourceIndex(0) --- >>> var b1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -548,10 +562,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b1: ClassB 4 > ; -1 >Emitted(24, 25) Source(13, 21) + SourceIndex(0) -2 >Emitted(24, 29) Source(13, 25) + SourceIndex(0) -3 >Emitted(24, 31) Source(13, 35) + SourceIndex(0) -4 >Emitted(24, 32) Source(13, 36) + SourceIndex(0) +1 >Emitted(38, 25) Source(13, 21) + SourceIndex(0) +2 >Emitted(38, 29) Source(13, 25) + SourceIndex(0) +3 >Emitted(38, 31) Source(13, 35) + SourceIndex(0) +4 >Emitted(38, 32) Source(13, 36) + SourceIndex(0) --- >>> b1.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -566,12 +580,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(25, 25) Source(13, 37) + SourceIndex(0) -2 >Emitted(25, 27) Source(13, 39) + SourceIndex(0) -3 >Emitted(25, 28) Source(13, 40) + SourceIndex(0) -4 >Emitted(25, 38) Source(13, 50) + SourceIndex(0) -5 >Emitted(25, 40) Source(13, 52) + SourceIndex(0) -6 >Emitted(25, 41) Source(13, 53) + SourceIndex(0) +1->Emitted(39, 25) Source(13, 37) + SourceIndex(0) +2 >Emitted(39, 27) Source(13, 39) + SourceIndex(0) +3 >Emitted(39, 28) Source(13, 40) + SourceIndex(0) +4 >Emitted(39, 38) Source(13, 50) + SourceIndex(0) +5 >Emitted(39, 40) Source(13, 52) + SourceIndex(0) +6 >Emitted(39, 41) Source(13, 53) + SourceIndex(0) --- >>> var b2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -584,10 +598,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB 4 > ; -1 >Emitted(26, 25) Source(14, 21) + SourceIndex(0) -2 >Emitted(26, 29) Source(14, 25) + SourceIndex(0) -3 >Emitted(26, 31) Source(14, 76) + SourceIndex(0) -4 >Emitted(26, 32) Source(14, 77) + SourceIndex(0) +1 >Emitted(40, 25) Source(14, 21) + SourceIndex(0) +2 >Emitted(40, 29) Source(14, 25) + SourceIndex(0) +3 >Emitted(40, 31) Source(14, 76) + SourceIndex(0) +4 >Emitted(40, 32) Source(14, 77) + SourceIndex(0) --- >>> b2.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -603,12 +617,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(27, 25) Source(14, 78) + SourceIndex(0) -2 >Emitted(27, 27) Source(14, 80) + SourceIndex(0) -3 >Emitted(27, 28) Source(14, 81) + SourceIndex(0) -4 >Emitted(27, 38) Source(14, 91) + SourceIndex(0) -5 >Emitted(27, 40) Source(14, 93) + SourceIndex(0) -6 >Emitted(27, 41) Source(14, 94) + SourceIndex(0) +1->Emitted(41, 25) Source(14, 78) + SourceIndex(0) +2 >Emitted(41, 27) Source(14, 80) + SourceIndex(0) +3 >Emitted(41, 28) Source(14, 81) + SourceIndex(0) +4 >Emitted(41, 38) Source(14, 91) + SourceIndex(0) +5 >Emitted(41, 40) Source(14, 93) + SourceIndex(0) +6 >Emitted(41, 41) Source(14, 94) + SourceIndex(0) --- >>> // Type only accessible from the root 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -617,8 +631,8 @@ sourceFile:typeResolution.ts > > 2 > // Type only accessible from the root -1->Emitted(28, 25) Source(16, 21) + SourceIndex(0) -2 >Emitted(28, 62) Source(16, 58) + SourceIndex(0) +1->Emitted(42, 25) Source(16, 21) + SourceIndex(0) +2 >Emitted(42, 62) Source(16, 58) + SourceIndex(0) --- >>> var c1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -631,10 +645,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA 4 > ; -1 >Emitted(29, 25) Source(17, 21) + SourceIndex(0) -2 >Emitted(29, 29) Source(17, 25) + SourceIndex(0) -3 >Emitted(29, 31) Source(17, 76) + SourceIndex(0) -4 >Emitted(29, 32) Source(17, 77) + SourceIndex(0) +1 >Emitted(43, 25) Source(17, 21) + SourceIndex(0) +2 >Emitted(43, 29) Source(17, 25) + SourceIndex(0) +3 >Emitted(43, 31) Source(17, 76) + SourceIndex(0) +4 >Emitted(43, 32) Source(17, 77) + SourceIndex(0) --- >>> c1.AisIn1_2_2(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -650,12 +664,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_2_2 5 > () 6 > ; -1->Emitted(30, 25) Source(17, 78) + SourceIndex(0) -2 >Emitted(30, 27) Source(17, 80) + SourceIndex(0) -3 >Emitted(30, 28) Source(17, 81) + SourceIndex(0) -4 >Emitted(30, 38) Source(17, 91) + SourceIndex(0) -5 >Emitted(30, 40) Source(17, 93) + SourceIndex(0) -6 >Emitted(30, 41) Source(17, 94) + SourceIndex(0) +1->Emitted(44, 25) Source(17, 78) + SourceIndex(0) +2 >Emitted(44, 27) Source(17, 80) + SourceIndex(0) +3 >Emitted(44, 28) Source(17, 81) + SourceIndex(0) +4 >Emitted(44, 38) Source(17, 91) + SourceIndex(0) +5 >Emitted(44, 40) Source(17, 93) + SourceIndex(0) +6 >Emitted(44, 41) Source(17, 94) + SourceIndex(0) --- >>> // Interface reference 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -664,8 +678,8 @@ sourceFile:typeResolution.ts > > 2 > // Interface reference -1->Emitted(31, 25) Source(19, 21) + SourceIndex(0) -2 >Emitted(31, 47) Source(19, 43) + SourceIndex(0) +1->Emitted(45, 25) Source(19, 21) + SourceIndex(0) +2 >Emitted(45, 47) Source(19, 43) + SourceIndex(0) --- >>> var d1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -678,10 +692,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d1: InterfaceX 4 > ; -1 >Emitted(32, 25) Source(20, 21) + SourceIndex(0) -2 >Emitted(32, 29) Source(20, 25) + SourceIndex(0) -3 >Emitted(32, 31) Source(20, 39) + SourceIndex(0) -4 >Emitted(32, 32) Source(20, 40) + SourceIndex(0) +1 >Emitted(46, 25) Source(20, 21) + SourceIndex(0) +2 >Emitted(46, 29) Source(20, 25) + SourceIndex(0) +3 >Emitted(46, 31) Source(20, 39) + SourceIndex(0) +4 >Emitted(46, 32) Source(20, 40) + SourceIndex(0) --- >>> d1.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -696,12 +710,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(33, 25) Source(20, 41) + SourceIndex(0) -2 >Emitted(33, 27) Source(20, 43) + SourceIndex(0) -3 >Emitted(33, 28) Source(20, 44) + SourceIndex(0) -4 >Emitted(33, 38) Source(20, 54) + SourceIndex(0) -5 >Emitted(33, 40) Source(20, 56) + SourceIndex(0) -6 >Emitted(33, 41) Source(20, 57) + SourceIndex(0) +1->Emitted(47, 25) Source(20, 41) + SourceIndex(0) +2 >Emitted(47, 27) Source(20, 43) + SourceIndex(0) +3 >Emitted(47, 28) Source(20, 44) + SourceIndex(0) +4 >Emitted(47, 38) Source(20, 54) + SourceIndex(0) +5 >Emitted(47, 40) Source(20, 56) + SourceIndex(0) +6 >Emitted(47, 41) Source(20, 57) + SourceIndex(0) --- >>> var d2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -714,10 +728,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d2: SubSubModule1.InterfaceX 4 > ; -1 >Emitted(34, 25) Source(21, 21) + SourceIndex(0) -2 >Emitted(34, 29) Source(21, 25) + SourceIndex(0) -3 >Emitted(34, 31) Source(21, 53) + SourceIndex(0) -4 >Emitted(34, 32) Source(21, 54) + SourceIndex(0) +1 >Emitted(48, 25) Source(21, 21) + SourceIndex(0) +2 >Emitted(48, 29) Source(21, 25) + SourceIndex(0) +3 >Emitted(48, 31) Source(21, 53) + SourceIndex(0) +4 >Emitted(48, 32) Source(21, 54) + SourceIndex(0) --- >>> d2.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -732,31 +746,32 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(35, 25) Source(21, 55) + SourceIndex(0) -2 >Emitted(35, 27) Source(21, 57) + SourceIndex(0) -3 >Emitted(35, 28) Source(21, 58) + SourceIndex(0) -4 >Emitted(35, 38) Source(21, 68) + SourceIndex(0) -5 >Emitted(35, 40) Source(21, 70) + SourceIndex(0) -6 >Emitted(35, 41) Source(21, 71) + SourceIndex(0) +1->Emitted(49, 25) Source(21, 55) + SourceIndex(0) +2 >Emitted(49, 27) Source(21, 57) + SourceIndex(0) +3 >Emitted(49, 28) Source(21, 58) + SourceIndex(0) +4 >Emitted(49, 38) Source(21, 68) + SourceIndex(0) +5 >Emitted(49, 40) Source(21, 70) + SourceIndex(0) +6 >Emitted(49, 41) Source(21, 71) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(36, 21) Source(22, 17) + SourceIndex(0) -2 >Emitted(36, 22) Source(22, 18) + SourceIndex(0) +1 >Emitted(50, 21) Source(22, 17) + SourceIndex(0) +2 >Emitted(50, 22) Source(22, 18) + SourceIndex(0) --- +>>> __names(ClassA.prototype, ["AisIn1_1_1"]); >>> return ClassA; 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1-> > 2 > } -1->Emitted(37, 21) Source(23, 13) + SourceIndex(0) -2 >Emitted(37, 34) Source(23, 14) + SourceIndex(0) +1->Emitted(52, 21) Source(23, 13) + SourceIndex(0) +2 >Emitted(52, 34) Source(23, 14) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -787,10 +802,10 @@ sourceFile:typeResolution.ts > var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1(); > } > } -1 >Emitted(38, 17) Source(23, 13) + SourceIndex(0) -2 >Emitted(38, 18) Source(23, 14) + SourceIndex(0) -3 >Emitted(38, 18) Source(4, 13) + SourceIndex(0) -4 >Emitted(38, 22) Source(23, 14) + SourceIndex(0) +1 >Emitted(53, 17) Source(23, 13) + SourceIndex(0) +2 >Emitted(53, 18) Source(23, 14) + SourceIndex(0) +3 >Emitted(53, 18) Source(4, 13) + SourceIndex(0) +4 >Emitted(53, 22) Source(23, 14) + SourceIndex(0) --- >>> SubSubModule1.ClassA = ClassA; 1->^^^^^^^^^^^^^^^^ @@ -820,23 +835,23 @@ sourceFile:typeResolution.ts > } > } 4 > -1->Emitted(39, 17) Source(4, 26) + SourceIndex(0) -2 >Emitted(39, 37) Source(4, 32) + SourceIndex(0) -3 >Emitted(39, 46) Source(23, 14) + SourceIndex(0) -4 >Emitted(39, 47) Source(23, 14) + SourceIndex(0) +1->Emitted(54, 17) Source(4, 26) + SourceIndex(0) +2 >Emitted(54, 37) Source(4, 32) + SourceIndex(0) +3 >Emitted(54, 46) Source(23, 14) + SourceIndex(0) +4 >Emitted(54, 47) Source(23, 14) + SourceIndex(0) --- >>> var ClassB = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(40, 17) Source(24, 13) + SourceIndex(0) +1 >Emitted(55, 17) Source(24, 13) + SourceIndex(0) --- >>> function ClassB() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(41, 21) Source(24, 13) + SourceIndex(0) +1->Emitted(56, 21) Source(24, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -866,8 +881,8 @@ sourceFile:typeResolution.ts > } > 2 > } -1->Emitted(42, 21) Source(46, 13) + SourceIndex(0) -2 >Emitted(42, 22) Source(46, 14) + SourceIndex(0) +1->Emitted(57, 21) Source(46, 13) + SourceIndex(0) +2 >Emitted(57, 22) Source(46, 14) + SourceIndex(0) --- >>> ClassB.prototype.BisIn1_1_1 = function () { 1->^^^^^^^^^^^^^^^^^^^^ @@ -877,9 +892,9 @@ sourceFile:typeResolution.ts 1-> 2 > BisIn1_1_1 3 > -1->Emitted(43, 21) Source(25, 24) + SourceIndex(0) -2 >Emitted(43, 48) Source(25, 34) + SourceIndex(0) -3 >Emitted(43, 51) Source(25, 17) + SourceIndex(0) +1->Emitted(58, 21) Source(25, 24) + SourceIndex(0) +2 >Emitted(58, 48) Source(25, 34) + SourceIndex(0) +3 >Emitted(58, 51) Source(25, 17) + SourceIndex(0) --- >>> /** Exactly the same as above in AisIn1_1_1 **/ 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -887,8 +902,8 @@ sourceFile:typeResolution.ts 1->public BisIn1_1_1() { > 2 > /** Exactly the same as above in AisIn1_1_1 **/ -1->Emitted(44, 25) Source(26, 21) + SourceIndex(0) -2 >Emitted(44, 72) Source(26, 68) + SourceIndex(0) +1->Emitted(59, 25) Source(26, 21) + SourceIndex(0) +2 >Emitted(59, 72) Source(26, 68) + SourceIndex(0) --- >>> // Try all qualified names of this type 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -897,8 +912,8 @@ sourceFile:typeResolution.ts > > 2 > // Try all qualified names of this type -1 >Emitted(45, 25) Source(28, 21) + SourceIndex(0) -2 >Emitted(45, 64) Source(28, 60) + SourceIndex(0) +1 >Emitted(60, 25) Source(28, 21) + SourceIndex(0) +2 >Emitted(60, 64) Source(28, 60) + SourceIndex(0) --- >>> var a1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -911,10 +926,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a1: ClassA 4 > ; -1 >Emitted(46, 25) Source(29, 21) + SourceIndex(0) -2 >Emitted(46, 29) Source(29, 25) + SourceIndex(0) -3 >Emitted(46, 31) Source(29, 35) + SourceIndex(0) -4 >Emitted(46, 32) Source(29, 36) + SourceIndex(0) +1 >Emitted(61, 25) Source(29, 21) + SourceIndex(0) +2 >Emitted(61, 29) Source(29, 25) + SourceIndex(0) +3 >Emitted(61, 31) Source(29, 35) + SourceIndex(0) +4 >Emitted(61, 32) Source(29, 36) + SourceIndex(0) --- >>> a1.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -929,12 +944,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(47, 25) Source(29, 37) + SourceIndex(0) -2 >Emitted(47, 27) Source(29, 39) + SourceIndex(0) -3 >Emitted(47, 28) Source(29, 40) + SourceIndex(0) -4 >Emitted(47, 38) Source(29, 50) + SourceIndex(0) -5 >Emitted(47, 40) Source(29, 52) + SourceIndex(0) -6 >Emitted(47, 41) Source(29, 53) + SourceIndex(0) +1->Emitted(62, 25) Source(29, 37) + SourceIndex(0) +2 >Emitted(62, 27) Source(29, 39) + SourceIndex(0) +3 >Emitted(62, 28) Source(29, 40) + SourceIndex(0) +4 >Emitted(62, 38) Source(29, 50) + SourceIndex(0) +5 >Emitted(62, 40) Source(29, 52) + SourceIndex(0) +6 >Emitted(62, 41) Source(29, 53) + SourceIndex(0) --- >>> var a2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -947,10 +962,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a2: SubSubModule1.ClassA 4 > ; -1 >Emitted(48, 25) Source(30, 21) + SourceIndex(0) -2 >Emitted(48, 29) Source(30, 25) + SourceIndex(0) -3 >Emitted(48, 31) Source(30, 49) + SourceIndex(0) -4 >Emitted(48, 32) Source(30, 50) + SourceIndex(0) +1 >Emitted(63, 25) Source(30, 21) + SourceIndex(0) +2 >Emitted(63, 29) Source(30, 25) + SourceIndex(0) +3 >Emitted(63, 31) Source(30, 49) + SourceIndex(0) +4 >Emitted(63, 32) Source(30, 50) + SourceIndex(0) --- >>> a2.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -965,12 +980,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(49, 25) Source(30, 51) + SourceIndex(0) -2 >Emitted(49, 27) Source(30, 53) + SourceIndex(0) -3 >Emitted(49, 28) Source(30, 54) + SourceIndex(0) -4 >Emitted(49, 38) Source(30, 64) + SourceIndex(0) -5 >Emitted(49, 40) Source(30, 66) + SourceIndex(0) -6 >Emitted(49, 41) Source(30, 67) + SourceIndex(0) +1->Emitted(64, 25) Source(30, 51) + SourceIndex(0) +2 >Emitted(64, 27) Source(30, 53) + SourceIndex(0) +3 >Emitted(64, 28) Source(30, 54) + SourceIndex(0) +4 >Emitted(64, 38) Source(30, 64) + SourceIndex(0) +5 >Emitted(64, 40) Source(30, 66) + SourceIndex(0) +6 >Emitted(64, 41) Source(30, 67) + SourceIndex(0) --- >>> var a3; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -983,10 +998,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a3: SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(50, 25) Source(31, 21) + SourceIndex(0) -2 >Emitted(50, 29) Source(31, 25) + SourceIndex(0) -3 >Emitted(50, 31) Source(31, 60) + SourceIndex(0) -4 >Emitted(50, 32) Source(31, 61) + SourceIndex(0) +1 >Emitted(65, 25) Source(31, 21) + SourceIndex(0) +2 >Emitted(65, 29) Source(31, 25) + SourceIndex(0) +3 >Emitted(65, 31) Source(31, 60) + SourceIndex(0) +4 >Emitted(65, 32) Source(31, 61) + SourceIndex(0) --- >>> a3.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1001,12 +1016,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(51, 25) Source(31, 62) + SourceIndex(0) -2 >Emitted(51, 27) Source(31, 64) + SourceIndex(0) -3 >Emitted(51, 28) Source(31, 65) + SourceIndex(0) -4 >Emitted(51, 38) Source(31, 75) + SourceIndex(0) -5 >Emitted(51, 40) Source(31, 77) + SourceIndex(0) -6 >Emitted(51, 41) Source(31, 78) + SourceIndex(0) +1->Emitted(66, 25) Source(31, 62) + SourceIndex(0) +2 >Emitted(66, 27) Source(31, 64) + SourceIndex(0) +3 >Emitted(66, 28) Source(31, 65) + SourceIndex(0) +4 >Emitted(66, 38) Source(31, 75) + SourceIndex(0) +5 >Emitted(66, 40) Source(31, 77) + SourceIndex(0) +6 >Emitted(66, 41) Source(31, 78) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1019,10 +1034,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(52, 25) Source(32, 21) + SourceIndex(0) -2 >Emitted(52, 29) Source(32, 25) + SourceIndex(0) -3 >Emitted(52, 31) Source(32, 76) + SourceIndex(0) -4 >Emitted(52, 32) Source(32, 77) + SourceIndex(0) +1 >Emitted(67, 25) Source(32, 21) + SourceIndex(0) +2 >Emitted(67, 29) Source(32, 25) + SourceIndex(0) +3 >Emitted(67, 31) Source(32, 76) + SourceIndex(0) +4 >Emitted(67, 32) Source(32, 77) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1038,12 +1053,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(53, 25) Source(32, 78) + SourceIndex(0) -2 >Emitted(53, 27) Source(32, 80) + SourceIndex(0) -3 >Emitted(53, 28) Source(32, 81) + SourceIndex(0) -4 >Emitted(53, 38) Source(32, 91) + SourceIndex(0) -5 >Emitted(53, 40) Source(32, 93) + SourceIndex(0) -6 >Emitted(53, 41) Source(32, 94) + SourceIndex(0) +1->Emitted(68, 25) Source(32, 78) + SourceIndex(0) +2 >Emitted(68, 27) Source(32, 80) + SourceIndex(0) +3 >Emitted(68, 28) Source(32, 81) + SourceIndex(0) +4 >Emitted(68, 38) Source(32, 91) + SourceIndex(0) +5 >Emitted(68, 40) Source(32, 93) + SourceIndex(0) +6 >Emitted(68, 41) Source(32, 94) + SourceIndex(0) --- >>> // Two variants of qualifying a peer type 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1052,8 +1067,8 @@ sourceFile:typeResolution.ts > > 2 > // Two variants of qualifying a peer type -1->Emitted(54, 25) Source(34, 21) + SourceIndex(0) -2 >Emitted(54, 66) Source(34, 62) + SourceIndex(0) +1->Emitted(69, 25) Source(34, 21) + SourceIndex(0) +2 >Emitted(69, 66) Source(34, 62) + SourceIndex(0) --- >>> var b1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1066,10 +1081,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b1: ClassB 4 > ; -1 >Emitted(55, 25) Source(35, 21) + SourceIndex(0) -2 >Emitted(55, 29) Source(35, 25) + SourceIndex(0) -3 >Emitted(55, 31) Source(35, 35) + SourceIndex(0) -4 >Emitted(55, 32) Source(35, 36) + SourceIndex(0) +1 >Emitted(70, 25) Source(35, 21) + SourceIndex(0) +2 >Emitted(70, 29) Source(35, 25) + SourceIndex(0) +3 >Emitted(70, 31) Source(35, 35) + SourceIndex(0) +4 >Emitted(70, 32) Source(35, 36) + SourceIndex(0) --- >>> b1.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1084,12 +1099,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(56, 25) Source(35, 37) + SourceIndex(0) -2 >Emitted(56, 27) Source(35, 39) + SourceIndex(0) -3 >Emitted(56, 28) Source(35, 40) + SourceIndex(0) -4 >Emitted(56, 38) Source(35, 50) + SourceIndex(0) -5 >Emitted(56, 40) Source(35, 52) + SourceIndex(0) -6 >Emitted(56, 41) Source(35, 53) + SourceIndex(0) +1->Emitted(71, 25) Source(35, 37) + SourceIndex(0) +2 >Emitted(71, 27) Source(35, 39) + SourceIndex(0) +3 >Emitted(71, 28) Source(35, 40) + SourceIndex(0) +4 >Emitted(71, 38) Source(35, 50) + SourceIndex(0) +5 >Emitted(71, 40) Source(35, 52) + SourceIndex(0) +6 >Emitted(71, 41) Source(35, 53) + SourceIndex(0) --- >>> var b2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1102,10 +1117,10 @@ sourceFile:typeResolution.ts 2 > var 3 > b2: TopLevelModule1.SubModule1.SubSubModule1.ClassB 4 > ; -1 >Emitted(57, 25) Source(36, 21) + SourceIndex(0) -2 >Emitted(57, 29) Source(36, 25) + SourceIndex(0) -3 >Emitted(57, 31) Source(36, 76) + SourceIndex(0) -4 >Emitted(57, 32) Source(36, 77) + SourceIndex(0) +1 >Emitted(72, 25) Source(36, 21) + SourceIndex(0) +2 >Emitted(72, 29) Source(36, 25) + SourceIndex(0) +3 >Emitted(72, 31) Source(36, 76) + SourceIndex(0) +4 >Emitted(72, 32) Source(36, 77) + SourceIndex(0) --- >>> b2.BisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1121,12 +1136,12 @@ sourceFile:typeResolution.ts 4 > BisIn1_1_1 5 > () 6 > ; -1->Emitted(58, 25) Source(36, 78) + SourceIndex(0) -2 >Emitted(58, 27) Source(36, 80) + SourceIndex(0) -3 >Emitted(58, 28) Source(36, 81) + SourceIndex(0) -4 >Emitted(58, 38) Source(36, 91) + SourceIndex(0) -5 >Emitted(58, 40) Source(36, 93) + SourceIndex(0) -6 >Emitted(58, 41) Source(36, 94) + SourceIndex(0) +1->Emitted(73, 25) Source(36, 78) + SourceIndex(0) +2 >Emitted(73, 27) Source(36, 80) + SourceIndex(0) +3 >Emitted(73, 28) Source(36, 81) + SourceIndex(0) +4 >Emitted(73, 38) Source(36, 91) + SourceIndex(0) +5 >Emitted(73, 40) Source(36, 93) + SourceIndex(0) +6 >Emitted(73, 41) Source(36, 94) + SourceIndex(0) --- >>> // Type only accessible from the root 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1135,8 +1150,8 @@ sourceFile:typeResolution.ts > > 2 > // Type only accessible from the root -1->Emitted(59, 25) Source(38, 21) + SourceIndex(0) -2 >Emitted(59, 62) Source(38, 58) + SourceIndex(0) +1->Emitted(74, 25) Source(38, 21) + SourceIndex(0) +2 >Emitted(74, 62) Source(38, 58) + SourceIndex(0) --- >>> var c1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1149,10 +1164,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA 4 > ; -1 >Emitted(60, 25) Source(39, 21) + SourceIndex(0) -2 >Emitted(60, 29) Source(39, 25) + SourceIndex(0) -3 >Emitted(60, 31) Source(39, 76) + SourceIndex(0) -4 >Emitted(60, 32) Source(39, 77) + SourceIndex(0) +1 >Emitted(75, 25) Source(39, 21) + SourceIndex(0) +2 >Emitted(75, 29) Source(39, 25) + SourceIndex(0) +3 >Emitted(75, 31) Source(39, 76) + SourceIndex(0) +4 >Emitted(75, 32) Source(39, 77) + SourceIndex(0) --- >>> c1.AisIn1_2_2(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1167,12 +1182,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_2_2 5 > () 6 > ; -1->Emitted(61, 25) Source(39, 78) + SourceIndex(0) -2 >Emitted(61, 27) Source(39, 80) + SourceIndex(0) -3 >Emitted(61, 28) Source(39, 81) + SourceIndex(0) -4 >Emitted(61, 38) Source(39, 91) + SourceIndex(0) -5 >Emitted(61, 40) Source(39, 93) + SourceIndex(0) -6 >Emitted(61, 41) Source(39, 94) + SourceIndex(0) +1->Emitted(76, 25) Source(39, 78) + SourceIndex(0) +2 >Emitted(76, 27) Source(39, 80) + SourceIndex(0) +3 >Emitted(76, 28) Source(39, 81) + SourceIndex(0) +4 >Emitted(76, 38) Source(39, 91) + SourceIndex(0) +5 >Emitted(76, 40) Source(39, 93) + SourceIndex(0) +6 >Emitted(76, 41) Source(39, 94) + SourceIndex(0) --- >>> var c2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1185,10 +1200,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c2: TopLevelModule2.SubModule3.ClassA 4 > ; -1 >Emitted(62, 25) Source(40, 21) + SourceIndex(0) -2 >Emitted(62, 29) Source(40, 25) + SourceIndex(0) -3 >Emitted(62, 31) Source(40, 62) + SourceIndex(0) -4 >Emitted(62, 32) Source(40, 63) + SourceIndex(0) +1 >Emitted(77, 25) Source(40, 21) + SourceIndex(0) +2 >Emitted(77, 29) Source(40, 25) + SourceIndex(0) +3 >Emitted(77, 31) Source(40, 62) + SourceIndex(0) +4 >Emitted(77, 32) Source(40, 63) + SourceIndex(0) --- >>> c2.AisIn2_3(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1204,12 +1219,12 @@ sourceFile:typeResolution.ts 4 > AisIn2_3 5 > () 6 > ; -1->Emitted(63, 25) Source(40, 64) + SourceIndex(0) -2 >Emitted(63, 27) Source(40, 66) + SourceIndex(0) -3 >Emitted(63, 28) Source(40, 67) + SourceIndex(0) -4 >Emitted(63, 36) Source(40, 75) + SourceIndex(0) -5 >Emitted(63, 38) Source(40, 77) + SourceIndex(0) -6 >Emitted(63, 39) Source(40, 78) + SourceIndex(0) +1->Emitted(78, 25) Source(40, 64) + SourceIndex(0) +2 >Emitted(78, 27) Source(40, 66) + SourceIndex(0) +3 >Emitted(78, 28) Source(40, 67) + SourceIndex(0) +4 >Emitted(78, 36) Source(40, 75) + SourceIndex(0) +5 >Emitted(78, 38) Source(40, 77) + SourceIndex(0) +6 >Emitted(78, 39) Source(40, 78) + SourceIndex(0) --- >>> // Interface reference 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1218,8 +1233,8 @@ sourceFile:typeResolution.ts > > 2 > // Interface reference -1->Emitted(64, 25) Source(42, 21) + SourceIndex(0) -2 >Emitted(64, 47) Source(42, 43) + SourceIndex(0) +1->Emitted(79, 25) Source(42, 21) + SourceIndex(0) +2 >Emitted(79, 47) Source(42, 43) + SourceIndex(0) --- >>> var d1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1232,10 +1247,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d1: InterfaceX 4 > ; -1 >Emitted(65, 25) Source(43, 21) + SourceIndex(0) -2 >Emitted(65, 29) Source(43, 25) + SourceIndex(0) -3 >Emitted(65, 31) Source(43, 39) + SourceIndex(0) -4 >Emitted(65, 32) Source(43, 40) + SourceIndex(0) +1 >Emitted(80, 25) Source(43, 21) + SourceIndex(0) +2 >Emitted(80, 29) Source(43, 25) + SourceIndex(0) +3 >Emitted(80, 31) Source(43, 39) + SourceIndex(0) +4 >Emitted(80, 32) Source(43, 40) + SourceIndex(0) --- >>> d1.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1250,12 +1265,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(66, 25) Source(43, 41) + SourceIndex(0) -2 >Emitted(66, 27) Source(43, 43) + SourceIndex(0) -3 >Emitted(66, 28) Source(43, 44) + SourceIndex(0) -4 >Emitted(66, 38) Source(43, 54) + SourceIndex(0) -5 >Emitted(66, 40) Source(43, 56) + SourceIndex(0) -6 >Emitted(66, 41) Source(43, 57) + SourceIndex(0) +1->Emitted(81, 25) Source(43, 41) + SourceIndex(0) +2 >Emitted(81, 27) Source(43, 43) + SourceIndex(0) +3 >Emitted(81, 28) Source(43, 44) + SourceIndex(0) +4 >Emitted(81, 38) Source(43, 54) + SourceIndex(0) +5 >Emitted(81, 40) Source(43, 56) + SourceIndex(0) +6 >Emitted(81, 41) Source(43, 57) + SourceIndex(0) --- >>> var d2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1268,10 +1283,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d2: SubSubModule1.InterfaceX 4 > ; -1 >Emitted(67, 25) Source(44, 21) + SourceIndex(0) -2 >Emitted(67, 29) Source(44, 25) + SourceIndex(0) -3 >Emitted(67, 31) Source(44, 53) + SourceIndex(0) -4 >Emitted(67, 32) Source(44, 54) + SourceIndex(0) +1 >Emitted(82, 25) Source(44, 21) + SourceIndex(0) +2 >Emitted(82, 29) Source(44, 25) + SourceIndex(0) +3 >Emitted(82, 31) Source(44, 53) + SourceIndex(0) +4 >Emitted(82, 32) Source(44, 54) + SourceIndex(0) --- >>> d2.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1286,31 +1301,32 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(68, 25) Source(44, 55) + SourceIndex(0) -2 >Emitted(68, 27) Source(44, 57) + SourceIndex(0) -3 >Emitted(68, 28) Source(44, 58) + SourceIndex(0) -4 >Emitted(68, 38) Source(44, 68) + SourceIndex(0) -5 >Emitted(68, 40) Source(44, 70) + SourceIndex(0) -6 >Emitted(68, 41) Source(44, 71) + SourceIndex(0) +1->Emitted(83, 25) Source(44, 55) + SourceIndex(0) +2 >Emitted(83, 27) Source(44, 57) + SourceIndex(0) +3 >Emitted(83, 28) Source(44, 58) + SourceIndex(0) +4 >Emitted(83, 38) Source(44, 68) + SourceIndex(0) +5 >Emitted(83, 40) Source(44, 70) + SourceIndex(0) +6 >Emitted(83, 41) Source(44, 71) + SourceIndex(0) --- >>> }; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 > } -1 >Emitted(69, 21) Source(45, 17) + SourceIndex(0) -2 >Emitted(69, 22) Source(45, 18) + SourceIndex(0) +1 >Emitted(84, 21) Source(45, 17) + SourceIndex(0) +2 >Emitted(84, 22) Source(45, 18) + SourceIndex(0) --- +>>> __names(ClassB.prototype, ["BisIn1_1_1"]); >>> return ClassB; 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1-> > 2 > } -1->Emitted(70, 21) Source(46, 13) + SourceIndex(0) -2 >Emitted(70, 34) Source(46, 14) + SourceIndex(0) +1->Emitted(86, 21) Source(46, 13) + SourceIndex(0) +2 >Emitted(86, 34) Source(46, 14) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -1344,10 +1360,10 @@ sourceFile:typeResolution.ts > var d2: SubSubModule1.InterfaceX; d2.XisIn1_1_1(); > } > } -1 >Emitted(71, 17) Source(46, 13) + SourceIndex(0) -2 >Emitted(71, 18) Source(46, 14) + SourceIndex(0) -3 >Emitted(71, 18) Source(24, 13) + SourceIndex(0) -4 >Emitted(71, 22) Source(46, 14) + SourceIndex(0) +1 >Emitted(87, 17) Source(46, 13) + SourceIndex(0) +2 >Emitted(87, 18) Source(46, 14) + SourceIndex(0) +3 >Emitted(87, 18) Source(24, 13) + SourceIndex(0) +4 >Emitted(87, 22) Source(46, 14) + SourceIndex(0) --- >>> SubSubModule1.ClassB = ClassB; 1->^^^^^^^^^^^^^^^^ @@ -1381,10 +1397,10 @@ sourceFile:typeResolution.ts > } > } 4 > -1->Emitted(72, 17) Source(24, 26) + SourceIndex(0) -2 >Emitted(72, 37) Source(24, 32) + SourceIndex(0) -3 >Emitted(72, 46) Source(46, 14) + SourceIndex(0) -4 >Emitted(72, 47) Source(46, 14) + SourceIndex(0) +1->Emitted(88, 17) Source(24, 26) + SourceIndex(0) +2 >Emitted(88, 37) Source(24, 32) + SourceIndex(0) +3 >Emitted(88, 46) Source(46, 14) + SourceIndex(0) +4 >Emitted(88, 47) Source(46, 14) + SourceIndex(0) --- >>> var NonExportedClassQ = (function () { 1->^^^^^^^^^^^^^^^^ @@ -1392,21 +1408,21 @@ sourceFile:typeResolution.ts 1-> > export interface InterfaceX { XisIn1_1_1(); } > -1->Emitted(73, 17) Source(48, 13) + SourceIndex(0) +1->Emitted(89, 17) Source(48, 13) + SourceIndex(0) --- >>> function NonExportedClassQ() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^-> 1->class NonExportedClassQ { > -1->Emitted(74, 21) Source(49, 17) + SourceIndex(0) +1->Emitted(90, 21) Source(49, 17) + SourceIndex(0) --- >>> function QQ() { 1->^^^^^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->constructor() { > -1->Emitted(75, 25) Source(50, 21) + SourceIndex(0) +1->Emitted(91, 25) Source(50, 21) + SourceIndex(0) --- >>> /* Sampling of stuff from AisIn1_1_1 */ 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1414,8 +1430,8 @@ sourceFile:typeResolution.ts 1->function QQ() { > 2 > /* Sampling of stuff from AisIn1_1_1 */ -1->Emitted(76, 29) Source(51, 25) + SourceIndex(0) -2 >Emitted(76, 68) Source(51, 64) + SourceIndex(0) +1->Emitted(92, 29) Source(51, 25) + SourceIndex(0) +2 >Emitted(92, 68) Source(51, 64) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1428,10 +1444,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(77, 29) Source(52, 25) + SourceIndex(0) -2 >Emitted(77, 33) Source(52, 29) + SourceIndex(0) -3 >Emitted(77, 35) Source(52, 80) + SourceIndex(0) -4 >Emitted(77, 36) Source(52, 81) + SourceIndex(0) +1 >Emitted(93, 29) Source(52, 25) + SourceIndex(0) +2 >Emitted(93, 33) Source(52, 29) + SourceIndex(0) +3 >Emitted(93, 35) Source(52, 80) + SourceIndex(0) +4 >Emitted(93, 36) Source(52, 81) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1446,12 +1462,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(78, 29) Source(52, 82) + SourceIndex(0) -2 >Emitted(78, 31) Source(52, 84) + SourceIndex(0) -3 >Emitted(78, 32) Source(52, 85) + SourceIndex(0) -4 >Emitted(78, 42) Source(52, 95) + SourceIndex(0) -5 >Emitted(78, 44) Source(52, 97) + SourceIndex(0) -6 >Emitted(78, 45) Source(52, 98) + SourceIndex(0) +1->Emitted(94, 29) Source(52, 82) + SourceIndex(0) +2 >Emitted(94, 31) Source(52, 84) + SourceIndex(0) +3 >Emitted(94, 32) Source(52, 85) + SourceIndex(0) +4 >Emitted(94, 42) Source(52, 95) + SourceIndex(0) +5 >Emitted(94, 44) Source(52, 97) + SourceIndex(0) +6 >Emitted(94, 45) Source(52, 98) + SourceIndex(0) --- >>> var c1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1464,10 +1480,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c1: TopLevelModule1.SubModule2.SubSubModule2.ClassA 4 > ; -1 >Emitted(79, 29) Source(53, 25) + SourceIndex(0) -2 >Emitted(79, 33) Source(53, 29) + SourceIndex(0) -3 >Emitted(79, 35) Source(53, 80) + SourceIndex(0) -4 >Emitted(79, 36) Source(53, 81) + SourceIndex(0) +1 >Emitted(95, 29) Source(53, 25) + SourceIndex(0) +2 >Emitted(95, 33) Source(53, 29) + SourceIndex(0) +3 >Emitted(95, 35) Source(53, 80) + SourceIndex(0) +4 >Emitted(95, 36) Source(53, 81) + SourceIndex(0) --- >>> c1.AisIn1_2_2(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1482,12 +1498,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_2_2 5 > () 6 > ; -1->Emitted(80, 29) Source(53, 82) + SourceIndex(0) -2 >Emitted(80, 31) Source(53, 84) + SourceIndex(0) -3 >Emitted(80, 32) Source(53, 85) + SourceIndex(0) -4 >Emitted(80, 42) Source(53, 95) + SourceIndex(0) -5 >Emitted(80, 44) Source(53, 97) + SourceIndex(0) -6 >Emitted(80, 45) Source(53, 98) + SourceIndex(0) +1->Emitted(96, 29) Source(53, 82) + SourceIndex(0) +2 >Emitted(96, 31) Source(53, 84) + SourceIndex(0) +3 >Emitted(96, 32) Source(53, 85) + SourceIndex(0) +4 >Emitted(96, 42) Source(53, 95) + SourceIndex(0) +5 >Emitted(96, 44) Source(53, 97) + SourceIndex(0) +6 >Emitted(96, 45) Source(53, 98) + SourceIndex(0) --- >>> var d1; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1500,10 +1516,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d1: InterfaceX 4 > ; -1 >Emitted(81, 29) Source(54, 25) + SourceIndex(0) -2 >Emitted(81, 33) Source(54, 29) + SourceIndex(0) -3 >Emitted(81, 35) Source(54, 43) + SourceIndex(0) -4 >Emitted(81, 36) Source(54, 44) + SourceIndex(0) +1 >Emitted(97, 29) Source(54, 25) + SourceIndex(0) +2 >Emitted(97, 33) Source(54, 29) + SourceIndex(0) +3 >Emitted(97, 35) Source(54, 43) + SourceIndex(0) +4 >Emitted(97, 36) Source(54, 44) + SourceIndex(0) --- >>> d1.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1518,12 +1534,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(82, 29) Source(54, 45) + SourceIndex(0) -2 >Emitted(82, 31) Source(54, 47) + SourceIndex(0) -3 >Emitted(82, 32) Source(54, 48) + SourceIndex(0) -4 >Emitted(82, 42) Source(54, 58) + SourceIndex(0) -5 >Emitted(82, 44) Source(54, 60) + SourceIndex(0) -6 >Emitted(82, 45) Source(54, 61) + SourceIndex(0) +1->Emitted(98, 29) Source(54, 45) + SourceIndex(0) +2 >Emitted(98, 31) Source(54, 47) + SourceIndex(0) +3 >Emitted(98, 32) Source(54, 48) + SourceIndex(0) +4 >Emitted(98, 42) Source(54, 58) + SourceIndex(0) +5 >Emitted(98, 44) Source(54, 60) + SourceIndex(0) +6 >Emitted(98, 45) Source(54, 61) + SourceIndex(0) --- >>> var c2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1536,10 +1552,10 @@ sourceFile:typeResolution.ts 2 > var 3 > c2: TopLevelModule2.SubModule3.ClassA 4 > ; -1 >Emitted(83, 29) Source(55, 25) + SourceIndex(0) -2 >Emitted(83, 33) Source(55, 29) + SourceIndex(0) -3 >Emitted(83, 35) Source(55, 66) + SourceIndex(0) -4 >Emitted(83, 36) Source(55, 67) + SourceIndex(0) +1 >Emitted(99, 29) Source(55, 25) + SourceIndex(0) +2 >Emitted(99, 33) Source(55, 29) + SourceIndex(0) +3 >Emitted(99, 35) Source(55, 66) + SourceIndex(0) +4 >Emitted(99, 36) Source(55, 67) + SourceIndex(0) --- >>> c2.AisIn2_3(); 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1554,12 +1570,12 @@ sourceFile:typeResolution.ts 4 > AisIn2_3 5 > () 6 > ; -1->Emitted(84, 29) Source(55, 68) + SourceIndex(0) -2 >Emitted(84, 31) Source(55, 70) + SourceIndex(0) -3 >Emitted(84, 32) Source(55, 71) + SourceIndex(0) -4 >Emitted(84, 40) Source(55, 79) + SourceIndex(0) -5 >Emitted(84, 42) Source(55, 81) + SourceIndex(0) -6 >Emitted(84, 43) Source(55, 82) + SourceIndex(0) +1->Emitted(100, 29) Source(55, 68) + SourceIndex(0) +2 >Emitted(100, 31) Source(55, 70) + SourceIndex(0) +3 >Emitted(100, 32) Source(55, 71) + SourceIndex(0) +4 >Emitted(100, 40) Source(55, 79) + SourceIndex(0) +5 >Emitted(100, 42) Source(55, 81) + SourceIndex(0) +6 >Emitted(100, 43) Source(55, 82) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1567,8 +1583,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(85, 25) Source(56, 21) + SourceIndex(0) -2 >Emitted(85, 26) Source(56, 22) + SourceIndex(0) +1 >Emitted(101, 25) Source(56, 21) + SourceIndex(0) +2 >Emitted(101, 26) Source(56, 22) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1577,8 +1593,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(86, 21) Source(57, 17) + SourceIndex(0) -2 >Emitted(86, 22) Source(57, 18) + SourceIndex(0) +1 >Emitted(102, 21) Source(57, 17) + SourceIndex(0) +2 >Emitted(102, 22) Source(57, 18) + SourceIndex(0) --- >>> return NonExportedClassQ; 1->^^^^^^^^^^^^^^^^^^^^ @@ -1586,8 +1602,8 @@ sourceFile:typeResolution.ts 1-> > 2 > } -1->Emitted(87, 21) Source(58, 13) + SourceIndex(0) -2 >Emitted(87, 45) Source(58, 14) + SourceIndex(0) +1->Emitted(103, 21) Source(58, 13) + SourceIndex(0) +2 >Emitted(103, 45) Source(58, 14) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -1609,10 +1625,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(88, 17) Source(58, 13) + SourceIndex(0) -2 >Emitted(88, 18) Source(58, 14) + SourceIndex(0) -3 >Emitted(88, 18) Source(48, 13) + SourceIndex(0) -4 >Emitted(88, 22) Source(58, 14) + SourceIndex(0) +1 >Emitted(104, 17) Source(58, 13) + SourceIndex(0) +2 >Emitted(104, 18) Source(58, 14) + SourceIndex(0) +3 >Emitted(104, 18) Source(48, 13) + SourceIndex(0) +4 >Emitted(104, 22) Source(58, 14) + SourceIndex(0) --- >>> })(SubSubModule1 = SubModule1.SubSubModule1 || (SubModule1.SubSubModule1 = {})); 1->^^^^^^^^^^^^ @@ -1690,15 +1706,15 @@ sourceFile:typeResolution.ts > } > } > } -1->Emitted(89, 13) Source(59, 9) + SourceIndex(0) -2 >Emitted(89, 14) Source(59, 10) + SourceIndex(0) -3 >Emitted(89, 16) Source(3, 23) + SourceIndex(0) -4 >Emitted(89, 29) Source(3, 36) + SourceIndex(0) -5 >Emitted(89, 32) Source(3, 23) + SourceIndex(0) -6 >Emitted(89, 56) Source(3, 36) + SourceIndex(0) -7 >Emitted(89, 61) Source(3, 23) + SourceIndex(0) -8 >Emitted(89, 85) Source(3, 36) + SourceIndex(0) -9 >Emitted(89, 93) Source(59, 10) + SourceIndex(0) +1->Emitted(105, 13) Source(59, 9) + SourceIndex(0) +2 >Emitted(105, 14) Source(59, 10) + SourceIndex(0) +3 >Emitted(105, 16) Source(3, 23) + SourceIndex(0) +4 >Emitted(105, 29) Source(3, 36) + SourceIndex(0) +5 >Emitted(105, 32) Source(3, 23) + SourceIndex(0) +6 >Emitted(105, 56) Source(3, 36) + SourceIndex(0) +7 >Emitted(105, 61) Source(3, 23) + SourceIndex(0) +8 >Emitted(105, 85) Source(3, 36) + SourceIndex(0) +9 >Emitted(105, 93) Source(59, 10) + SourceIndex(0) --- >>> // Should have no effect on S1.SS1.ClassA above because it is not exported 1 >^^^^^^^^^^^^ @@ -1707,29 +1723,29 @@ sourceFile:typeResolution.ts > > 2 > // Should have no effect on S1.SS1.ClassA above because it is not exported -1 >Emitted(90, 13) Source(61, 9) + SourceIndex(0) -2 >Emitted(90, 87) Source(61, 83) + SourceIndex(0) +1 >Emitted(106, 13) Source(61, 9) + SourceIndex(0) +2 >Emitted(106, 87) Source(61, 83) + SourceIndex(0) --- >>> var ClassA = (function () { 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(91, 13) Source(62, 9) + SourceIndex(0) +1 >Emitted(107, 13) Source(62, 9) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^-> 1->class ClassA { > -1->Emitted(92, 17) Source(63, 13) + SourceIndex(0) +1->Emitted(108, 17) Source(63, 13) + SourceIndex(0) --- >>> function AA() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^-> 1->constructor() { > -1->Emitted(93, 21) Source(64, 17) + SourceIndex(0) +1->Emitted(109, 21) Source(64, 17) + SourceIndex(0) --- >>> var a2; 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1742,10 +1758,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a2: SubSubModule1.ClassA 4 > ; -1->Emitted(94, 25) Source(65, 21) + SourceIndex(0) -2 >Emitted(94, 29) Source(65, 25) + SourceIndex(0) -3 >Emitted(94, 31) Source(65, 49) + SourceIndex(0) -4 >Emitted(94, 32) Source(65, 50) + SourceIndex(0) +1->Emitted(110, 25) Source(65, 21) + SourceIndex(0) +2 >Emitted(110, 29) Source(65, 25) + SourceIndex(0) +3 >Emitted(110, 31) Source(65, 49) + SourceIndex(0) +4 >Emitted(110, 32) Source(65, 50) + SourceIndex(0) --- >>> a2.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1760,12 +1776,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(95, 25) Source(65, 51) + SourceIndex(0) -2 >Emitted(95, 27) Source(65, 53) + SourceIndex(0) -3 >Emitted(95, 28) Source(65, 54) + SourceIndex(0) -4 >Emitted(95, 38) Source(65, 64) + SourceIndex(0) -5 >Emitted(95, 40) Source(65, 66) + SourceIndex(0) -6 >Emitted(95, 41) Source(65, 67) + SourceIndex(0) +1->Emitted(111, 25) Source(65, 51) + SourceIndex(0) +2 >Emitted(111, 27) Source(65, 53) + SourceIndex(0) +3 >Emitted(111, 28) Source(65, 54) + SourceIndex(0) +4 >Emitted(111, 38) Source(65, 64) + SourceIndex(0) +5 >Emitted(111, 40) Source(65, 66) + SourceIndex(0) +6 >Emitted(111, 41) Source(65, 67) + SourceIndex(0) --- >>> var a3; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1778,10 +1794,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a3: SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(96, 25) Source(66, 21) + SourceIndex(0) -2 >Emitted(96, 29) Source(66, 25) + SourceIndex(0) -3 >Emitted(96, 31) Source(66, 60) + SourceIndex(0) -4 >Emitted(96, 32) Source(66, 61) + SourceIndex(0) +1 >Emitted(112, 25) Source(66, 21) + SourceIndex(0) +2 >Emitted(112, 29) Source(66, 25) + SourceIndex(0) +3 >Emitted(112, 31) Source(66, 60) + SourceIndex(0) +4 >Emitted(112, 32) Source(66, 61) + SourceIndex(0) --- >>> a3.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1796,12 +1812,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(97, 25) Source(66, 62) + SourceIndex(0) -2 >Emitted(97, 27) Source(66, 64) + SourceIndex(0) -3 >Emitted(97, 28) Source(66, 65) + SourceIndex(0) -4 >Emitted(97, 38) Source(66, 75) + SourceIndex(0) -5 >Emitted(97, 40) Source(66, 77) + SourceIndex(0) -6 >Emitted(97, 41) Source(66, 78) + SourceIndex(0) +1->Emitted(113, 25) Source(66, 62) + SourceIndex(0) +2 >Emitted(113, 27) Source(66, 64) + SourceIndex(0) +3 >Emitted(113, 28) Source(66, 65) + SourceIndex(0) +4 >Emitted(113, 38) Source(66, 75) + SourceIndex(0) +5 >Emitted(113, 40) Source(66, 77) + SourceIndex(0) +6 >Emitted(113, 41) Source(66, 78) + SourceIndex(0) --- >>> var a4; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1814,10 +1830,10 @@ sourceFile:typeResolution.ts 2 > var 3 > a4: TopLevelModule1.SubModule1.SubSubModule1.ClassA 4 > ; -1 >Emitted(98, 25) Source(67, 21) + SourceIndex(0) -2 >Emitted(98, 29) Source(67, 25) + SourceIndex(0) -3 >Emitted(98, 31) Source(67, 76) + SourceIndex(0) -4 >Emitted(98, 32) Source(67, 77) + SourceIndex(0) +1 >Emitted(114, 25) Source(67, 21) + SourceIndex(0) +2 >Emitted(114, 29) Source(67, 25) + SourceIndex(0) +3 >Emitted(114, 31) Source(67, 76) + SourceIndex(0) +4 >Emitted(114, 32) Source(67, 77) + SourceIndex(0) --- >>> a4.AisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1833,12 +1849,12 @@ sourceFile:typeResolution.ts 4 > AisIn1_1_1 5 > () 6 > ; -1->Emitted(99, 25) Source(67, 78) + SourceIndex(0) -2 >Emitted(99, 27) Source(67, 80) + SourceIndex(0) -3 >Emitted(99, 28) Source(67, 81) + SourceIndex(0) -4 >Emitted(99, 38) Source(67, 91) + SourceIndex(0) -5 >Emitted(99, 40) Source(67, 93) + SourceIndex(0) -6 >Emitted(99, 41) Source(67, 94) + SourceIndex(0) +1->Emitted(115, 25) Source(67, 78) + SourceIndex(0) +2 >Emitted(115, 27) Source(67, 80) + SourceIndex(0) +3 >Emitted(115, 28) Source(67, 81) + SourceIndex(0) +4 >Emitted(115, 38) Source(67, 91) + SourceIndex(0) +5 >Emitted(115, 40) Source(67, 93) + SourceIndex(0) +6 >Emitted(115, 41) Source(67, 94) + SourceIndex(0) --- >>> // Interface reference 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1847,8 +1863,8 @@ sourceFile:typeResolution.ts > > 2 > // Interface reference -1->Emitted(100, 25) Source(69, 21) + SourceIndex(0) -2 >Emitted(100, 47) Source(69, 43) + SourceIndex(0) +1->Emitted(116, 25) Source(69, 21) + SourceIndex(0) +2 >Emitted(116, 47) Source(69, 43) + SourceIndex(0) --- >>> var d2; 1 >^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1861,10 +1877,10 @@ sourceFile:typeResolution.ts 2 > var 3 > d2: SubSubModule1.InterfaceX 4 > ; -1 >Emitted(101, 25) Source(70, 21) + SourceIndex(0) -2 >Emitted(101, 29) Source(70, 25) + SourceIndex(0) -3 >Emitted(101, 31) Source(70, 53) + SourceIndex(0) -4 >Emitted(101, 32) Source(70, 54) + SourceIndex(0) +1 >Emitted(117, 25) Source(70, 21) + SourceIndex(0) +2 >Emitted(117, 29) Source(70, 25) + SourceIndex(0) +3 >Emitted(117, 31) Source(70, 53) + SourceIndex(0) +4 >Emitted(117, 32) Source(70, 54) + SourceIndex(0) --- >>> d2.XisIn1_1_1(); 1->^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1879,12 +1895,12 @@ sourceFile:typeResolution.ts 4 > XisIn1_1_1 5 > () 6 > ; -1->Emitted(102, 25) Source(70, 55) + SourceIndex(0) -2 >Emitted(102, 27) Source(70, 57) + SourceIndex(0) -3 >Emitted(102, 28) Source(70, 58) + SourceIndex(0) -4 >Emitted(102, 38) Source(70, 68) + SourceIndex(0) -5 >Emitted(102, 40) Source(70, 70) + SourceIndex(0) -6 >Emitted(102, 41) Source(70, 71) + SourceIndex(0) +1->Emitted(118, 25) Source(70, 55) + SourceIndex(0) +2 >Emitted(118, 27) Source(70, 57) + SourceIndex(0) +3 >Emitted(118, 28) Source(70, 58) + SourceIndex(0) +4 >Emitted(118, 38) Source(70, 68) + SourceIndex(0) +5 >Emitted(118, 40) Source(70, 70) + SourceIndex(0) +6 >Emitted(118, 41) Source(70, 71) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^^^^^ @@ -1892,8 +1908,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(103, 21) Source(71, 17) + SourceIndex(0) -2 >Emitted(103, 22) Source(71, 18) + SourceIndex(0) +1 >Emitted(119, 21) Source(71, 17) + SourceIndex(0) +2 >Emitted(119, 22) Source(71, 18) + SourceIndex(0) --- >>> } 1 >^^^^^^^^^^^^^^^^ @@ -1902,8 +1918,8 @@ sourceFile:typeResolution.ts 1 > > 2 > } -1 >Emitted(104, 17) Source(72, 13) + SourceIndex(0) -2 >Emitted(104, 18) Source(72, 14) + SourceIndex(0) +1 >Emitted(120, 17) Source(72, 13) + SourceIndex(0) +2 >Emitted(120, 18) Source(72, 14) + SourceIndex(0) --- >>> return ClassA; 1->^^^^^^^^^^^^^^^^ @@ -1911,8 +1927,8 @@ sourceFile:typeResolution.ts 1-> > 2 > } -1->Emitted(105, 17) Source(73, 9) + SourceIndex(0) -2 >Emitted(105, 30) Source(73, 10) + SourceIndex(0) +1->Emitted(121, 17) Source(73, 9) + SourceIndex(0) +2 >Emitted(121, 30) Source(73, 10) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -1935,10 +1951,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(106, 13) Source(73, 9) + SourceIndex(0) -2 >Emitted(106, 14) Source(73, 10) + SourceIndex(0) -3 >Emitted(106, 14) Source(62, 9) + SourceIndex(0) -4 >Emitted(106, 18) Source(73, 10) + SourceIndex(0) +1 >Emitted(122, 13) Source(73, 9) + SourceIndex(0) +2 >Emitted(122, 14) Source(73, 10) + SourceIndex(0) +3 >Emitted(122, 14) Source(62, 9) + SourceIndex(0) +4 >Emitted(122, 18) Source(73, 10) + SourceIndex(0) --- >>> })(SubModule1 = TopLevelModule1.SubModule1 || (TopLevelModule1.SubModule1 = {})); 1->^^^^^^^^ @@ -2032,15 +2048,15 @@ sourceFile:typeResolution.ts > } > } > } -1->Emitted(107, 9) Source(74, 5) + SourceIndex(0) -2 >Emitted(107, 10) Source(74, 6) + SourceIndex(0) -3 >Emitted(107, 12) Source(2, 19) + SourceIndex(0) -4 >Emitted(107, 22) Source(2, 29) + SourceIndex(0) -5 >Emitted(107, 25) Source(2, 19) + SourceIndex(0) -6 >Emitted(107, 51) Source(2, 29) + SourceIndex(0) -7 >Emitted(107, 56) Source(2, 19) + SourceIndex(0) -8 >Emitted(107, 82) Source(2, 29) + SourceIndex(0) -9 >Emitted(107, 90) Source(74, 6) + SourceIndex(0) +1->Emitted(123, 9) Source(74, 5) + SourceIndex(0) +2 >Emitted(123, 10) Source(74, 6) + SourceIndex(0) +3 >Emitted(123, 12) Source(2, 19) + SourceIndex(0) +4 >Emitted(123, 22) Source(2, 29) + SourceIndex(0) +5 >Emitted(123, 25) Source(2, 19) + SourceIndex(0) +6 >Emitted(123, 51) Source(2, 29) + SourceIndex(0) +7 >Emitted(123, 56) Source(2, 19) + SourceIndex(0) +8 >Emitted(123, 82) Source(2, 29) + SourceIndex(0) +9 >Emitted(123, 90) Source(74, 6) + SourceIndex(0) --- >>> var SubModule2; 1 >^^^^^^^^ @@ -2065,10 +2081,10 @@ sourceFile:typeResolution.ts > > export interface InterfaceY { YisIn1_2(); } > } -1 >Emitted(108, 9) Source(76, 5) + SourceIndex(0) -2 >Emitted(108, 13) Source(76, 19) + SourceIndex(0) -3 >Emitted(108, 23) Source(76, 29) + SourceIndex(0) -4 >Emitted(108, 24) Source(87, 6) + SourceIndex(0) +1 >Emitted(124, 9) Source(76, 5) + SourceIndex(0) +2 >Emitted(124, 13) Source(76, 19) + SourceIndex(0) +3 >Emitted(124, 23) Source(76, 29) + SourceIndex(0) +4 >Emitted(124, 24) Source(87, 6) + SourceIndex(0) --- >>> (function (SubModule2) { 1->^^^^^^^^ @@ -2078,9 +2094,9 @@ sourceFile:typeResolution.ts 1-> 2 > export module 3 > SubModule2 -1->Emitted(109, 9) Source(76, 5) + SourceIndex(0) -2 >Emitted(109, 20) Source(76, 19) + SourceIndex(0) -3 >Emitted(109, 30) Source(76, 29) + SourceIndex(0) +1->Emitted(125, 9) Source(76, 5) + SourceIndex(0) +2 >Emitted(125, 20) Source(76, 19) + SourceIndex(0) +3 >Emitted(125, 30) Source(76, 29) + SourceIndex(0) --- >>> var SubSubModule2; 1->^^^^^^^^^^^^ @@ -2100,10 +2116,10 @@ sourceFile:typeResolution.ts > export interface InterfaceY { YisIn1_2_2(); } > interface NonExportedInterfaceQ { } > } -1->Emitted(110, 13) Source(77, 9) + SourceIndex(0) -2 >Emitted(110, 17) Source(77, 23) + SourceIndex(0) -3 >Emitted(110, 30) Source(77, 36) + SourceIndex(0) -4 >Emitted(110, 31) Source(84, 10) + SourceIndex(0) +1->Emitted(126, 13) Source(77, 9) + SourceIndex(0) +2 >Emitted(126, 17) Source(77, 23) + SourceIndex(0) +3 >Emitted(126, 30) Source(77, 36) + SourceIndex(0) +4 >Emitted(126, 31) Source(84, 10) + SourceIndex(0) --- >>> (function (SubSubModule2) { 1->^^^^^^^^^^^^ @@ -2113,9 +2129,9 @@ sourceFile:typeResolution.ts 1-> 2 > export module 3 > SubSubModule2 -1->Emitted(111, 13) Source(77, 9) + SourceIndex(0) -2 >Emitted(111, 24) Source(77, 23) + SourceIndex(0) -3 >Emitted(111, 37) Source(77, 36) + SourceIndex(0) +1->Emitted(127, 13) Source(77, 9) + SourceIndex(0) +2 >Emitted(127, 24) Source(77, 23) + SourceIndex(0) +3 >Emitted(127, 37) Source(77, 36) + SourceIndex(0) --- >>> // No code here since these are the mirror of the above calls 1->^^^^^^^^^^^^^^^^ @@ -2123,21 +2139,21 @@ sourceFile:typeResolution.ts 1-> { > 2 > // No code here since these are the mirror of the above calls -1->Emitted(112, 17) Source(78, 13) + SourceIndex(0) -2 >Emitted(112, 78) Source(78, 74) + SourceIndex(0) +1->Emitted(128, 17) Source(78, 13) + SourceIndex(0) +2 >Emitted(128, 78) Source(78, 74) + SourceIndex(0) --- >>> var ClassA = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(113, 17) Source(79, 13) + SourceIndex(0) +1 >Emitted(129, 17) Source(79, 13) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(114, 21) Source(79, 13) + SourceIndex(0) +1->Emitted(130, 21) Source(79, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -2145,8 +2161,8 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->export class ClassA { public AisIn1_2_2() { } 2 > } -1->Emitted(115, 21) Source(79, 59) + SourceIndex(0) -2 >Emitted(115, 22) Source(79, 60) + SourceIndex(0) +1->Emitted(131, 21) Source(79, 59) + SourceIndex(0) +2 >Emitted(131, 22) Source(79, 60) + SourceIndex(0) --- >>> ClassA.prototype.AisIn1_2_2 = function () { }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -2159,19 +2175,20 @@ sourceFile:typeResolution.ts 3 > 4 > public AisIn1_2_2() { 5 > } -1->Emitted(116, 21) Source(79, 42) + SourceIndex(0) -2 >Emitted(116, 48) Source(79, 52) + SourceIndex(0) -3 >Emitted(116, 51) Source(79, 35) + SourceIndex(0) -4 >Emitted(116, 65) Source(79, 57) + SourceIndex(0) -5 >Emitted(116, 66) Source(79, 58) + SourceIndex(0) +1->Emitted(132, 21) Source(79, 42) + SourceIndex(0) +2 >Emitted(132, 48) Source(79, 52) + SourceIndex(0) +3 >Emitted(132, 51) Source(79, 35) + SourceIndex(0) +4 >Emitted(132, 65) Source(79, 57) + SourceIndex(0) +5 >Emitted(132, 66) Source(79, 58) + SourceIndex(0) --- +>>> __names(ClassA.prototype, ["AisIn1_2_2"]); >>> return ClassA; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(117, 21) Source(79, 59) + SourceIndex(0) -2 >Emitted(117, 34) Source(79, 60) + SourceIndex(0) +1 >Emitted(134, 21) Source(79, 59) + SourceIndex(0) +2 >Emitted(134, 34) Source(79, 60) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -2183,10 +2200,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassA { public AisIn1_2_2() { } } -1 >Emitted(118, 17) Source(79, 59) + SourceIndex(0) -2 >Emitted(118, 18) Source(79, 60) + SourceIndex(0) -3 >Emitted(118, 18) Source(79, 13) + SourceIndex(0) -4 >Emitted(118, 22) Source(79, 60) + SourceIndex(0) +1 >Emitted(135, 17) Source(79, 59) + SourceIndex(0) +2 >Emitted(135, 18) Source(79, 60) + SourceIndex(0) +3 >Emitted(135, 18) Source(79, 13) + SourceIndex(0) +4 >Emitted(135, 22) Source(79, 60) + SourceIndex(0) --- >>> SubSubModule2.ClassA = ClassA; 1->^^^^^^^^^^^^^^^^ @@ -2197,23 +2214,23 @@ sourceFile:typeResolution.ts 2 > ClassA 3 > { public AisIn1_2_2() { } } 4 > -1->Emitted(119, 17) Source(79, 26) + SourceIndex(0) -2 >Emitted(119, 37) Source(79, 32) + SourceIndex(0) -3 >Emitted(119, 46) Source(79, 60) + SourceIndex(0) -4 >Emitted(119, 47) Source(79, 60) + SourceIndex(0) +1->Emitted(136, 17) Source(79, 26) + SourceIndex(0) +2 >Emitted(136, 37) Source(79, 32) + SourceIndex(0) +3 >Emitted(136, 46) Source(79, 60) + SourceIndex(0) +4 >Emitted(136, 47) Source(79, 60) + SourceIndex(0) --- >>> var ClassB = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(120, 17) Source(80, 13) + SourceIndex(0) +1 >Emitted(137, 17) Source(80, 13) + SourceIndex(0) --- >>> function ClassB() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(121, 21) Source(80, 13) + SourceIndex(0) +1->Emitted(138, 21) Source(80, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -2221,8 +2238,8 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->export class ClassB { public BisIn1_2_2() { } 2 > } -1->Emitted(122, 21) Source(80, 59) + SourceIndex(0) -2 >Emitted(122, 22) Source(80, 60) + SourceIndex(0) +1->Emitted(139, 21) Source(80, 59) + SourceIndex(0) +2 >Emitted(139, 22) Source(80, 60) + SourceIndex(0) --- >>> ClassB.prototype.BisIn1_2_2 = function () { }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -2235,19 +2252,20 @@ sourceFile:typeResolution.ts 3 > 4 > public BisIn1_2_2() { 5 > } -1->Emitted(123, 21) Source(80, 42) + SourceIndex(0) -2 >Emitted(123, 48) Source(80, 52) + SourceIndex(0) -3 >Emitted(123, 51) Source(80, 35) + SourceIndex(0) -4 >Emitted(123, 65) Source(80, 57) + SourceIndex(0) -5 >Emitted(123, 66) Source(80, 58) + SourceIndex(0) +1->Emitted(140, 21) Source(80, 42) + SourceIndex(0) +2 >Emitted(140, 48) Source(80, 52) + SourceIndex(0) +3 >Emitted(140, 51) Source(80, 35) + SourceIndex(0) +4 >Emitted(140, 65) Source(80, 57) + SourceIndex(0) +5 >Emitted(140, 66) Source(80, 58) + SourceIndex(0) --- +>>> __names(ClassB.prototype, ["BisIn1_2_2"]); >>> return ClassB; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(124, 21) Source(80, 59) + SourceIndex(0) -2 >Emitted(124, 34) Source(80, 60) + SourceIndex(0) +1 >Emitted(142, 21) Source(80, 59) + SourceIndex(0) +2 >Emitted(142, 34) Source(80, 60) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -2259,10 +2277,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassB { public BisIn1_2_2() { } } -1 >Emitted(125, 17) Source(80, 59) + SourceIndex(0) -2 >Emitted(125, 18) Source(80, 60) + SourceIndex(0) -3 >Emitted(125, 18) Source(80, 13) + SourceIndex(0) -4 >Emitted(125, 22) Source(80, 60) + SourceIndex(0) +1 >Emitted(143, 17) Source(80, 59) + SourceIndex(0) +2 >Emitted(143, 18) Source(80, 60) + SourceIndex(0) +3 >Emitted(143, 18) Source(80, 13) + SourceIndex(0) +4 >Emitted(143, 22) Source(80, 60) + SourceIndex(0) --- >>> SubSubModule2.ClassB = ClassB; 1->^^^^^^^^^^^^^^^^ @@ -2273,23 +2291,23 @@ sourceFile:typeResolution.ts 2 > ClassB 3 > { public BisIn1_2_2() { } } 4 > -1->Emitted(126, 17) Source(80, 26) + SourceIndex(0) -2 >Emitted(126, 37) Source(80, 32) + SourceIndex(0) -3 >Emitted(126, 46) Source(80, 60) + SourceIndex(0) -4 >Emitted(126, 47) Source(80, 60) + SourceIndex(0) +1->Emitted(144, 17) Source(80, 26) + SourceIndex(0) +2 >Emitted(144, 37) Source(80, 32) + SourceIndex(0) +3 >Emitted(144, 46) Source(80, 60) + SourceIndex(0) +4 >Emitted(144, 47) Source(80, 60) + SourceIndex(0) --- >>> var ClassC = (function () { 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > -1 >Emitted(127, 17) Source(81, 13) + SourceIndex(0) +1 >Emitted(145, 17) Source(81, 13) + SourceIndex(0) --- >>> function ClassC() { 1->^^^^^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(128, 21) Source(81, 13) + SourceIndex(0) +1->Emitted(146, 21) Source(81, 13) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^^^^^ @@ -2297,8 +2315,8 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1->export class ClassC { public CisIn1_2_2() { } 2 > } -1->Emitted(129, 21) Source(81, 59) + SourceIndex(0) -2 >Emitted(129, 22) Source(81, 60) + SourceIndex(0) +1->Emitted(147, 21) Source(81, 59) + SourceIndex(0) +2 >Emitted(147, 22) Source(81, 60) + SourceIndex(0) --- >>> ClassC.prototype.CisIn1_2_2 = function () { }; 1->^^^^^^^^^^^^^^^^^^^^ @@ -2311,19 +2329,20 @@ sourceFile:typeResolution.ts 3 > 4 > public CisIn1_2_2() { 5 > } -1->Emitted(130, 21) Source(81, 42) + SourceIndex(0) -2 >Emitted(130, 48) Source(81, 52) + SourceIndex(0) -3 >Emitted(130, 51) Source(81, 35) + SourceIndex(0) -4 >Emitted(130, 65) Source(81, 57) + SourceIndex(0) -5 >Emitted(130, 66) Source(81, 58) + SourceIndex(0) +1->Emitted(148, 21) Source(81, 42) + SourceIndex(0) +2 >Emitted(148, 48) Source(81, 52) + SourceIndex(0) +3 >Emitted(148, 51) Source(81, 35) + SourceIndex(0) +4 >Emitted(148, 65) Source(81, 57) + SourceIndex(0) +5 >Emitted(148, 66) Source(81, 58) + SourceIndex(0) --- +>>> __names(ClassC.prototype, ["CisIn1_2_2"]); >>> return ClassC; 1 >^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > 2 > } -1 >Emitted(131, 21) Source(81, 59) + SourceIndex(0) -2 >Emitted(131, 34) Source(81, 60) + SourceIndex(0) +1 >Emitted(150, 21) Source(81, 59) + SourceIndex(0) +2 >Emitted(150, 34) Source(81, 60) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^^^^^ @@ -2335,10 +2354,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassC { public CisIn1_2_2() { } } -1 >Emitted(132, 17) Source(81, 59) + SourceIndex(0) -2 >Emitted(132, 18) Source(81, 60) + SourceIndex(0) -3 >Emitted(132, 18) Source(81, 13) + SourceIndex(0) -4 >Emitted(132, 22) Source(81, 60) + SourceIndex(0) +1 >Emitted(151, 17) Source(81, 59) + SourceIndex(0) +2 >Emitted(151, 18) Source(81, 60) + SourceIndex(0) +3 >Emitted(151, 18) Source(81, 13) + SourceIndex(0) +4 >Emitted(151, 22) Source(81, 60) + SourceIndex(0) --- >>> SubSubModule2.ClassC = ClassC; 1->^^^^^^^^^^^^^^^^ @@ -2350,10 +2369,10 @@ sourceFile:typeResolution.ts 2 > ClassC 3 > { public CisIn1_2_2() { } } 4 > -1->Emitted(133, 17) Source(81, 26) + SourceIndex(0) -2 >Emitted(133, 37) Source(81, 32) + SourceIndex(0) -3 >Emitted(133, 46) Source(81, 60) + SourceIndex(0) -4 >Emitted(133, 47) Source(81, 60) + SourceIndex(0) +1->Emitted(152, 17) Source(81, 26) + SourceIndex(0) +2 >Emitted(152, 37) Source(81, 32) + SourceIndex(0) +3 >Emitted(152, 46) Source(81, 60) + SourceIndex(0) +4 >Emitted(152, 47) Source(81, 60) + SourceIndex(0) --- >>> })(SubSubModule2 = SubModule2.SubSubModule2 || (SubModule2.SubSubModule2 = {})); 1->^^^^^^^^^^^^ @@ -2384,15 +2403,15 @@ sourceFile:typeResolution.ts > export interface InterfaceY { YisIn1_2_2(); } > interface NonExportedInterfaceQ { } > } -1->Emitted(134, 13) Source(84, 9) + SourceIndex(0) -2 >Emitted(134, 14) Source(84, 10) + SourceIndex(0) -3 >Emitted(134, 16) Source(77, 23) + SourceIndex(0) -4 >Emitted(134, 29) Source(77, 36) + SourceIndex(0) -5 >Emitted(134, 32) Source(77, 23) + SourceIndex(0) -6 >Emitted(134, 56) Source(77, 36) + SourceIndex(0) -7 >Emitted(134, 61) Source(77, 23) + SourceIndex(0) -8 >Emitted(134, 85) Source(77, 36) + SourceIndex(0) -9 >Emitted(134, 93) Source(84, 10) + SourceIndex(0) +1->Emitted(153, 13) Source(84, 9) + SourceIndex(0) +2 >Emitted(153, 14) Source(84, 10) + SourceIndex(0) +3 >Emitted(153, 16) Source(77, 23) + SourceIndex(0) +4 >Emitted(153, 29) Source(77, 36) + SourceIndex(0) +5 >Emitted(153, 32) Source(77, 23) + SourceIndex(0) +6 >Emitted(153, 56) Source(77, 36) + SourceIndex(0) +7 >Emitted(153, 61) Source(77, 23) + SourceIndex(0) +8 >Emitted(153, 85) Source(77, 36) + SourceIndex(0) +9 >Emitted(153, 93) Source(84, 10) + SourceIndex(0) --- >>> })(SubModule2 = TopLevelModule1.SubModule2 || (TopLevelModule1.SubModule2 = {})); 1 >^^^^^^^^ @@ -2427,15 +2446,15 @@ sourceFile:typeResolution.ts > > export interface InterfaceY { YisIn1_2(); } > } -1 >Emitted(135, 9) Source(87, 5) + SourceIndex(0) -2 >Emitted(135, 10) Source(87, 6) + SourceIndex(0) -3 >Emitted(135, 12) Source(76, 19) + SourceIndex(0) -4 >Emitted(135, 22) Source(76, 29) + SourceIndex(0) -5 >Emitted(135, 25) Source(76, 19) + SourceIndex(0) -6 >Emitted(135, 51) Source(76, 29) + SourceIndex(0) -7 >Emitted(135, 56) Source(76, 19) + SourceIndex(0) -8 >Emitted(135, 82) Source(76, 29) + SourceIndex(0) -9 >Emitted(135, 90) Source(87, 6) + SourceIndex(0) +1 >Emitted(154, 9) Source(87, 5) + SourceIndex(0) +2 >Emitted(154, 10) Source(87, 6) + SourceIndex(0) +3 >Emitted(154, 12) Source(76, 19) + SourceIndex(0) +4 >Emitted(154, 22) Source(76, 29) + SourceIndex(0) +5 >Emitted(154, 25) Source(76, 19) + SourceIndex(0) +6 >Emitted(154, 51) Source(76, 29) + SourceIndex(0) +7 >Emitted(154, 56) Source(76, 19) + SourceIndex(0) +8 >Emitted(154, 82) Source(76, 29) + SourceIndex(0) +9 >Emitted(154, 90) Source(87, 6) + SourceIndex(0) --- >>> var ClassA = (function () { 1 >^^^^^^^^ @@ -2443,13 +2462,13 @@ sourceFile:typeResolution.ts 1 > > > -1 >Emitted(136, 9) Source(89, 5) + SourceIndex(0) +1 >Emitted(155, 9) Source(89, 5) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(137, 13) Source(89, 5) + SourceIndex(0) +1->Emitted(156, 13) Source(89, 5) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^ @@ -2459,8 +2478,8 @@ sourceFile:typeResolution.ts > public AisIn1() { } > 2 > } -1->Emitted(138, 13) Source(91, 5) + SourceIndex(0) -2 >Emitted(138, 14) Source(91, 6) + SourceIndex(0) +1->Emitted(157, 13) Source(91, 5) + SourceIndex(0) +2 >Emitted(157, 14) Source(91, 6) + SourceIndex(0) --- >>> ClassA.prototype.AisIn1 = function () { }; 1->^^^^^^^^^^^^ @@ -2473,20 +2492,21 @@ sourceFile:typeResolution.ts 3 > 4 > public AisIn1() { 5 > } -1->Emitted(139, 13) Source(90, 16) + SourceIndex(0) -2 >Emitted(139, 36) Source(90, 22) + SourceIndex(0) -3 >Emitted(139, 39) Source(90, 9) + SourceIndex(0) -4 >Emitted(139, 53) Source(90, 27) + SourceIndex(0) -5 >Emitted(139, 54) Source(90, 28) + SourceIndex(0) +1->Emitted(158, 13) Source(90, 16) + SourceIndex(0) +2 >Emitted(158, 36) Source(90, 22) + SourceIndex(0) +3 >Emitted(158, 39) Source(90, 9) + SourceIndex(0) +4 >Emitted(158, 53) Source(90, 27) + SourceIndex(0) +5 >Emitted(158, 54) Source(90, 28) + SourceIndex(0) --- +>>> __names(ClassA.prototype, ["AisIn1"]); >>> return ClassA; 1 >^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > > 2 > } -1 >Emitted(140, 13) Source(91, 5) + SourceIndex(0) -2 >Emitted(140, 26) Source(91, 6) + SourceIndex(0) +1 >Emitted(160, 13) Source(91, 5) + SourceIndex(0) +2 >Emitted(160, 26) Source(91, 6) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^ @@ -2500,10 +2520,10 @@ sourceFile:typeResolution.ts 4 > class ClassA { > public AisIn1() { } > } -1 >Emitted(141, 9) Source(91, 5) + SourceIndex(0) -2 >Emitted(141, 10) Source(91, 6) + SourceIndex(0) -3 >Emitted(141, 10) Source(89, 5) + SourceIndex(0) -4 >Emitted(141, 14) Source(91, 6) + SourceIndex(0) +1 >Emitted(161, 9) Source(91, 5) + SourceIndex(0) +2 >Emitted(161, 10) Source(91, 6) + SourceIndex(0) +3 >Emitted(161, 10) Source(89, 5) + SourceIndex(0) +4 >Emitted(161, 14) Source(91, 6) + SourceIndex(0) --- >>> var NotExportedModule; 1->^^^^^^^^ @@ -2523,10 +2543,10 @@ sourceFile:typeResolution.ts 4 > { > export class ClassA { } > } -1->Emitted(142, 9) Source(97, 5) + SourceIndex(0) -2 >Emitted(142, 13) Source(97, 12) + SourceIndex(0) -3 >Emitted(142, 30) Source(97, 29) + SourceIndex(0) -4 >Emitted(142, 31) Source(99, 6) + SourceIndex(0) +1->Emitted(162, 9) Source(97, 5) + SourceIndex(0) +2 >Emitted(162, 13) Source(97, 12) + SourceIndex(0) +3 >Emitted(162, 30) Source(97, 29) + SourceIndex(0) +4 >Emitted(162, 31) Source(99, 6) + SourceIndex(0) --- >>> (function (NotExportedModule) { 1->^^^^^^^^ @@ -2536,22 +2556,22 @@ sourceFile:typeResolution.ts 1-> 2 > module 3 > NotExportedModule -1->Emitted(143, 9) Source(97, 5) + SourceIndex(0) -2 >Emitted(143, 20) Source(97, 12) + SourceIndex(0) -3 >Emitted(143, 37) Source(97, 29) + SourceIndex(0) +1->Emitted(163, 9) Source(97, 5) + SourceIndex(0) +2 >Emitted(163, 20) Source(97, 12) + SourceIndex(0) +3 >Emitted(163, 37) Source(97, 29) + SourceIndex(0) --- >>> var ClassA = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(144, 13) Source(98, 9) + SourceIndex(0) +1->Emitted(164, 13) Source(98, 9) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(145, 17) Source(98, 9) + SourceIndex(0) +1->Emitted(165, 17) Source(98, 9) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -2559,16 +2579,16 @@ sourceFile:typeResolution.ts 3 > ^^^^^^^^^^^^^^-> 1->export class ClassA { 2 > } -1->Emitted(146, 17) Source(98, 31) + SourceIndex(0) -2 >Emitted(146, 18) Source(98, 32) + SourceIndex(0) +1->Emitted(166, 17) Source(98, 31) + SourceIndex(0) +2 >Emitted(166, 18) Source(98, 32) + SourceIndex(0) --- >>> return ClassA; 1->^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(147, 17) Source(98, 31) + SourceIndex(0) -2 >Emitted(147, 30) Source(98, 32) + SourceIndex(0) +1->Emitted(167, 17) Source(98, 31) + SourceIndex(0) +2 >Emitted(167, 30) Source(98, 32) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -2580,10 +2600,10 @@ sourceFile:typeResolution.ts 2 > } 3 > 4 > export class ClassA { } -1 >Emitted(148, 13) Source(98, 31) + SourceIndex(0) -2 >Emitted(148, 14) Source(98, 32) + SourceIndex(0) -3 >Emitted(148, 14) Source(98, 9) + SourceIndex(0) -4 >Emitted(148, 18) Source(98, 32) + SourceIndex(0) +1 >Emitted(168, 13) Source(98, 31) + SourceIndex(0) +2 >Emitted(168, 14) Source(98, 32) + SourceIndex(0) +3 >Emitted(168, 14) Source(98, 9) + SourceIndex(0) +4 >Emitted(168, 18) Source(98, 32) + SourceIndex(0) --- >>> NotExportedModule.ClassA = ClassA; 1->^^^^^^^^^^^^ @@ -2595,10 +2615,10 @@ sourceFile:typeResolution.ts 2 > ClassA 3 > { } 4 > -1->Emitted(149, 13) Source(98, 22) + SourceIndex(0) -2 >Emitted(149, 37) Source(98, 28) + SourceIndex(0) -3 >Emitted(149, 46) Source(98, 32) + SourceIndex(0) -4 >Emitted(149, 47) Source(98, 32) + SourceIndex(0) +1->Emitted(169, 13) Source(98, 22) + SourceIndex(0) +2 >Emitted(169, 37) Source(98, 28) + SourceIndex(0) +3 >Emitted(169, 46) Source(98, 32) + SourceIndex(0) +4 >Emitted(169, 47) Source(98, 32) + SourceIndex(0) --- >>> })(NotExportedModule || (NotExportedModule = {})); 1->^^^^^^^^ @@ -2619,13 +2639,13 @@ sourceFile:typeResolution.ts 7 > { > export class ClassA { } > } -1->Emitted(150, 9) Source(99, 5) + SourceIndex(0) -2 >Emitted(150, 10) Source(99, 6) + SourceIndex(0) -3 >Emitted(150, 12) Source(97, 12) + SourceIndex(0) -4 >Emitted(150, 29) Source(97, 29) + SourceIndex(0) -5 >Emitted(150, 34) Source(97, 12) + SourceIndex(0) -6 >Emitted(150, 51) Source(97, 29) + SourceIndex(0) -7 >Emitted(150, 59) Source(99, 6) + SourceIndex(0) +1->Emitted(170, 9) Source(99, 5) + SourceIndex(0) +2 >Emitted(170, 10) Source(99, 6) + SourceIndex(0) +3 >Emitted(170, 12) Source(97, 12) + SourceIndex(0) +4 >Emitted(170, 29) Source(97, 29) + SourceIndex(0) +5 >Emitted(170, 34) Source(97, 12) + SourceIndex(0) +6 >Emitted(170, 51) Source(97, 29) + SourceIndex(0) +7 >Emitted(170, 59) Source(99, 6) + SourceIndex(0) --- >>> })(TopLevelModule1 = exports.TopLevelModule1 || (exports.TopLevelModule1 = {})); 1->^^^^ @@ -2746,15 +2766,15 @@ sourceFile:typeResolution.ts > export class ClassA { } > } > } -1->Emitted(151, 5) Source(100, 1) + SourceIndex(0) -2 >Emitted(151, 6) Source(100, 2) + SourceIndex(0) -3 >Emitted(151, 8) Source(1, 15) + SourceIndex(0) -4 >Emitted(151, 23) Source(1, 30) + SourceIndex(0) -5 >Emitted(151, 26) Source(1, 15) + SourceIndex(0) -6 >Emitted(151, 49) Source(1, 30) + SourceIndex(0) -7 >Emitted(151, 54) Source(1, 15) + SourceIndex(0) -8 >Emitted(151, 77) Source(1, 30) + SourceIndex(0) -9 >Emitted(151, 85) Source(100, 2) + SourceIndex(0) +1->Emitted(171, 5) Source(100, 1) + SourceIndex(0) +2 >Emitted(171, 6) Source(100, 2) + SourceIndex(0) +3 >Emitted(171, 8) Source(1, 15) + SourceIndex(0) +4 >Emitted(171, 23) Source(1, 30) + SourceIndex(0) +5 >Emitted(171, 26) Source(1, 15) + SourceIndex(0) +6 >Emitted(171, 49) Source(1, 30) + SourceIndex(0) +7 >Emitted(171, 54) Source(1, 15) + SourceIndex(0) +8 >Emitted(171, 77) Source(1, 30) + SourceIndex(0) +9 >Emitted(171, 85) Source(100, 2) + SourceIndex(0) --- >>> var TopLevelModule2; 1 >^^^^ @@ -2774,10 +2794,10 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(152, 5) Source(102, 1) + SourceIndex(0) -2 >Emitted(152, 9) Source(102, 8) + SourceIndex(0) -3 >Emitted(152, 24) Source(102, 23) + SourceIndex(0) -4 >Emitted(152, 25) Source(108, 2) + SourceIndex(0) +1 >Emitted(172, 5) Source(102, 1) + SourceIndex(0) +2 >Emitted(172, 9) Source(102, 8) + SourceIndex(0) +3 >Emitted(172, 24) Source(102, 23) + SourceIndex(0) +4 >Emitted(172, 25) Source(108, 2) + SourceIndex(0) --- >>> (function (TopLevelModule2) { 1->^^^^ @@ -2786,9 +2806,9 @@ sourceFile:typeResolution.ts 1-> 2 > module 3 > TopLevelModule2 -1->Emitted(153, 5) Source(102, 1) + SourceIndex(0) -2 >Emitted(153, 16) Source(102, 8) + SourceIndex(0) -3 >Emitted(153, 31) Source(102, 23) + SourceIndex(0) +1->Emitted(173, 5) Source(102, 1) + SourceIndex(0) +2 >Emitted(173, 16) Source(102, 8) + SourceIndex(0) +3 >Emitted(173, 31) Source(102, 23) + SourceIndex(0) --- >>> var SubModule3; 1 >^^^^^^^^ @@ -2805,10 +2825,10 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > } > } -1 >Emitted(154, 9) Source(103, 5) + SourceIndex(0) -2 >Emitted(154, 13) Source(103, 19) + SourceIndex(0) -3 >Emitted(154, 23) Source(103, 29) + SourceIndex(0) -4 >Emitted(154, 24) Source(107, 6) + SourceIndex(0) +1 >Emitted(174, 9) Source(103, 5) + SourceIndex(0) +2 >Emitted(174, 13) Source(103, 19) + SourceIndex(0) +3 >Emitted(174, 23) Source(103, 29) + SourceIndex(0) +4 >Emitted(174, 24) Source(107, 6) + SourceIndex(0) --- >>> (function (SubModule3) { 1->^^^^^^^^ @@ -2818,22 +2838,22 @@ sourceFile:typeResolution.ts 1-> 2 > export module 3 > SubModule3 -1->Emitted(155, 9) Source(103, 5) + SourceIndex(0) -2 >Emitted(155, 20) Source(103, 19) + SourceIndex(0) -3 >Emitted(155, 30) Source(103, 29) + SourceIndex(0) +1->Emitted(175, 9) Source(103, 5) + SourceIndex(0) +2 >Emitted(175, 20) Source(103, 19) + SourceIndex(0) +3 >Emitted(175, 30) Source(103, 29) + SourceIndex(0) --- >>> var ClassA = (function () { 1->^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> { > -1->Emitted(156, 13) Source(104, 9) + SourceIndex(0) +1->Emitted(176, 13) Source(104, 9) + SourceIndex(0) --- >>> function ClassA() { 1->^^^^^^^^^^^^^^^^ 2 > ^^-> 1-> -1->Emitted(157, 17) Source(104, 9) + SourceIndex(0) +1->Emitted(177, 17) Source(104, 9) + SourceIndex(0) --- >>> } 1->^^^^^^^^^^^^^^^^ @@ -2843,8 +2863,8 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > 2 > } -1->Emitted(158, 17) Source(106, 9) + SourceIndex(0) -2 >Emitted(158, 18) Source(106, 10) + SourceIndex(0) +1->Emitted(178, 17) Source(106, 9) + SourceIndex(0) +2 >Emitted(178, 18) Source(106, 10) + SourceIndex(0) --- >>> ClassA.prototype.AisIn2_3 = function () { }; 1->^^^^^^^^^^^^^^^^ @@ -2857,20 +2877,21 @@ sourceFile:typeResolution.ts 3 > 4 > public AisIn2_3() { 5 > } -1->Emitted(159, 17) Source(105, 20) + SourceIndex(0) -2 >Emitted(159, 42) Source(105, 28) + SourceIndex(0) -3 >Emitted(159, 45) Source(105, 13) + SourceIndex(0) -4 >Emitted(159, 59) Source(105, 33) + SourceIndex(0) -5 >Emitted(159, 60) Source(105, 34) + SourceIndex(0) +1->Emitted(179, 17) Source(105, 20) + SourceIndex(0) +2 >Emitted(179, 42) Source(105, 28) + SourceIndex(0) +3 >Emitted(179, 45) Source(105, 13) + SourceIndex(0) +4 >Emitted(179, 59) Source(105, 33) + SourceIndex(0) +5 >Emitted(179, 60) Source(105, 34) + SourceIndex(0) --- +>>> __names(ClassA.prototype, ["AisIn2_3"]); >>> return ClassA; 1 >^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^^^^^^ 1 > > 2 > } -1 >Emitted(160, 17) Source(106, 9) + SourceIndex(0) -2 >Emitted(160, 30) Source(106, 10) + SourceIndex(0) +1 >Emitted(181, 17) Source(106, 9) + SourceIndex(0) +2 >Emitted(181, 30) Source(106, 10) + SourceIndex(0) --- >>> }()); 1 >^^^^^^^^^^^^ @@ -2884,10 +2905,10 @@ sourceFile:typeResolution.ts 4 > export class ClassA { > public AisIn2_3() { } > } -1 >Emitted(161, 13) Source(106, 9) + SourceIndex(0) -2 >Emitted(161, 14) Source(106, 10) + SourceIndex(0) -3 >Emitted(161, 14) Source(104, 9) + SourceIndex(0) -4 >Emitted(161, 18) Source(106, 10) + SourceIndex(0) +1 >Emitted(182, 13) Source(106, 9) + SourceIndex(0) +2 >Emitted(182, 14) Source(106, 10) + SourceIndex(0) +3 >Emitted(182, 14) Source(104, 9) + SourceIndex(0) +4 >Emitted(182, 18) Source(106, 10) + SourceIndex(0) --- >>> SubModule3.ClassA = ClassA; 1->^^^^^^^^^^^^ @@ -2901,10 +2922,10 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > } 4 > -1->Emitted(162, 13) Source(104, 22) + SourceIndex(0) -2 >Emitted(162, 30) Source(104, 28) + SourceIndex(0) -3 >Emitted(162, 39) Source(106, 10) + SourceIndex(0) -4 >Emitted(162, 40) Source(106, 10) + SourceIndex(0) +1->Emitted(183, 13) Source(104, 22) + SourceIndex(0) +2 >Emitted(183, 30) Source(104, 28) + SourceIndex(0) +3 >Emitted(183, 39) Source(106, 10) + SourceIndex(0) +4 >Emitted(183, 40) Source(106, 10) + SourceIndex(0) --- >>> })(SubModule3 = TopLevelModule2.SubModule3 || (TopLevelModule2.SubModule3 = {})); 1->^^^^^^^^ @@ -2930,15 +2951,15 @@ sourceFile:typeResolution.ts > public AisIn2_3() { } > } > } -1->Emitted(163, 9) Source(107, 5) + SourceIndex(0) -2 >Emitted(163, 10) Source(107, 6) + SourceIndex(0) -3 >Emitted(163, 12) Source(103, 19) + SourceIndex(0) -4 >Emitted(163, 22) Source(103, 29) + SourceIndex(0) -5 >Emitted(163, 25) Source(103, 19) + SourceIndex(0) -6 >Emitted(163, 51) Source(103, 29) + SourceIndex(0) -7 >Emitted(163, 56) Source(103, 19) + SourceIndex(0) -8 >Emitted(163, 82) Source(103, 29) + SourceIndex(0) -9 >Emitted(163, 90) Source(107, 6) + SourceIndex(0) +1->Emitted(184, 9) Source(107, 5) + SourceIndex(0) +2 >Emitted(184, 10) Source(107, 6) + SourceIndex(0) +3 >Emitted(184, 12) Source(103, 19) + SourceIndex(0) +4 >Emitted(184, 22) Source(103, 29) + SourceIndex(0) +5 >Emitted(184, 25) Source(103, 19) + SourceIndex(0) +6 >Emitted(184, 51) Source(103, 29) + SourceIndex(0) +7 >Emitted(184, 56) Source(103, 19) + SourceIndex(0) +8 >Emitted(184, 82) Source(103, 29) + SourceIndex(0) +9 >Emitted(184, 90) Source(107, 6) + SourceIndex(0) --- >>> })(TopLevelModule2 || (TopLevelModule2 = {})); 1 >^^^^ @@ -2962,13 +2983,13 @@ sourceFile:typeResolution.ts > } > } > } -1 >Emitted(164, 5) Source(108, 1) + SourceIndex(0) -2 >Emitted(164, 6) Source(108, 2) + SourceIndex(0) -3 >Emitted(164, 8) Source(102, 8) + SourceIndex(0) -4 >Emitted(164, 23) Source(102, 23) + SourceIndex(0) -5 >Emitted(164, 28) Source(102, 8) + SourceIndex(0) -6 >Emitted(164, 43) Source(102, 23) + SourceIndex(0) -7 >Emitted(164, 51) Source(108, 2) + SourceIndex(0) +1 >Emitted(185, 5) Source(108, 1) + SourceIndex(0) +2 >Emitted(185, 6) Source(108, 2) + SourceIndex(0) +3 >Emitted(185, 8) Source(102, 8) + SourceIndex(0) +4 >Emitted(185, 23) Source(102, 23) + SourceIndex(0) +5 >Emitted(185, 28) Source(102, 8) + SourceIndex(0) +6 >Emitted(185, 43) Source(102, 23) + SourceIndex(0) +7 >Emitted(185, 51) Source(108, 2) + SourceIndex(0) --- >>>}); >>>//# sourceMappingURL=typeResolution.js.map \ No newline at end of file diff --git a/tests/baselines/reference/typeVariableTypeGuards.js b/tests/baselines/reference/typeVariableTypeGuards.js index 8525bde0f779c..7f54c0a0695c7 100644 --- a/tests/baselines/reference/typeVariableTypeGuards.js +++ b/tests/baselines/reference/typeVariableTypeGuards.js @@ -85,6 +85,20 @@ function f5(obj: T | undefined, key: K) { //// [typeVariableTypeGuards.js] "use strict"; // Repro from #14091 +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -101,6 +115,7 @@ var A = (function () { A.prototype.doSomething = function () { this.props.foo && this.props.foo(); }; + __names(A.prototype, ["doSomething"]); return A; }()); var Monkey = (function () { @@ -111,6 +126,7 @@ var Monkey = (function () { this.a.color; } }; + __names(Monkey.prototype, ["render"]); return Monkey; }()); var BigMonkey = (function (_super) { @@ -123,6 +139,7 @@ var BigMonkey = (function (_super) { this.a.color; } }; + __names(BigMonkey.prototype, ["render"]); return BigMonkey; }(Monkey)); function f1(obj) { diff --git a/tests/baselines/reference/typedGenericPrototypeMember.js b/tests/baselines/reference/typedGenericPrototypeMember.js index 16b4d93315fb2..2288b62519f87 100644 --- a/tests/baselines/reference/typedGenericPrototypeMember.js +++ b/tests/baselines/reference/typedGenericPrototypeMember.js @@ -7,10 +7,25 @@ List.prototype.add("abc"); // Valid because T is instantiated to any //// [typedGenericPrototypeMember.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var List = (function () { function List() { } List.prototype.add = function (item) { }; + __names(List.prototype, ["add"]); return List; }()); List.prototype.add("abc"); // Valid because T is instantiated to any diff --git a/tests/baselines/reference/typeofClass2.js b/tests/baselines/reference/typeofClass2.js index f5b11e0c8338f..9f88c7e0de4bb 100644 --- a/tests/baselines/reference/typeofClass2.js +++ b/tests/baselines/reference/typeofClass2.js @@ -32,6 +32,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x) { } @@ -46,6 +60,7 @@ var D = (function (_super) { } D.baz = function (x) { }; D.prototype.foo = function () { }; + __names(D.prototype, ["foo"]); return D; }(C)); var d; diff --git a/tests/baselines/reference/typesWithSpecializedCallSignatures.js b/tests/baselines/reference/typesWithSpecializedCallSignatures.js index 7a006e1a8ce2f..cd9c19c947dae 100644 --- a/tests/baselines/reference/typesWithSpecializedCallSignatures.js +++ b/tests/baselines/reference/typesWithSpecializedCallSignatures.js @@ -53,6 +53,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Base = (function () { function Base() { } @@ -78,6 +92,7 @@ var C = (function () { C.prototype.foo = function (x) { return x; }; + __names(C.prototype, ["foo"]); return C; }()); var c = new C(); diff --git a/tests/baselines/reference/undeclaredMethod.js b/tests/baselines/reference/undeclaredMethod.js index 071f45776aa57..56799db14160a 100644 --- a/tests/baselines/reference/undeclaredMethod.js +++ b/tests/baselines/reference/undeclaredMethod.js @@ -13,12 +13,27 @@ c.saltbar(); // crash //// [undeclaredMethod.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { function C() { } C.prototype.salt = function () { }; + __names(C.prototype, ["salt"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/underscoreMapFirst.js b/tests/baselines/reference/underscoreMapFirst.js index dcd95f85a12dc..ccacda241629d 100644 --- a/tests/baselines/reference/underscoreMapFirst.js +++ b/tests/baselines/reference/underscoreMapFirst.js @@ -59,6 +59,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var MyView = (function (_super) { __extends(MyView, _super); function MyView() { @@ -69,5 +83,6 @@ var MyView = (function (_super) { var allSeries = _.pluck(data, "series"); return _.map(allSeries, _.first); }; + __names(MyView.prototype, ["getDataSeries"]); return MyView; }(View)); diff --git a/tests/baselines/reference/unionTypeEquivalence.js b/tests/baselines/reference/unionTypeEquivalence.js index 11ef3a7974eaf..dffd6cf986ddc 100644 --- a/tests/baselines/reference/unionTypeEquivalence.js +++ b/tests/baselines/reference/unionTypeEquivalence.js @@ -30,6 +30,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // A | B is equivalent to A if B is a subtype of A var C = (function () { function C() { @@ -42,6 +56,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.foo = function () { }; + __names(D.prototype, ["foo"]); return D; }(C)); var x; diff --git a/tests/baselines/reference/unionTypeFromArrayLiteral.js b/tests/baselines/reference/unionTypeFromArrayLiteral.js index 11f53a8b98562..7631c7e4357a8 100644 --- a/tests/baselines/reference/unionTypeFromArrayLiteral.js +++ b/tests/baselines/reference/unionTypeFromArrayLiteral.js @@ -28,6 +28,20 @@ var arr9 = [e, f]; // (E|F)[] // If the array literal is empty, the resulting type is an array type with the element type Undefined. // Otherwise, if the array literal is contextually typed by a type that has a property with the numeric name ‘0’, the resulting type is a tuple type constructed from the types of the element expressions. // Otherwise, the resulting type is an array type with an element type that is the union of the types of the element expressions. +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -48,12 +62,14 @@ var C = (function () { function C() { } C.prototype.foo = function () { }; + __names(C.prototype, ["foo"]); return C; }()); var D = (function () { function D() { } D.prototype.foo2 = function () { }; + __names(D.prototype, ["foo2"]); return D; }()); var E = (function (_super) { @@ -62,6 +78,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo3 = function () { }; + __names(E.prototype, ["foo3"]); return E; }(C)); var F = (function (_super) { @@ -70,6 +87,7 @@ var F = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } F.prototype.foo4 = function () { }; + __names(F.prototype, ["foo4"]); return F; }(C)); var c, d, e, f; diff --git a/tests/baselines/reference/unionTypesAssignability.js b/tests/baselines/reference/unionTypesAssignability.js index a26de7d2747dd..b9db9a0917370 100644 --- a/tests/baselines/reference/unionTypesAssignability.js +++ b/tests/baselines/reference/unionTypesAssignability.js @@ -84,6 +84,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var unionNumberString; var C = (function () { function C() { @@ -96,6 +110,7 @@ var D = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } D.prototype.foo1 = function () { }; + __names(D.prototype, ["foo1"]); return D; }(C)); var E = (function (_super) { @@ -104,6 +119,7 @@ var E = (function (_super) { return _super !== null && _super.apply(this, arguments) || this; } E.prototype.foo2 = function () { }; + __names(E.prototype, ["foo2"]); return E; }(C)); var unionDE; diff --git a/tests/baselines/reference/unknownTypeArgOnCall.js b/tests/baselines/reference/unknownTypeArgOnCall.js index 129e2e351f15a..bd4bdbc9682d5 100644 --- a/tests/baselines/reference/unknownTypeArgOnCall.js +++ b/tests/baselines/reference/unknownTypeArgOnCall.js @@ -9,12 +9,27 @@ var r = f.clone() //// [unknownTypeArgOnCall.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Foo = (function () { function Foo() { } Foo.prototype.clone = function () { return null; }; + __names(Foo.prototype, ["clone"]); return Foo; }()); var f = new Foo(); diff --git a/tests/baselines/reference/unspecializedConstraints.js b/tests/baselines/reference/unspecializedConstraints.js index 4c459c29be1d6..d21e1adc34b0e 100644 --- a/tests/baselines/reference/unspecializedConstraints.js +++ b/tests/baselines/reference/unspecializedConstraints.js @@ -164,6 +164,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var ts; (function (ts) { var Symbol = (function () { @@ -233,6 +247,7 @@ var ts; }; Type.prototype.isSubTypeOf = function (type) { }; + __names(Type.prototype, ["equals", "getProperties", "getProperty", "getPropertyByName", "getPropertyCount", "getSignature", "getSignatureCount", "getSignatures", "isPrimitive", "isObjectType", "isTypeParameter", "isSubTypeOf"]); return Type; }(Symbol)); var Property = (function (_super) { @@ -249,6 +264,7 @@ var ts; this.flags === other.flags && this.type.equals(other.type); }; + __names(Property.prototype, ["equals"]); return Property; }(Symbol)); var PropertyFlags; @@ -275,6 +291,7 @@ var ts; return this.equalsNoReturn(other) && this.returnType.equals(other.returnType); }; + __names(Signature.prototype, ["equalsNoReturn", "equals"]); return Signature; }(Symbol)); var Parameter = (function (_super) { @@ -291,6 +308,7 @@ var ts; this.flags === other.flags && this.type.equals(other.type); }; + __names(Parameter.prototype, ["equals"]); return Parameter; }(Symbol)); var ParameterFlags; diff --git a/tests/baselines/reference/unusedClassesinModule1.js b/tests/baselines/reference/unusedClassesinModule1.js index 4ffdc0d881280..888619d512649 100644 --- a/tests/baselines/reference/unusedClassesinModule1.js +++ b/tests/baselines/reference/unusedClassesinModule1.js @@ -7,6 +7,20 @@ module A { } //// [unusedClassesinModule1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var Calculator = (function () { @@ -14,6 +28,7 @@ var A; } Calculator.prototype.handelChar = function () { }; + __names(Calculator.prototype, ["handelChar"]); return Calculator; }()); })(A || (A = {})); diff --git a/tests/baselines/reference/unusedIdentifiersConsolidated1.js b/tests/baselines/reference/unusedIdentifiersConsolidated1.js index 401da10769792..45e2d5331982f 100644 --- a/tests/baselines/reference/unusedIdentifiersConsolidated1.js +++ b/tests/baselines/reference/unusedIdentifiersConsolidated1.js @@ -102,6 +102,20 @@ namespace Greeter { } //// [unusedIdentifiersConsolidated1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || @@ -128,6 +142,7 @@ var Dummy = (function () { }; Dummy.prototype.unUsedPrivateFunction = function () { }; + __names(Dummy.prototype, ["greeter", "usedPrivateFunction", "unUsedPrivateFunction"]); return Dummy; }()); var user = "Jane User"; @@ -144,6 +159,7 @@ var Validation; }; LettersOnlyValidator.prototype.unUsedPrivateFunction = function () { }; + __names(LettersOnlyValidator.prototype, ["isAcceptable", "unUsedPrivateFunction"]); return LettersOnlyValidator; }()); Validation.LettersOnlyValidator = LettersOnlyValidator; @@ -153,6 +169,7 @@ var Validation; ZipCodeValidator.prototype.isAcceptable = function (s3) { return s3.length === 5; }; + __names(ZipCodeValidator.prototype, ["isAcceptable"]); return ZipCodeValidator; }()); Validation.ZipCodeValidator = ZipCodeValidator; diff --git a/tests/baselines/reference/unusedImports10.js b/tests/baselines/reference/unusedImports10.js index 5f40c1f1fa18d..25dc307b927a3 100644 --- a/tests/baselines/reference/unusedImports10.js +++ b/tests/baselines/reference/unusedImports10.js @@ -11,6 +11,20 @@ module B { } //// [unusedImports10.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A; (function (A) { var Calculator = (function () { @@ -18,6 +32,7 @@ var A; } Calculator.prototype.handelChar = function () { }; + __names(Calculator.prototype, ["handelChar"]); return Calculator; }()); A.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports2.js b/tests/baselines/reference/unusedImports2.js index 5f01507a44431..424c980a93d8b 100644 --- a/tests/baselines/reference/unusedImports2.js +++ b/tests/baselines/reference/unusedImports2.js @@ -18,11 +18,26 @@ x.handleChar(); //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports3.js b/tests/baselines/reference/unusedImports3.js index 788cecf54703b..18750f668c214 100644 --- a/tests/baselines/reference/unusedImports3.js +++ b/tests/baselines/reference/unusedImports3.js @@ -21,11 +21,26 @@ test2(); //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports4.js b/tests/baselines/reference/unusedImports4.js index cfcc9eb1a61c0..4d7e0bb332813 100644 --- a/tests/baselines/reference/unusedImports4.js +++ b/tests/baselines/reference/unusedImports4.js @@ -22,11 +22,26 @@ test2(); //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports5.js b/tests/baselines/reference/unusedImports5.js index 0ee931e57a59b..1437b8b91df29 100644 --- a/tests/baselines/reference/unusedImports5.js +++ b/tests/baselines/reference/unusedImports5.js @@ -22,11 +22,26 @@ test(); //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports6.js b/tests/baselines/reference/unusedImports6.js index ea7392de4e15c..f754e235b9045 100644 --- a/tests/baselines/reference/unusedImports6.js +++ b/tests/baselines/reference/unusedImports6.js @@ -22,11 +22,26 @@ import d from "./file1" //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports7.js b/tests/baselines/reference/unusedImports7.js index dc4f707f62999..0c3ba963d131e 100644 --- a/tests/baselines/reference/unusedImports7.js +++ b/tests/baselines/reference/unusedImports7.js @@ -20,11 +20,26 @@ import * as n from "./file1" //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports8.js b/tests/baselines/reference/unusedImports8.js index 88983976362b1..2b6294f65c911 100644 --- a/tests/baselines/reference/unusedImports8.js +++ b/tests/baselines/reference/unusedImports8.js @@ -22,11 +22,26 @@ t1(); //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedImports9.js b/tests/baselines/reference/unusedImports9.js index e089a1445b9c3..5f1a45f37a66e 100644 --- a/tests/baselines/reference/unusedImports9.js +++ b/tests/baselines/reference/unusedImports9.js @@ -18,11 +18,26 @@ import c = require('./file1') //// [file1.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var Calculator = (function () { function Calculator() { } Calculator.prototype.handleChar = function () { }; + __names(Calculator.prototype, ["handleChar"]); return Calculator; }()); exports.Calculator = Calculator; diff --git a/tests/baselines/reference/unusedInvalidTypeArguments.js b/tests/baselines/reference/unusedInvalidTypeArguments.js index 9f32181a0fb34..5926ff9013590 100644 --- a/tests/baselines/reference/unusedInvalidTypeArguments.js +++ b/tests/baselines/reference/unusedInvalidTypeArguments.js @@ -106,6 +106,20 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var unknown_1 = require("unknown"); var C = (function (_super) { @@ -117,6 +131,7 @@ var C = (function (_super) { _super.prototype.m.call(this, 1); _super.prototype.m.call(this); // Should get error for type argument }; + __names(C.prototype, ["m"]); return C; }(unknown_1.A)); exports.C = C; diff --git a/tests/baselines/reference/unusedLocalProperty.js b/tests/baselines/reference/unusedLocalProperty.js index a124b752125d7..ef9c41c51c459 100644 --- a/tests/baselines/reference/unusedLocalProperty.js +++ b/tests/baselines/reference/unusedLocalProperty.js @@ -13,6 +13,20 @@ class Animal { //// [unusedLocalProperty.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Animal = (function () { function Animal(species) { this.species = species; @@ -21,5 +35,6 @@ var Animal = (function () { var species = this.species; console.log(species); }; + __names(Animal.prototype, ["printSpecies"]); return Animal; }()); diff --git a/tests/baselines/reference/unusedLocalsAndParameters.js b/tests/baselines/reference/unusedLocalsAndParameters.js index eb4db589c5369..e4b3490a945d9 100644 --- a/tests/baselines/reference/unusedLocalsAndParameters.js +++ b/tests/baselines/reference/unusedLocalsAndParameters.js @@ -85,6 +85,20 @@ namespace N { //// [unusedLocalsAndParameters.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; // function declaration paramter function f(a) { @@ -110,6 +124,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["method"]); return C; }()); var E = (function () { @@ -125,6 +140,7 @@ var E = (function () { enumerable: true, configurable: true }); + __names(class_1.prototype, ["method"]); return class_1; }()); var o = { diff --git a/tests/baselines/reference/unusedLocalsAndParametersDeferred.js b/tests/baselines/reference/unusedLocalsAndParametersDeferred.js index faa5ad2b0dfe2..4b6cbce4f187b 100644 --- a/tests/baselines/reference/unusedLocalsAndParametersDeferred.js +++ b/tests/baselines/reference/unusedLocalsAndParametersDeferred.js @@ -161,6 +161,20 @@ N; //// [unusedLocalsAndParametersDeferred.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; function defered(a) { return a(); @@ -210,6 +224,7 @@ var C = (function () { enumerable: true, configurable: true }); + __names(C.prototype, ["method"]); return C; }()); new C(); @@ -237,6 +252,7 @@ var E = (function () { enumerable: true, configurable: true }); + __names(class_1.prototype, ["method"]); return class_1; }()); new E(); diff --git a/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js b/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js index 559a2cb7761e8..ae887bb7eeb66 100644 --- a/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js +++ b/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js @@ -24,6 +24,20 @@ export function genericFunc(details: number, message: any): any { //// [unusedLocalsAndParametersOverloadSignatures.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; function func(details, message) { return details + message; @@ -36,6 +50,7 @@ var C = (function () { C.prototype.method = function (details, message) { return details + message; }; + __names(C.prototype, ["method"]); return C; }()); exports.C = C; diff --git a/tests/baselines/reference/unusedLocalsInMethod1.js b/tests/baselines/reference/unusedLocalsInMethod1.js index cec478ef204db..9c4a5213ebd07 100644 --- a/tests/baselines/reference/unusedLocalsInMethod1.js +++ b/tests/baselines/reference/unusedLocalsInMethod1.js @@ -6,11 +6,26 @@ class greeter { } //// [unusedLocalsInMethod1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } greeter.prototype.function1 = function () { var x = 10; }; + __names(greeter.prototype, ["function1"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedLocalsInMethod2.js b/tests/baselines/reference/unusedLocalsInMethod2.js index f02d27f586e5d..cf25b93466ce6 100644 --- a/tests/baselines/reference/unusedLocalsInMethod2.js +++ b/tests/baselines/reference/unusedLocalsInMethod2.js @@ -7,6 +7,20 @@ class greeter { } //// [unusedLocalsInMethod2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } @@ -14,5 +28,6 @@ var greeter = (function () { var x, y = 10; y++; }; + __names(greeter.prototype, ["function1"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedLocalsInMethod3.js b/tests/baselines/reference/unusedLocalsInMethod3.js index e13958c13b6d9..1b6480078ee05 100644 --- a/tests/baselines/reference/unusedLocalsInMethod3.js +++ b/tests/baselines/reference/unusedLocalsInMethod3.js @@ -7,6 +7,20 @@ class greeter { } //// [unusedLocalsInMethod3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } @@ -14,5 +28,6 @@ var greeter = (function () { var x, y; y = 1; }; + __names(greeter.prototype, ["function1"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js b/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js index 3189618a48a06..59a5829bf7806 100644 --- a/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js +++ b/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js @@ -7,6 +7,20 @@ class Dummy { } //// [unusedMultipleParameters1InMethodDeclaration.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Dummy = (function () { function Dummy() { } @@ -14,5 +28,6 @@ var Dummy = (function () { var unused = 20; person2 = "dummy value"; }; + __names(Dummy.prototype, ["greeter"]); return Dummy; }()); diff --git a/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js b/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js index 357a96c2e24e4..06d97116da2c3 100644 --- a/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js +++ b/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js @@ -7,6 +7,20 @@ class Dummy { } //// [unusedMultipleParameters2InMethodDeclaration.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Dummy = (function () { function Dummy() { } @@ -14,5 +28,6 @@ var Dummy = (function () { var unused = 20; person2 = "dummy value"; }; + __names(Dummy.prototype, ["greeter"]); return Dummy; }()); diff --git a/tests/baselines/reference/unusedParametersInLambda1.js b/tests/baselines/reference/unusedParametersInLambda1.js index 58fe26677bf84..b75be92593590 100644 --- a/tests/baselines/reference/unusedParametersInLambda1.js +++ b/tests/baselines/reference/unusedParametersInLambda1.js @@ -7,6 +7,20 @@ class A { } //// [unusedParametersInLambda1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -14,5 +28,6 @@ var A = (function () { return function (X) { }; }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedParametersInLambda2.js b/tests/baselines/reference/unusedParametersInLambda2.js index 836c88a725015..10f5d131ea066 100644 --- a/tests/baselines/reference/unusedParametersInLambda2.js +++ b/tests/baselines/reference/unusedParametersInLambda2.js @@ -8,6 +8,20 @@ class A { } //// [unusedParametersInLambda2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -16,5 +30,6 @@ var A = (function () { Y; }; }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedParametersThis.js b/tests/baselines/reference/unusedParametersThis.js index 5e96781edaa72..45e379de380ba 100644 --- a/tests/baselines/reference/unusedParametersThis.js +++ b/tests/baselines/reference/unusedParametersThis.js @@ -34,6 +34,20 @@ var f2 = function f2(this: A): number { }; //// [unusedParametersThis.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -56,6 +70,7 @@ var A = (function () { A.staticMethod = function () { return this.a; }; + __names(A.prototype, ["method", "method2", "method3", "method4"]); return A; }()); function f() { diff --git a/tests/baselines/reference/unusedPrivateMembers.js b/tests/baselines/reference/unusedPrivateMembers.js index 35efb9bd91285..370caa430df4d 100644 --- a/tests/baselines/reference/unusedPrivateMembers.js +++ b/tests/baselines/reference/unusedPrivateMembers.js @@ -49,6 +49,20 @@ class Test5 { //// [unusedPrivateMembers.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Test1 = (function () { function Test1() { } @@ -58,6 +72,7 @@ var Test1 = (function () { var x = new Test1(); x.initializeInternal(); }; + __names(Test1.prototype, ["initializeInternal", "test"]); return Test1; }()); var Test2 = (function () { @@ -68,6 +83,7 @@ var Test2 = (function () { var x = new Test2(); x.p; }; + __names(Test2.prototype, ["test"]); return Test2; }()); var Test3 = (function () { @@ -84,6 +100,7 @@ var Test3 = (function () { var x = new Test3(); x.x; }; + __names(Test3.prototype, ["test"]); return Test3; }()); var Test4 = (function () { @@ -100,6 +117,7 @@ var Test4 = (function () { var x = new Test4(); x.x; }; + __names(Test4.prototype, ["test"]); return Test4; }()); var Test5 = (function () { @@ -109,5 +127,6 @@ var Test5 = (function () { var x = new Test5(); x.p; }; + __names(Test5.prototype, ["test"]); return Test5; }()); diff --git a/tests/baselines/reference/unusedPrivateMethodInClass1.js b/tests/baselines/reference/unusedPrivateMethodInClass1.js index 9383d12dc557b..ec7decda4b3bd 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass1.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass1.js @@ -7,6 +7,20 @@ class greeter { } //// [unusedPrivateMethodInClass1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } @@ -14,5 +28,6 @@ var greeter = (function () { var y = 10; y++; }; + __names(greeter.prototype, ["function1"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedPrivateMethodInClass2.js b/tests/baselines/reference/unusedPrivateMethodInClass2.js index 247a1be4f5919..f7a0bdad58558 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass2.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass2.js @@ -12,6 +12,20 @@ class greeter { } //// [unusedPrivateMethodInClass2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } @@ -23,5 +37,6 @@ var greeter = (function () { var y = 10; y++; }; + __names(greeter.prototype, ["function1", "function2"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedPrivateMethodInClass3.js b/tests/baselines/reference/unusedPrivateMethodInClass3.js index 94c9c1d8ff4ab..bc3e269325bb2 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass3.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass3.js @@ -17,6 +17,20 @@ class greeter { } //// [unusedPrivateMethodInClass3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } @@ -32,5 +46,6 @@ var greeter = (function () { var y = 10; y++; }; + __names(greeter.prototype, ["function1", "function2", "function3"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedPrivateMethodInClass4.js b/tests/baselines/reference/unusedPrivateMethodInClass4.js index f767a13917c6c..0552eb1c6ed22 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass4.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass4.js @@ -18,6 +18,20 @@ class greeter { } //// [unusedPrivateMethodInClass4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } @@ -34,5 +48,6 @@ var greeter = (function () { y++; this.function2(); }; + __names(greeter.prototype, ["function1", "function2", "function3"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedPrivateVariableInClass4.js b/tests/baselines/reference/unusedPrivateVariableInClass4.js index 809e6cf754e9c..de6bbe0d0054e 100644 --- a/tests/baselines/reference/unusedPrivateVariableInClass4.js +++ b/tests/baselines/reference/unusedPrivateVariableInClass4.js @@ -10,11 +10,26 @@ class greeter { } //// [unusedPrivateVariableInClass4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } greeter.prototype.method1 = function () { this.x = "dummy value"; }; + __names(greeter.prototype, ["method1"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js b/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js index a173da2a95edf..5aa6a8b7438d8 100644 --- a/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js +++ b/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js @@ -6,11 +6,26 @@ class Dummy { } //// [unusedSingleParameterInMethodDeclaration.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Dummy = (function () { function Dummy() { } Dummy.prototype.greeter = function (person) { var unused = 20; }; + __names(Dummy.prototype, ["greeter"]); return Dummy; }()); diff --git a/tests/baselines/reference/unusedTypeParameterInLambda1.js b/tests/baselines/reference/unusedTypeParameterInLambda1.js index 78433757ed79c..bfcc70d2d87ca 100644 --- a/tests/baselines/reference/unusedTypeParameterInLambda1.js +++ b/tests/baselines/reference/unusedTypeParameterInLambda1.js @@ -8,6 +8,20 @@ class A { } //// [unusedTypeParameterInLambda1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -15,5 +29,6 @@ var A = (function () { return function () { }; }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedTypeParameterInLambda2.js b/tests/baselines/reference/unusedTypeParameterInLambda2.js index 46332f44dbdfc..e9c2c88a6a570 100644 --- a/tests/baselines/reference/unusedTypeParameterInLambda2.js +++ b/tests/baselines/reference/unusedTypeParameterInLambda2.js @@ -9,6 +9,20 @@ class A { } //// [unusedTypeParameterInLambda2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -18,5 +32,6 @@ var A = (function () { a; }; }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedTypeParameterInMethod1.js b/tests/baselines/reference/unusedTypeParameterInMethod1.js index d35afc1cdb330..b28fffce5069a 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod1.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod1.js @@ -9,6 +9,20 @@ class A { } //// [unusedTypeParameterInMethod1.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -18,5 +32,6 @@ var A = (function () { a; b; }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedTypeParameterInMethod2.js b/tests/baselines/reference/unusedTypeParameterInMethod2.js index c5b70ef8d8a50..9d737cce6f30d 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod2.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod2.js @@ -9,6 +9,20 @@ class A { } //// [unusedTypeParameterInMethod2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -18,5 +32,6 @@ var A = (function () { a; b; }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedTypeParameterInMethod3.js b/tests/baselines/reference/unusedTypeParameterInMethod3.js index 3b6a19191bb1c..15783e3ec2c5b 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod3.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod3.js @@ -9,6 +9,20 @@ class A { } //// [unusedTypeParameterInMethod3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } @@ -18,5 +32,6 @@ var A = (function () { a; b; }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedTypeParameterInMethod4.js b/tests/baselines/reference/unusedTypeParameterInMethod4.js index fcb368276d199..5fe8e59a6500f 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod4.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod4.js @@ -6,10 +6,25 @@ class A { } //// [unusedTypeParameterInMethod4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var A = (function () { function A() { } A.prototype.f1 = function () { }; + __names(A.prototype, ["f1"]); return A; }()); diff --git a/tests/baselines/reference/unusedTypeParameters2.js b/tests/baselines/reference/unusedTypeParameters2.js index ed89c5550234c..1fb1418637d6c 100644 --- a/tests/baselines/reference/unusedTypeParameters2.js +++ b/tests/baselines/reference/unusedTypeParameters2.js @@ -8,11 +8,26 @@ class greeter { } //// [unusedTypeParameters2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } greeter.prototype.function1 = function () { this.x; }; + __names(greeter.prototype, ["function1"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedTypeParameters3.js b/tests/baselines/reference/unusedTypeParameters3.js index 5644a177bef2a..19634509b1666 100644 --- a/tests/baselines/reference/unusedTypeParameters3.js +++ b/tests/baselines/reference/unusedTypeParameters3.js @@ -8,11 +8,26 @@ class greeter { } //// [unusedTypeParameters3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var greeter = (function () { function greeter() { } greeter.prototype.function1 = function () { this.x; }; + __names(greeter.prototype, ["function1"]); return greeter; }()); diff --git a/tests/baselines/reference/unusedVariablesinNamespaces2.js b/tests/baselines/reference/unusedVariablesinNamespaces2.js index f306f3992e111..c479aa8bfdd38 100644 --- a/tests/baselines/reference/unusedVariablesinNamespaces2.js +++ b/tests/baselines/reference/unusedVariablesinNamespaces2.js @@ -11,6 +11,20 @@ namespace Validation { } //// [unusedVariablesinNamespaces2.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Validation; (function (Validation) { var lettersRegexp = /^[A-Za-z]+$/; @@ -21,6 +35,7 @@ var Validation; LettersOnlyValidator.prototype.isAcceptable = function (s2) { return lettersRegexp.test(s2); }; + __names(LettersOnlyValidator.prototype, ["isAcceptable"]); return LettersOnlyValidator; }()); Validation.LettersOnlyValidator = LettersOnlyValidator; diff --git a/tests/baselines/reference/unusedVariablesinNamespaces3.js b/tests/baselines/reference/unusedVariablesinNamespaces3.js index f293f589d6585..8462206adf388 100644 --- a/tests/baselines/reference/unusedVariablesinNamespaces3.js +++ b/tests/baselines/reference/unusedVariablesinNamespaces3.js @@ -12,6 +12,20 @@ namespace Validation { } //// [unusedVariablesinNamespaces3.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var Validation; (function (Validation) { var lettersRegexp = /^[A-Za-z]+$/; @@ -23,6 +37,7 @@ var Validation; LettersOnlyValidator.prototype.isAcceptable = function (s2) { return lettersRegexp.test(s2); }; + __names(LettersOnlyValidator.prototype, ["isAcceptable"]); return LettersOnlyValidator; }()); Validation.LettersOnlyValidator = LettersOnlyValidator; diff --git a/tests/baselines/reference/vararg.js b/tests/baselines/reference/vararg.js index bd4a79b462631..f99b030af4a77 100644 --- a/tests/baselines/reference/vararg.js +++ b/tests/baselines/reference/vararg.js @@ -39,6 +39,20 @@ result+=x.fonly("a","b","c","d"); //ok //// [vararg.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var M; (function (M) { var C = (function () { @@ -73,6 +87,7 @@ var M; } return builder; }; + __names(C.prototype, ["f", "fnope", "fonly"]); return C; }()); M.C = C; diff --git a/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js b/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js index ed6111ec3c570..6f66f73fd779d 100644 --- a/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js +++ b/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js @@ -126,6 +126,20 @@ class FileService { } //// [variableDeclaratorResolvedDuringContextualTyping.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var WinJS; (function (WinJS) { })(WinJS || (WinJS = {})); @@ -159,5 +173,6 @@ var FileService = (function () { return WinJS.Promise.wrapError(new Errors.ConnectionError(xhr)); }); }; + __names(FileService.prototype, ["uploadData"]); return FileService; }()); diff --git a/tests/baselines/reference/visibilityOfTypeParameters.js b/tests/baselines/reference/visibilityOfTypeParameters.js index 3a1adf3f97d35..278ebb5280bac 100644 --- a/tests/baselines/reference/visibilityOfTypeParameters.js +++ b/tests/baselines/reference/visibilityOfTypeParameters.js @@ -7,6 +7,20 @@ export class MyClass { //// [visibilityOfTypeParameters.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; var MyClass = (function () { function MyClass() { @@ -14,6 +28,7 @@ var MyClass = (function () { MyClass.prototype.myMethod = function (val) { return val; }; + __names(MyClass.prototype, ["myMethod"]); return MyClass; }()); exports.MyClass = MyClass; diff --git a/tests/baselines/reference/witness.js b/tests/baselines/reference/witness.js index ebd1669d17764..5223630a173a6 100644 --- a/tests/baselines/reference/witness.js +++ b/tests/baselines/reference/witness.js @@ -137,6 +137,20 @@ var qq: any; //// [witness.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); // Initializers var varInit = varInit; // any var pInit; @@ -152,6 +166,7 @@ var InitClass = (function () { var y = this.x; var y; }; + __names(InitClass.prototype, ["fn"]); return InitClass; }()); // Return type @@ -226,6 +241,7 @@ var C = (function () { var a; return new a(this.fn3); }; + __names(C.prototype, ["fn1", "fn2", "fn3"]); return C; }()); function fn5() { diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints.js b/tests/baselines/reference/wrappedAndRecursiveConstraints.js index 06103235ecb97..689185d1cd9f0 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints.js @@ -18,6 +18,20 @@ var r = c.foo(y); //// [wrappedAndRecursiveConstraints.js] // no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(data) { this.data = data; @@ -25,6 +39,7 @@ var C = (function () { C.prototype.foo = function (x) { return x; }; + __names(C.prototype, ["foo"]); return C; }()); var y = null; diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints3.js b/tests/baselines/reference/wrappedAndRecursiveConstraints3.js index b5d6e65a1832a..0039016b2d584 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints3.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints3.js @@ -17,6 +17,20 @@ var r2 = r(''); //// [wrappedAndRecursiveConstraints3.js] // no errors expected +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x) { } @@ -26,6 +40,7 @@ var C = (function () { } return bar; }; + __names(C.prototype, ["foo"]); return C; }()); var c = new C({ length: 2 }); diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints4.js b/tests/baselines/reference/wrappedAndRecursiveConstraints4.js index 2a84f8cc4262c..53bf5b1d3423f 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints4.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints4.js @@ -14,6 +14,20 @@ var r = c.foo(''); var r2 = r({ length: 3, charAt: (x: number) => { '' } }); // error //// [wrappedAndRecursiveConstraints4.js] +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true, writable: false, enumerable: false + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); var C = (function () { function C(x) { } @@ -23,6 +37,7 @@ var C = (function () { } return bar; }; + __names(C.prototype, ["foo"]); return C; }()); var c = new C({ length: 2 }); From f59c1bca5f73d7464dd1f826ba3015e7615d9aad Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 7 Aug 2017 18:02:56 -0700 Subject: [PATCH 3/4] Leverage defaults --- src/compiler/transformers/es2015.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index aa623e628ecf9..7d38c3a1cd305 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -4137,7 +4137,7 @@ namespace ts { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; From 0df7d2c74aa1a4dcbb63347d94dabdafca00ab00 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 7 Aug 2017 18:06:28 -0700 Subject: [PATCH 4/4] Accept new baselines --- tests/baselines/reference/2dArrays.js | 2 +- .../baselines/reference/ClassDeclaration11.js | 2 +- .../baselines/reference/ClassDeclaration13.js | 2 +- .../baselines/reference/ClassDeclaration21.js | 2 +- .../baselines/reference/ClassDeclaration22.js | 2 +- .../reference/ES5For-ofTypeCheck10.js | 2 +- .../baselines/reference/ES5SymbolProperty2.js | 2 +- .../baselines/reference/ES5SymbolProperty3.js | 2 +- .../baselines/reference/ES5SymbolProperty4.js | 2 +- .../baselines/reference/ES5SymbolProperty5.js | 2 +- .../baselines/reference/ES5SymbolProperty6.js | 2 +- .../baselines/reference/ES5SymbolProperty7.js | 2 +- ...hichExtendsInterfaceWithInaccessibleType.js | 2 +- tests/baselines/reference/Protected4.js | 2 +- tests/baselines/reference/Protected7.js | 2 +- ...portedAndNonExportedClassesOfTheSameName.js | 2 +- tests/baselines/reference/abstractProperty.js | 2 +- .../accessInstanceMemberFromStaticMethod01.js | 2 +- .../accessOverriddenBaseClassMember1.js | 2 +- .../reference/accessibilityModifiers.js | 2 +- .../ambiguousCallsWhereReturnTypesAgree.js | 2 +- tests/baselines/reference/anonterface.js | 2 +- .../reference/anonymousClassExpression2.js | 2 +- tests/baselines/reference/argsInScope.js | 2 +- .../reference/arrayAssignmentTest1.js | 2 +- .../reference/arrayAssignmentTest2.js | 2 +- .../reference/arrayAssignmentTest4.js | 2 +- .../reference/arrayAssignmentTest5.js | 2 +- .../reference/arrayAssignmentTest6.js | 2 +- .../reference/arrayBestCommonTypes.js | 2 +- .../reference/arrayOfExportedClass.js | 2 +- .../reference/arrayReferenceWithoutTypeArgs.js | 2 +- tests/baselines/reference/arrayconcat.js | 2 +- .../reference/arrowFunctionExpressions.js | 2 +- tests/baselines/reference/asiAbstract.js | 2 +- tests/baselines/reference/asiInES6Classes.js | 2 +- .../reference/asiPublicPrivateProtected.js | 2 +- .../reference/assertInWrapSomeTypeParameter.js | 2 +- .../reference/assignToExistingClass.js | 2 +- ...tCompatInterfaceWithStringIndexSignature.js | 2 +- .../reference/assignmentLHSIsValue.js | 2 +- .../reference/asyncAwaitIsolatedModules_es5.js | 2 +- tests/baselines/reference/asyncAwait_es5.js | 2 +- .../reference/asyncImportedPromise_es5.js | 2 +- .../baselines/reference/augmentedTypesClass.js | 2 +- .../reference/augmentedTypesClass2.js | 2 +- .../reference/augmentedTypesClass2a.js | 2 +- .../reference/augmentedTypesClass3.js | 2 +- .../reference/augmentedTypesClass4.js | 2 +- .../baselines/reference/augmentedTypesEnum.js | 2 +- .../baselines/reference/augmentedTypesEnum2.js | 2 +- .../reference/augmentedTypesExternalModule1.js | 2 +- .../reference/augmentedTypesFunction.js | 2 +- .../reference/augmentedTypesInterface.js | 2 +- .../reference/augmentedTypesModules.js | 2 +- .../reference/augmentedTypesModules2.js | 2 +- .../reference/augmentedTypesModules3.js | 2 +- .../reference/augmentedTypesModules3b.js | 2 +- .../reference/augmentedTypesModules4.js | 2 +- tests/baselines/reference/augmentedTypesVar.js | 2 +- tests/baselines/reference/autoLift2.js | 2 +- tests/baselines/reference/autolift4.js | 2 +- tests/baselines/reference/avoid.js | 2 +- tests/baselines/reference/baseCheck.js | 2 +- .../reference/baseTypeAfterDerivedType.js | 2 +- .../baseTypeWrappingInstantiationChain.js | 2 +- .../reference/binopAssignmentShouldHaveType.js | 2 +- ...ckScopedFunctionDeclarationInStrictClass.js | 2 +- .../blockScopedVariablesUseBeforeDef.js | 2 +- ...nctionWithIncorrectNumberOfTypeArguments.js | 2 +- ...callGenericFunctionWithZeroTypeArguments.js | 2 +- .../callNonGenericFunctionWithTypeArguments.js | 2 +- .../callOverloadViaElementAccessExpression.js | 2 +- tests/baselines/reference/callOverloads1.js | 2 +- tests/baselines/reference/callOverloads2.js | 2 +- tests/baselines/reference/callOverloads3.js | 2 +- tests/baselines/reference/callOverloads4.js | 2 +- tests/baselines/reference/callOverloads5.js | 2 +- ...atureWithOptionalParameterAndInitializer.js | 2 +- ...esWithAccessibilityModifiersOnParameters.js | 2 +- .../callSignaturesWithDuplicateParameters.js | 2 +- .../callSignaturesWithOptionalParameters.js | 2 +- .../callSignaturesWithOptionalParameters2.js | 2 +- .../callSignaturesWithParameterInitializers.js | 2 +- ...callSignaturesWithParameterInitializers2.js | 2 +- tests/baselines/reference/callWithSpread.js | 2 +- .../captureSuperPropertyAccessInSuperCall01.js | 2 +- .../reference/captureThisInSuperCall.js | 2 +- .../reference/capturedLetConstInLoop10.js | 2 +- .../reference/capturedLetConstInLoop13.js | 2 +- .../reference/capturedLetConstInLoop9.js | 2 +- ...ParameterConstrainedToOtherTypeParameter.js | 2 +- ...arameterConstrainedToOtherTypeParameter2.js | 2 +- .../reference/checkJsxChildrenProperty10.js | 2 +- .../reference/checkJsxChildrenProperty11.js | 2 +- .../reference/checkJsxChildrenProperty12.js | 2 +- .../reference/checkJsxChildrenProperty13.js | 2 +- .../reference/checkJsxChildrenProperty3.js | 2 +- .../reference/checkJsxChildrenProperty4.js | 2 +- .../reference/checkJsxChildrenProperty5.js | 2 +- .../reference/checkJsxChildrenProperty6.js | 2 +- .../reference/checkJsxChildrenProperty7.js | 2 +- .../reference/checkJsxChildrenProperty8.js | 2 +- .../checkSwitchStatementIfCaseTypeIsString.js | 2 +- .../reference/classAbstractAsIdentifier.js | 2 +- .../reference/classAbstractCrashedOnce.js | 2 +- .../reference/classAbstractExtends.js | 2 +- .../reference/classAbstractGeneric.js | 2 +- .../reference/classAbstractInstantiations2.js | 2 +- .../classAbstractMethodInNonAbstractClass.js | 2 +- .../classAbstractMethodWithImplementation.js | 2 +- .../reference/classAbstractOverloads.js | 2 +- .../classAbstractOverrideWithAbstract.js | 2 +- .../reference/classAbstractSuperCalls.js | 2 +- .../classAbstractUsingAbstractMethod1.js | 2 +- .../classAbstractUsingAbstractMethods2.js | 2 +- tests/baselines/reference/classBlockScoping.js | 2 +- .../classConstructorAccessibility2.js | 2 +- .../classConstructorAccessibility4.js | 2 +- tests/baselines/reference/classExpression4.js | 2 +- tests/baselines/reference/classExpression5.js | 2 +- .../reference/classExpressionTest1.js | 2 +- .../reference/classExpressionTest2.js | 2 +- tests/baselines/reference/classExpressions.js | 2 +- .../baselines/reference/classExtendingClass.js | 2 +- ...dsInterfaceThatExtendsClassWithPrivates1.js | 2 +- .../reference/classImplementsClass2.js | 2 +- .../reference/classImplementsClass3.js | 2 +- .../reference/classImplementsClass4.js | 2 +- .../reference/classImplementsClass5.js | 2 +- .../reference/classImplementsClass6.js | 2 +- .../classImplementsImportedInterface.js | 2 +- tests/baselines/reference/classOrder1.js | 2 +- tests/baselines/reference/classOrder2.js | 2 +- .../reference/classPropertyAsPrivate.js | 2 +- .../reference/classPropertyAsProtected.js | 2 +- .../classPropertyIsPublicByDefault.js | 2 +- .../reference/classSideInheritance1.js | 2 +- .../reference/classSideInheritance2.js | 2 +- .../reference/classWithDuplicateIdentifier.js | 2 +- .../reference/classWithMultipleBaseClasses.js | 2 +- ...thOnlyPublicMembersEquivalentToInterface.js | 2 +- ...hOnlyPublicMembersEquivalentToInterface2.js | 2 +- .../reference/classWithOptionalParameter.js | 2 +- ...assWithOverloadImplementationOfWrongName.js | 2 +- ...ssWithOverloadImplementationOfWrongName2.js | 2 +- .../reference/classWithPrivateProperty.js | 2 +- .../reference/classWithProtectedProperty.js | 2 +- .../reference/classWithPublicProperty.js | 2 +- tests/baselines/reference/classdecl.js | 2 +- .../cloduleAcrossModuleDefinitions.js | 2 +- .../reference/collisionArgumentsClassMethod.js | 2 +- ...collisionCodeGenModuleWithMethodChildren.js | 2 +- .../collisionRestParameterClassMethod.js | 2 +- .../collisionSuperAndLocalFunctionInMethod.js | 2 +- .../collisionSuperAndLocalVarInMethod.js | 2 +- .../collisionSuperAndNameResolution.js | 2 +- .../reference/collisionSuperAndParameter.js | 2 +- .../reference/collisionSuperAndParameter1.js | 2 +- ...llisionThisExpressionAndLocalVarInMethod.js | 2 +- ...ExpressionAndLocalVarWithSuperExperssion.js | 2 +- ...collisionThisExpressionAndNameResolution.js | 2 +- .../collisionThisExpressionAndParameter.js | 2 +- .../reference/commentOnClassMethod1.js | 2 +- .../baselines/reference/commentOnSignature1.js | 2 +- .../reference/commentsClassMembers.js | 2 +- .../baselines/reference/commentsInheritance.js | 2 +- tests/baselines/reference/commentsOverloads.js | 2 +- .../reference/commentsTypeParameters.js | 2 +- .../reference/commentsdoNotEmitComments.js | 2 +- .../reference/commentsemitComments.js | 2 +- .../comparisonOperatorWithIdenticalObjects.js | 2 +- .../reference/complexClassRelationships.js | 2 +- .../reference/complexNarrowingWithAny.js | 2 +- .../baselines/reference/complicatedPrivacy.js | 2 +- .../reference/compoundAssignmentLHSIsValue.js | 2 +- ...mpoundExponentiationAssignmentLHSIsValue.js | 2 +- .../reference/computedPropertyNames10_ES5.js | 2 +- .../reference/computedPropertyNames13_ES5.js | 2 +- .../reference/computedPropertyNames14_ES5.js | 2 +- .../reference/computedPropertyNames15_ES5.js | 2 +- .../reference/computedPropertyNames21_ES5.js | 2 +- .../reference/computedPropertyNames22_ES5.js | 2 +- .../reference/computedPropertyNames23_ES5.js | 2 +- .../reference/computedPropertyNames24_ES5.js | 2 +- .../reference/computedPropertyNames25_ES5.js | 2 +- .../reference/computedPropertyNames26_ES5.js | 2 +- .../reference/computedPropertyNames27_ES5.js | 2 +- .../reference/computedPropertyNames28_ES5.js | 2 +- .../reference/computedPropertyNames29_ES5.js | 2 +- .../reference/computedPropertyNames2_ES5.js | 2 +- .../reference/computedPropertyNames30_ES5.js | 2 +- .../reference/computedPropertyNames31_ES5.js | 2 +- .../reference/computedPropertyNames32_ES5.js | 2 +- .../reference/computedPropertyNames33_ES5.js | 2 +- .../reference/computedPropertyNames34_ES5.js | 2 +- .../reference/computedPropertyNames3_ES5.js | 2 +- .../reference/computedPropertyNames40_ES5.js | 2 +- ...computedPropertyNamesContextualType1_ES5.js | 2 +- ...computedPropertyNamesContextualType2_ES5.js | 2 +- ...computedPropertyNamesContextualType3_ES5.js | 2 +- ...omputedPropertyNamesDeclarationEmit1_ES5.js | 2 +- ...omputedPropertyNamesDeclarationEmit5_ES5.js | 2 +- .../computedPropertyNamesOnOverloads_ES5.js | 2 +- .../computedPropertyNamesSourceMap1_ES5.js | 2 +- ...edPropertyNamesSourceMap1_ES5.sourcemap.txt | 2 +- .../computedPropertyNamesSourceMap2_ES5.js | 2 +- ...edPropertyNamesSourceMap2_ES5.sourcemap.txt | 2 +- .../reference/conflictMarkerDiff3Trivia2.js | 2 +- .../reference/conflictMarkerTrivia2.js | 2 +- .../reference/constantOverloadFunction.js | 2 +- .../constantOverloadFunctionNoSubtypeError.js | 2 +- ...onstraintCheckInGenericBaseTypeReference.js | 2 +- .../reference/constructorOverloads1.js | 2 +- .../reference/constructorOverloads2.js | 2 +- .../reference/constructorOverloads3.js | 2 +- .../reference/constructorReturnsInvalidType.js | 2 +- .../constructorWithIncompleteTypeAnnotation.js | 2 +- .../contextualTypeAppliedToVarArgs.js | 2 +- ...yTypedClassExpressionMethodDeclaration02.js | 2 +- .../controlFlowSuperPropertyAccess.js | 2 +- .../reference/crashInresolveReturnStatement.js | 2 +- ...crashIntypeCheckObjectCreationExpression.js | 2 +- .../baselines/reference/crashRegressionTest.js | 2 +- .../declFileForClassWithMultipleBaseClasses.js | 2 +- ...ileForClassWithPrivateOverloadedFunction.js | 2 +- .../reference/declFileForTypeParameters.js | 2 +- tests/baselines/reference/declFileMethods.js | 4 ++-- .../declFilePrivateMethodOverloads.js | 2 +- tests/baselines/reference/declInput-2.js | 2 +- tests/baselines/reference/declInput.js | 2 +- tests/baselines/reference/declInput3.js | 2 +- tests/baselines/reference/declInput4.js | 2 +- .../declarationEmitClassMemberNameConflict.js | 2 +- .../declarationEmitProtectedMembers.js | 2 +- .../declarationEmitThisPredicates01.js | 2 +- ...ationEmitThisPredicatesWithPrivateName01.js | 2 +- tests/baselines/reference/declarationFiles.js | 2 +- .../baselines/reference/declarationMerging1.js | 2 +- .../baselines/reference/declarationMerging2.js | 2 +- .../reference/decoratorChecksFunctionBodies.js | 2 +- tests/baselines/reference/decoratorMetadata.js | 2 +- ...torMetadataRestParameterWithImportedType.js | 2 +- tests/baselines/reference/decoratorOnClass9.js | 2 +- .../reference/decoratorOnClassMethod1.js | 2 +- .../reference/decoratorOnClassMethod10.js | 2 +- .../reference/decoratorOnClassMethod11.js | 2 +- .../reference/decoratorOnClassMethod12.js | 2 +- .../reference/decoratorOnClassMethod2.js | 2 +- .../reference/decoratorOnClassMethod3.js | 2 +- .../reference/decoratorOnClassMethod8.js | 2 +- .../decoratorOnClassMethodOverload1.js | 2 +- .../decoratorOnClassMethodOverload2.js | 2 +- .../decoratorOnClassMethodParameter1.js | 2 +- .../reference/defaultArgsInOverloads.js | 2 +- ...vedClassConstructorWithExplicitReturns01.js | 2 +- ...structorWithExplicitReturns01.sourcemap.txt | 2 +- ...dClassFunctionOverridesBaseClassAccessor.js | 2 +- .../derivedClassIncludesInheritedMembers.js | 2 +- .../derivedClassOverridesPrivateFunction1.js | 2 +- .../derivedClassOverridesProtectedMembers.js | 2 +- .../derivedClassOverridesProtectedMembers2.js | 2 +- .../derivedClassOverridesProtectedMembers3.js | 2 +- .../derivedClassOverridesPublicMembers.js | 2 +- ...edClassSuperCallsInNonConstructorMembers.js | 2 +- .../reference/derivedClassTransitivity.js | 2 +- .../reference/derivedClassTransitivity2.js | 2 +- .../reference/derivedClassTransitivity3.js | 2 +- .../reference/derivedClassTransitivity4.js | 2 +- .../baselines/reference/derivedClassWithAny.js | 2 +- ...rivateInstanceShadowingProtectedInstance.js | 2 +- ...thPrivateInstanceShadowingPublicInstance.js | 2 +- tests/baselines/reference/derivedClasses.js | 2 +- .../reference/derivedGenericClassWithAny.js | 2 +- ...ssesHiddenBaseCallViaSuperPropertyAccess.js | 2 +- ...vedTypeCallingBaseImplWithOptionalParams.js | 2 +- .../destructuringParameterDeclaration1ES5.js | 2 +- ...ucturingParameterDeclaration1ES5iterable.js | 2 +- .../destructuringParameterDeclaration2.js | 2 +- .../destructuringParameterProperties2.js | 2 +- .../destructuringParameterProperties3.js | 2 +- .../detachedCommentAtStartOfFunctionBody1.js | 2 +- .../detachedCommentAtStartOfFunctionBody2.js | 2 +- .../detachedCommentAtStartOfLambdaFunction1.js | 2 +- .../detachedCommentAtStartOfLambdaFunction2.js | 2 +- .../doNotEmitPinnedCommentOnNotEmittedNode.js | 2 +- ...doNotEmitPinnedCommentOnNotEmittedNodets.js | 2 +- .../reference/dottedSymbolResolution1.js | 2 +- .../baselines/reference/downlevelLetConst16.js | 2 +- .../reference/duplicateClassElements.js | 2 +- .../reference/duplicateLocalVariable1.js | 2 +- .../reference/duplicateLocalVariable2.js | 2 +- .../reference/duplicatePropertyNames.js | 2 +- .../reference/duplicateTypeParameters2.js | 2 +- .../reference/duplicateVariablesByScope.js | 2 +- .../emitArrowFunctionWhenUsingArguments12.js | 2 +- .../emitCapturingThisInTupleDestructuring2.js | 2 +- .../emitClassExpressionInDeclarationFile.js | 2 +- .../emitClassExpressionInDeclarationFile2.js | 2 +- .../reference/emitDecoratorMetadata_object.js | 2 +- .../emitDecoratorMetadata_restArgs.js | 2 +- .../reference/emitDefaultParametersMethod.js | 2 +- .../reference/emitMemberAccessExpression.js | 2 +- .../reference/emitRestParametersMethod.js | 2 +- .../reference/emitThisInSuperMethodCall.js | 2 +- ...emitter.asyncGenerators.classMethods.es5.js | 18 +++++++++--------- .../errorRecoveryInClassDeclaration.js | 2 +- tests/baselines/reference/errorSuperCalls.js | 2 +- .../reference/errorSuperPropertyAccess.js | 2 +- .../reference/errorsInGenericTypeReference.js | 2 +- tests/baselines/reference/es3-amd.js | 2 +- .../baselines/reference/es3-declaration-amd.js | 2 +- tests/baselines/reference/es3-sourcemap-amd.js | 2 +- .../reference/es3-sourcemap-amd.sourcemap.txt | 2 +- tests/baselines/reference/es5-amd.js | 2 +- tests/baselines/reference/es5-commonjs.js | 2 +- tests/baselines/reference/es5-commonjs4.js | 2 +- .../baselines/reference/es5-declaration-amd.js | 2 +- tests/baselines/reference/es5-souremap-amd.js | 2 +- .../reference/es5-souremap-amd.sourcemap.txt | 2 +- tests/baselines/reference/es5-system.js | 2 +- tests/baselines/reference/es5-umd.js | 2 +- tests/baselines/reference/es5-umd2.js | 2 +- tests/baselines/reference/es5-umd3.js | 2 +- tests/baselines/reference/es5-umd4.js | 2 +- .../es5ExportDefaultClassDeclaration.js | 2 +- .../es5ExportDefaultClassDeclaration2.js | 2 +- .../es5ExportDefaultClassDeclaration3.js | 2 +- .../baselines/reference/es5ExportEqualsDts.js | 2 +- .../reference/es5ModuleWithModuleGenAmd.js | 2 +- .../es5ModuleWithModuleGenCommonjs.js | 2 +- .../es5ModuleWithoutModuleGenTarget.js | 2 +- tests/baselines/reference/es5andes6module.js | 2 +- tests/baselines/reference/es6ClassTest.js | 2 +- tests/baselines/reference/es6ClassTest2.js | 2 +- tests/baselines/reference/es6ClassTest3.js | 2 +- tests/baselines/reference/es6DeclOrdering.js | 2 +- tests/baselines/reference/es6MemberScoping.js | 2 +- .../reference/es6modulekindWithES5Target.js | 2 +- .../reference/es6modulekindWithES5Target11.js | 2 +- .../reference/es6modulekindWithES5Target2.js | 2 +- .../reference/es6modulekindWithES5Target3.js | 2 +- .../baselines/reference/escapedIdentifiers.js | 2 +- tests/baselines/reference/exportPrivateType.js | 2 +- .../reference/expressionTypeNodeShouldError.js | 6 +++--- .../extendAndImplementTheSameBaseType.js | 2 +- .../extendAndImplementTheSameBaseType2.js | 2 +- .../reference/extendNonClassSymbol1.js | 2 +- .../reference/extendsClauseAlreadySeen.js | 2 +- .../reference/extendsClauseAlreadySeen2.js | 2 +- .../reference/externalModuleQualification.js | 2 +- tests/baselines/reference/fatArrowSelf.js | 2 +- tests/baselines/reference/flowInFinally1.js | 2 +- tests/baselines/reference/fluentClasses.js | 2 +- tests/baselines/reference/for-inStatements.js | 2 +- .../reference/for-inStatementsInvalid.js | 2 +- .../reference/forwardRefInClassProperties.js | 2 +- .../functionAndPropertyNameConflict.js | 2 +- .../reference/functionArgShadowing.js | 2 +- .../functionExpressionContextualTyping1.js | 2 +- .../reference/functionOverloadErrors.js | 2 +- .../baselines/reference/functionOverloads5.js | 2 +- .../baselines/reference/functionOverloads7.js | 2 +- .../reference/functionOverloadsOutOfOrder.js | 2 +- .../reference/functionSubtypingOfVarArgs.js | 2 +- .../reference/functionSubtypingOfVarArgs2.js | 2 +- .../reference/functionWithSameNameAsField.js | 2 +- .../reference/functionsInClassExpressions.js | 2 +- tests/baselines/reference/fuzzy.js | 2 +- .../genericArrayWithoutTypeAnnotation.js | 2 +- .../genericAssignmentCompatWithInterfaces1.js | 2 +- .../genericBaseClassLiteralProperty.js | 2 +- .../genericBaseClassLiteralProperty2.js | 2 +- .../genericCallTypeArgumentInference.js | 2 +- ...CallWithConstraintsTypeArgumentInference.js | 2 +- .../reference/genericCallWithFixedArguments.js | 2 +- .../genericCallbacksAndClassHierarchy.js | 2 +- ...icClassPropertyInheritanceSpecialization.js | 2 +- ...ricClassWithFunctionTypedMemberArguments.js | 2 +- ...ricClassWithObjectTypeArgsAndConstraints.js | 2 +- .../reference/genericClassWithStaticFactory.js | 2 +- tests/baselines/reference/genericClasses4.js | 2 +- .../reference/genericClassesInModule2.js | 2 +- .../reference/genericCloduleInModule.js | 2 +- .../reference/genericCloduleInModule2.js | 2 +- .../reference/genericCloneReturnTypes.js | 2 +- .../reference/genericCloneReturnTypes2.js | 2 +- .../baselines/reference/genericConstraint1.js | 2 +- .../baselines/reference/genericConstraint2.js | 2 +- .../genericFunctionsWithOptionalParameters3.js | 2 +- tests/baselines/reference/genericImplements.js | 2 +- tests/baselines/reference/genericInstanceOf.js | 2 +- .../genericInterfaceImplementation.js | 2 +- .../reference/genericMemberFunction.js | 2 +- .../reference/genericObjectLitReturnType.js | 2 +- .../reference/genericOfACloduleType1.js | 2 +- .../reference/genericOfACloduleType2.js | 2 +- .../reference/genericPrototypeProperty.js | 2 +- ...nericRecursiveImplicitConstructorErrors2.js | 2 +- ...nericRecursiveImplicitConstructorErrors3.js | 2 +- .../genericReversingTypeParameters.js | 2 +- .../genericReversingTypeParameters2.js | 2 +- .../reference/genericSpecializations1.js | 2 +- .../reference/genericSpecializations2.js | 2 +- .../reference/genericSpecializations3.js | 2 +- .../reference/genericTypeAssertions1.js | 2 +- .../reference/genericTypeAssertions2.js | 2 +- .../reference/genericTypeAssertions4.js | 2 +- .../reference/genericTypeAssertions6.js | 2 +- .../reference/genericTypeConstraints.js | 2 +- .../genericTypeReferencesRequireTypeArgs.js | 2 +- .../genericTypeWithCallableMembers.js | 2 +- .../genericTypeWithNonGenericBaseMisMatch.js | 2 +- .../reference/genericWithCallSignatures1.js | 2 +- .../genericWithIndexerOfTypeParameterType1.js | 2 +- .../genericWithIndexerOfTypeParameterType2.js | 2 +- .../genericWithOpenTypeParameters1.js | 2 +- .../genericsWithDuplicateTypeParameters1.js | 2 +- .../genericsWithoutTypeParameters1.js | 2 +- .../reference/getAndSetAsMemberNames.js | 2 +- .../reference/getterControlFlowStrictNull.js | 2 +- .../getterThatThrowsShouldNotNeedReturn.js | 2 +- tests/baselines/reference/giant.js | 2 +- .../baselines/reference/grammarAmbiguities1.js | 2 +- .../heterogeneousArrayAndOverloads.js | 2 +- .../implementGenericWithMismatchedTypes.js | 2 +- .../implementInterfaceAnyMemberWithVoid.js | 2 +- .../reference/implementsClauseAlreadySeen.js | 2 +- .../reference/implementsInClassExpression.js | 2 +- .../implicitAnyAnyReturningFunction.js | 2 +- .../reference/implicitAnyCastedValue.js | 2 +- .../implicitAnyDeclareMemberWithoutType2.js | 2 +- ...implicitAnyFunctionReturnNullOrUndefined.js | 2 +- .../baselines/reference/implicitAnyInCatch.js | 2 +- .../importAndVariableDeclarationConflict2.js | 2 +- tests/baselines/reference/importAsBaseClass.js | 2 +- .../importCallExpressionAsyncES3AMD.js | 2 +- .../importCallExpressionAsyncES3CJS.js | 2 +- .../importCallExpressionAsyncES3System.js | 2 +- .../importCallExpressionAsyncES3UMD.js | 2 +- .../importCallExpressionAsyncES5AMD.js | 2 +- .../importCallExpressionAsyncES5CJS.js | 2 +- .../importCallExpressionAsyncES5System.js | 2 +- .../importCallExpressionAsyncES5UMD.js | 2 +- .../reference/importCallExpressionES5AMD.js | 2 +- .../reference/importCallExpressionES5CJS.js | 2 +- .../reference/importCallExpressionES5System.js | 2 +- .../reference/importCallExpressionES5UMD.js | 2 +- ...mportCallExpressionNoModuleKindSpecified.js | 4 ++-- tests/baselines/reference/importHelpers.js | 2 +- .../reference/importHelpersNoHelpers.js | 2 +- .../reference/importHelpersNoModule.js | 2 +- .../import_reference-exported-alias.js | 2 +- .../import_reference-to-type-alias.js | 2 +- .../importedAliasesInTypePositions.js | 2 +- .../reference/inOperatorWithGeneric.js | 2 +- ...patibleAssignmentOfIdenticallyNamedTypes.js | 2 +- tests/baselines/reference/incompatibleTypes.js | 2 +- .../reference/incrementOnTypeParameter.js | 2 +- tests/baselines/reference/indexTypeCheck.js | 2 +- .../reference/indexedAccessRelation.js | 2 +- .../reference/indexedAccessTypeConstraints.js | 2 +- .../indexerReturningTypeParameter1.js | 2 +- .../baselines/reference/indexersInClassType.js | 2 +- .../inferFromGenericFunctionReturnTypes1.js | 2 +- .../inferFromGenericFunctionReturnTypes2.js | 2 +- .../inferParameterWithMethodCallInitializer.js | 2 +- .../inferentialTypingUsingApparentType3.js | 2 +- .../inferringClassMembersFromAssignments.js | 2 +- tests/baselines/reference/inheritance.js | 2 +- tests/baselines/reference/inheritance1.js | 2 +- ...ritanceGrandParentPrivateMemberCollision.js | 2 +- ...ntPrivateMemberCollisionWithPublicMember.js | 2 +- ...ntPublicMemberCollisionWithPrivateMember.js | 2 +- ...nheritanceMemberAccessorOverridingMethod.js | 2 +- .../inheritanceMemberFuncOverridingAccessor.js | 2 +- .../inheritanceMemberFuncOverridingMethod.js | 2 +- .../inheritanceMemberFuncOverridingProperty.js | 2 +- ...nheritanceMemberPropertyOverridingMethod.js | 2 +- tests/baselines/reference/innerAliases2.js | 2 +- .../innerTypeParameterShadowingOuterOne2.js | 2 +- .../instanceAndStaticDeclarations1.js | 2 +- .../instanceMemberAssignsToClassPrototype.js | 2 +- ...instancePropertiesInheritedIntoClassType.js | 2 +- .../reference/instancePropertyInClassType.js | 2 +- .../instanceofOperatorWithInvalidOperands.js | 2 +- .../instantiatedBaseTypeConstraints.js | 2 +- .../instantiatedReturnTypeContravariance.js | 2 +- tests/baselines/reference/intTypeCheck.js | 2 +- .../reference/interfaceClassMerging.js | 2 +- .../reference/interfaceClassMerging2.js | 2 +- .../reference/interfaceContextualType.js | 2 +- .../reference/interfaceExtendingClass.js | 2 +- .../reference/interfaceExtendingClass2.js | 2 +- .../reference/interfaceExtendsClass1.js | 2 +- .../interfaceExtendsClassWithPrivate1.js | 2 +- .../interfaceExtendsClassWithPrivate2.js | 2 +- .../reference/interfaceImplementation1.js | 2 +- .../reference/interfaceImplementation3.js | 2 +- .../reference/interfaceImplementation4.js | 2 +- .../reference/interfaceImplementation7.js | 2 +- .../baselines/reference/interfaceSubtyping.js | 2 +- ...faceWithPropertyThatIsPrivateInBaseType2.js | 2 +- ...nalAliasClassInsideLocalModuleWithExport.js | 2 +- ...AliasClassInsideLocalModuleWithoutExport.js | 2 +- ...nsideLocalModuleWithoutExportAccessError.js | 2 +- ...AliasClassInsideTopLevelModuleWithExport.js | 2 +- ...asClassInsideTopLevelModuleWithoutExport.js | 2 +- .../reference/invalidNewTarget.es5.js | 2 +- .../reference/invalidReturnStatements.js | 2 +- .../baselines/reference/invalidStaticField.js | 2 +- ...invalidThisEmitInContextualObjectLiteral.js | 2 +- ...lationClassMethodContainingArrowFunction.js | 2 +- .../jsxFactoryQualifiedNameWithEs5.js | 2 +- .../baselines/reference/jsxInExtendsClause.js | 2 +- tests/baselines/reference/jsxViaImport.2.js | 2 +- tests/baselines/reference/jsxViaImport.js | 2 +- .../reference/keyofAndIndexedAccess.js | 2 +- tests/baselines/reference/lambdaArgCrash.js | 2 +- tests/baselines/reference/lambdaPropSelf.js | 2 +- tests/baselines/reference/lift.js | 2 +- tests/baselines/reference/listFailure.js | 2 +- tests/baselines/reference/literalTypes2.js | 2 +- tests/baselines/reference/localTypes1.js | 2 +- tests/baselines/reference/localTypes5.js | 2 +- .../reference/looseThisTypeInFunctions.js | 2 +- tests/baselines/reference/mappedTypeErrors.js | 2 +- .../reference/mappedTypePartialConstraints.js | 2 +- .../reference/matchReturnTypeInAllBranches.js | 2 +- .../memberFunctionsWithPrivateOverloads.js | 2 +- .../memberFunctionsWithPublicOverloads.js | 2 +- ...emberFunctionsWithPublicPrivateOverloads.js | 2 +- .../baselines/reference/mergedDeclarations5.js | 4 ++-- .../baselines/reference/mergedDeclarations6.js | 4 ++-- .../reference/mergedInheritedClassInterface.js | 2 +- .../reference/methodContainingLocalFunction.js | 2 +- .../methodSignatureDeclarationEmit1.js | 2 +- .../reference/mismatchedGenericArguments1.js | 2 +- .../reference/missingDecoratorType.js | 2 +- .../missingPropertiesOfClassExpression.js | 2 +- .../reference/missingReturnStatement.js | 2 +- .../reference/missingReturnStatement1.js | 2 +- tests/baselines/reference/missingSelf.js | 2 +- .../mixedStaticAndInstanceClassMembers.js | 2 +- .../reference/mixinAccessModifiers.js | 2 +- .../reference/mixinClassesAnnotated.js | 2 +- .../reference/mixinClassesAnonymous.js | 2 +- .../baselines/reference/mixinClassesMembers.js | 2 +- .../reference/mixinPrivateAndProtected.js | 2 +- .../mixingStaticAndInstanceOverloads.js | 2 +- ...difierOnClassDeclarationMemberInFunction.js | 2 +- ...odifierOnClassExpressionMemberInFunction.js | 2 +- .../reference/moduleAliasInterface.js | 2 +- .../baselines/reference/moduleCodeGenTest5.js | 2 +- .../moduleMemberWithoutTypeAnnotation1.js | 2 +- tests/baselines/reference/moduleMerge.js | 2 +- .../baselines/reference/moduleNewExportBug.js | 2 +- .../reference/moduleReopenedTypeOtherBlock.js | 2 +- .../reference/moduleReopenedTypeSameBlock.js | 2 +- .../reference/moduleVisibilityTest1.js | 2 +- .../reference/moduleVisibilityTest2.js | 2 +- tests/baselines/reference/moduledecl.js | 2 +- tests/baselines/reference/multiImportExport.js | 2 +- .../baselines/reference/multiModuleClodule1.js | 2 +- .../reference/multipleDeclarations.js | 2 +- .../baselines/reference/multipleInheritance.js | 2 +- .../mutuallyRecursiveGenericBaseTypes2.js | 2 +- .../reference/narrowTypeByInstanceof.js | 2 +- .../reference/narrowedConstInMethod.js | 2 +- tests/baselines/reference/nestedLoops.js | 2 +- tests/baselines/reference/nestedSelf.js | 2 +- tests/baselines/reference/neverType.js | 2 +- tests/baselines/reference/newArrays.js | 2 +- ...llisionThisExpressionAndLocalVarInMethod.js | 2 +- ...oImplicitAnyDestructuringInPrivateMethod.js | 2 +- .../noImplicitAnyForMethodParameters.js | 2 +- .../noImplicitAnyParametersInClass.js | 2 +- .../reference/noTypeArgumentOnReturnType1.js | 2 +- .../reference/noUnusedLocals_selfReference.js | 17 +++++++++++++++++ .../nonMergedDeclarationsAndOverloads.js | 2 +- ...ricIndexerConstrainsPropertyDeclarations.js | 2 +- ...icIndexerConstrainsPropertyDeclarations2.js | 2 +- .../reference/numericIndexerConstraint1.js | 2 +- .../reference/numericIndexerConstraint2.js | 2 +- .../objectCreationOfElementAccessExpression.js | 2 +- .../reference/objectRestParameterES5.js | 2 +- tests/baselines/reference/objectSpread.js | 2 +- .../reference/objectSpreadNegative.js | 2 +- .../objectTypeHidingMembersOfExtendedObject.js | 2 +- .../objectTypeHidingMembersOfObject.js | 2 +- ...ypeHidingMembersOfObjectAssignmentCompat.js | 2 +- ...peHidingMembersOfObjectAssignmentCompat2.js | 2 +- .../objectTypesIdentityWithCallSignatures.js | 2 +- .../objectTypesIdentityWithCallSignatures2.js | 2 +- ...tyWithCallSignaturesDifferingParamCounts.js | 2 +- ...sIdentityWithCallSignaturesWithOverloads.js | 2 +- ...ctTypesIdentityWithGenericCallSignatures.js | 2 +- ...tTypesIdentityWithGenericCallSignatures2.js | 2 +- ...ericCallSignaturesDifferingByConstraints.js | 2 +- ...ricCallSignaturesDifferingByConstraints2.js | 2 +- ...ricCallSignaturesDifferingByConstraints3.js | 2 +- ...nericCallSignaturesDifferingByReturnType.js | 2 +- ...ericCallSignaturesDifferingByReturnType2.js | 2 +- ...llSignaturesDifferingTypeParameterCounts.js | 2 +- ...allSignaturesDifferingTypeParameterNames.js | 2 +- ...yWithGenericCallSignaturesOptionalParams.js | 2 +- ...WithGenericCallSignaturesOptionalParams2.js | 2 +- ...WithGenericCallSignaturesOptionalParams3.js | 2 +- .../objectTypesWithOptionalProperties2.js | 2 +- .../reference/optionalArgsWithDefaultValues.js | 2 +- .../reference/optionalConstructorArgInSuper.js | 2 +- tests/baselines/reference/optionalMethods.js | 2 +- .../reference/optionalParamArgsTest.js | 2 +- .../reference/optionalParamInOverride.js | 2 +- tests/baselines/reference/out-flag.js | 2 +- .../baselines/reference/out-flag.sourcemap.txt | 2 +- .../reference/overloadConsecutiveness.js | 2 +- .../reference/overloadModifiersMustAgree.js | 2 +- .../overloadOnConstConstraintChecks1.js | 2 +- .../overloadOnConstConstraintChecks2.js | 2 +- .../overloadOnConstConstraintChecks3.js | 2 +- .../overloadOnConstConstraintChecks4.js | 2 +- ...onstInBaseWithBadImplementationInDerived.js | 2 +- .../reference/overloadOnConstInCallback1.js | 2 +- .../reference/overloadOnConstInheritance4.js | 2 +- .../overloadOnConstNoAnyImplementation2.js | 2 +- ...overloadOnConstNoNonSpecializedSignature.js | 2 +- .../overloadOnConstNoStringImplementation2.js | 2 +- .../overloadOnConstantsInvalidOverload1.js | 2 +- .../overloadResolutionOnDefaultConstructor1.js | 2 +- .../reference/overloadingOnConstants1.js | 2 +- .../reference/overloadsWithinClasses.js | 2 +- .../overrideBaseIntersectionMethod.js | 2 +- .../parameterInitializersForwardReferencing.js | 2 +- .../parameterNamesInTypeParameterList.js | 2 +- .../parameterPropertyOutsideConstructor.js | 2 +- .../parametersWithNoAnnotationAreAny.js | 2 +- tests/baselines/reference/parser509667.js | 2 +- tests/baselines/reference/parser553699.js | 2 +- tests/baselines/reference/parser618973.js | 2 +- tests/baselines/reference/parserAstSpans1.js | 2 +- tests/baselines/reference/parserClass1.js | 2 +- .../reference/parserClassDeclaration11.js | 2 +- .../reference/parserClassDeclaration13.js | 2 +- .../reference/parserClassDeclaration16.js | 2 +- .../reference/parserClassDeclaration19.js | 2 +- .../reference/parserClassDeclaration20.js | 2 +- .../reference/parserClassDeclaration21.js | 2 +- .../reference/parserClassDeclaration22.js | 2 +- .../parserES5ComputedPropertyName3.js | 2 +- .../reference/parserES5SymbolProperty7.js | 2 +- .../reference/parserErrantSemicolonInClass1.js | 2 +- .../parserErrorRecoveryIfStatement1.js | 2 +- .../parserErrorRecoveryIfStatement2.js | 2 +- .../parserErrorRecoveryIfStatement3.js | 2 +- .../parserErrorRecoveryIfStatement4.js | 2 +- .../parserErrorRecoveryIfStatement5.js | 2 +- .../parserErrorRecoveryIfStatement6.js | 2 +- .../reference/parserErrorRecovery_Block3.js | 2 +- ...rErrorRecovery_IncompleteMemberVariable1.js | 2 +- ...rErrorRecovery_IncompleteMemberVariable2.js | 2 +- .../parserMemberFunctionDeclaration1.js | 2 +- .../parserMemberFunctionDeclaration4.js | 2 +- .../parserMemberFunctionDeclaration5.js | 2 +- ...serMemberFunctionDeclarationAmbiguities1.js | 2 +- .../reference/parserMissingLambdaOpenBrace1.js | 2 +- .../reference/parserParameterList1.js | 2 +- .../reference/parserParameterList10.js | 2 +- .../reference/parserParameterList16.js | 2 +- .../reference/parserParameterList2.js | 2 +- .../reference/parserParameterList3.js | 2 +- .../reference/parserParameterList9.js | 2 +- tests/baselines/reference/parserRealSource1.js | 2 +- .../baselines/reference/parserRealSource10.js | 2 +- .../baselines/reference/parserRealSource11.js | 2 +- .../baselines/reference/parserRealSource12.js | 2 +- .../baselines/reference/parserRealSource14.js | 2 +- tests/baselines/reference/parserRealSource4.js | 2 +- tests/baselines/reference/parserRealSource5.js | 2 +- tests/baselines/reference/parserRealSource6.js | 2 +- tests/baselines/reference/parserRealSource8.js | 2 +- tests/baselines/reference/parserRealSource9.js | 2 +- .../reference/parserSuperExpression1.js | 2 +- .../reference/parserSuperExpression2.js | 2 +- .../reference/parserSuperExpression3.js | 2 +- .../reference/parserSuperExpression4.js | 2 +- tests/baselines/reference/parserharness.js | 2 +- tests/baselines/reference/parserindenter.js | 2 +- ...ssRecoversWhenHittingUnexpectedSemicolon.js | 2 +- .../reference/primitiveConstraints2.js | 2 +- tests/baselines/reference/primitiveMembers.js | 2 +- tests/baselines/reference/privacyClass.js | 2 +- .../privacyClassExtendsClauseDeclFile.js | 4 ++-- tests/baselines/reference/privacyFunc.js | 2 +- ...yFunctionCannotNameParameterTypeDeclFile.js | 2 +- ...vacyFunctionCannotNameReturnTypeDeclFile.js | 2 +- .../privacyFunctionParameterDeclFile.js | 4 ++-- .../privacyFunctionReturnTypeDeclFile.js | 4 ++-- tests/baselines/reference/privacyGetter.js | 2 +- tests/baselines/reference/privacyGloClass.js | 2 +- tests/baselines/reference/privacyGloFunc.js | 2 +- tests/baselines/reference/privacyGloGetter.js | 2 +- .../baselines/reference/privacyGloInterface.js | 2 +- tests/baselines/reference/privacyGloVar.js | 2 +- tests/baselines/reference/privacyInterface.js | 2 +- .../privacyTypeParameterOfFunction.js | 2 +- .../privacyTypeParameterOfFunctionDeclFile.js | 2 +- .../reference/privacyTypeParametersOfClass.js | 2 +- .../privacyTypeParametersOfClassDeclFile.js | 2 +- tests/baselines/reference/privacyVar.js | 2 +- .../reference/privateAccessInSubclass1.js | 2 +- ...rivateClassPropertyAccessibleWithinClass.js | 2 +- ...ClassPropertyAccessibleWithinNestedClass.js | 2 +- .../privateInstanceMemberAccessibility.js | 2 +- .../reference/privateInstanceVisibility.js | 2 +- ...ctedMembersAreNotAccessibleDestructuring.js | 2 +- tests/baselines/reference/privateVisibility.js | 2 +- tests/baselines/reference/privateVisibles.js | 2 +- .../amd/li'b/class'A.js | 2 +- .../node/li'b/class'A.js | 2 +- .../amd/fs.js | 2 +- .../node/fs.js | 2 +- tests/baselines/reference/promiseChaining.js | 2 +- tests/baselines/reference/promiseChaining1.js | 2 +- tests/baselines/reference/promiseChaining2.js | 2 +- ...ertyAccessOnTypeParameterWithConstraints.js | 2 +- ...rtyAccessOnTypeParameterWithConstraints2.js | 2 +- ...rtyAccessOnTypeParameterWithConstraints3.js | 2 +- ...rtyAccessOnTypeParameterWithConstraints4.js | 2 +- ...rtyAccessOnTypeParameterWithConstraints5.js | 2 +- ...yAccessOnTypeParameterWithoutConstraints.js | 2 +- .../propertyAndFunctionWithSameName.js | 2 +- tests/baselines/reference/propertyOrdering.js | 2 +- tests/baselines/reference/propertyOrdering2.js | 2 +- ...tectedClassPropertyAccessibleWithinClass.js | 2 +- ...ClassPropertyAccessibleWithinNestedClass.js | 2 +- ...ssPropertyAccessibleWithinNestedSubclass.js | 2 +- ...sPropertyAccessibleWithinNestedSubclass1.js | 2 +- ...tedClassPropertyAccessibleWithinSubclass.js | 2 +- ...edClassPropertyAccessibleWithinSubclass2.js | 2 +- ...edClassPropertyAccessibleWithinSubclass3.js | 2 +- .../protectedInstanceMemberAccessibility.js | 2 +- tests/baselines/reference/protectedMembers.js | 2 +- .../baselines/reference/quotedFunctionName1.js | 2 +- .../baselines/reference/quotedPropertyName3.js | 2 +- .../readonlyInNonPropertyParameters.js | 2 +- tests/baselines/reference/readonlyMembers.js | 2 +- .../recursiveBaseConstructorCreation1.js | 2 +- .../reference/recursiveClassReferenceTest.js | 2 +- .../recursiveClassReferenceTest.sourcemap.txt | 2 +- .../reference/recursiveComplicatedClasses.js | 2 +- .../reference/recursiveInheritance3.js | 2 +- .../reference/requireEmitSemicolon.js | 2 +- .../reference/requiredInitializedParameter2.js | 2 +- .../reference/requiredInitializedParameter3.js | 2 +- .../reference/requiredInitializedParameter4.js | 2 +- ...ClassDeclarationWhenInBaseTypeResolution.js | 2 +- .../restParameterAssignmentCompatibility.js | 2 +- ...restParameterWithoutAnnotationIsAnyArray.js | 2 +- .../reference/restParametersOfNonArrayTypes.js | 2 +- .../restParametersOfNonArrayTypes2.js | 2 +- .../restParametersWithArrayTypeAnnotations.js | 2 +- .../reference/returnInConstructor1.js | 2 +- tests/baselines/reference/returnStatements.js | 2 +- .../reference/returnTypeTypeArguments.js | 2 +- ...opeCheckExtendedClassInsidePublicMethod2.js | 2 +- .../reference/scopeCheckInsidePublicMethod1.js | 2 +- .../reference/scopeResolutionIdentifiers.js | 2 +- tests/baselines/reference/selfInCallback.js | 2 +- tests/baselines/reference/selfInLambdas.js | 2 +- .../selfReferencesInFunctionParameters.js | 2 +- .../reference/shadowPrivateMembers.js | 2 +- .../sigantureIsSubTypeIfTheyAreIdentical.js | 2 +- ...ureInstantiationWithRecursiveConstraints.js | 2 +- .../baselines/reference/sourceMap-Comments.js | 2 +- .../reference/sourceMap-Comments.sourcemap.txt | 2 +- .../reference/sourceMap-FileWithComments.js | 2 +- .../sourceMap-FileWithComments.sourcemap.txt | 2 +- tests/baselines/reference/sourceMapSample.js | 2 +- .../reference/sourceMapSample.sourcemap.txt | 2 +- .../reference/sourceMapValidationClass.js | 2 +- .../sourceMapValidationClass.sourcemap.txt | 2 +- .../reference/sourceMapValidationClasses.js | 2 +- .../sourceMapValidationClasses.sourcemap.txt | 2 +- .../reference/sourceMapValidationDecorators.js | 2 +- ...sourceMapValidationDecorators.sourcemap.txt | 2 +- .../specializedOverloadWithRestParameters.js | 2 +- ...ureIsNotSubtypeOfNonSpecializedSignature.js | 2 +- ...natureIsSubtypeOfNonSpecializedSignature.js | 2 +- tests/baselines/reference/spreadMethods.js | 2 +- .../reference/staticAndMemberFunctions.js | 2 +- .../staticAndNonStaticPropertiesSameName.js | 2 +- .../reference/staticClassMemberError.js | 2 +- tests/baselines/reference/staticClassProps.js | 2 +- tests/baselines/reference/staticFactory1.js | 2 +- .../reference/staticInstanceResolution.js | 2 +- .../reference/staticInstanceResolution4.js | 2 +- .../reference/staticMemberExportAccess.js | 2 +- ...sAndPublicMemberOfAnotherClassAssignment.js | 2 +- ...odWithTypeParameterExtendsClauseDeclFile.js | 2 +- .../reference/staticOffOfInstance1.js | 2 +- .../reference/staticOffOfInstance2.js | 2 +- .../staticPropertyAndFunctionWithSameName.js | 2 +- .../reference/staticPropertyNameConflicts.js | 2 +- .../reference/staticPropertyNotInClassType.js | 2 +- ...strictModeReservedWordInClassDeclaration.js | 2 +- .../strictModeUseContextualKeyword.js | 2 +- ...ingIndexerConstrainsPropertyDeclarations.js | 2 +- ...ngIndexerConstrainsPropertyDeclarations2.js | 2 +- .../stringLiteralTypeIsSubtypeOfString.js | 2 +- ...ngLiteralTypesInImplementationSignatures.js | 2 +- ...gLiteralTypesInImplementationSignatures2.js | 2 +- tests/baselines/reference/stripInternal1.js | 2 +- tests/baselines/reference/super.js | 2 +- tests/baselines/reference/super1.js | 2 +- tests/baselines/reference/super2.js | 2 +- tests/baselines/reference/superAccess.js | 2 +- tests/baselines/reference/superAccess2.js | 2 +- .../reference/superAccessInFatArrow1.js | 2 +- .../reference/superCallInNonStaticMethod.js | 2 +- .../superCallInsideObjectLiteralExpression.js | 2 +- .../reference/superCallOutsideConstructor.js | 2 +- .../superCallParameterContextualTyping3.js | 2 +- .../reference/superCallWithMissingBaseClass.js | 2 +- .../reference/superCallsInConstructor.js | 2 +- tests/baselines/reference/superErrors.js | 2 +- .../superHasMethodsFromMergedInterface.js | 2 +- .../baselines/reference/superInCatchBlock1.js | 2 +- .../reference/superInConstructorParam1.js | 2 +- tests/baselines/reference/superInLambdas.js | 2 +- .../reference/superInObjectLiterals_ES5.js | 2 +- .../baselines/reference/superPropertyAccess.js | 2 +- .../reference/superPropertyAccess1.js | 2 +- ...cessInComputedPropertiesOfNestedType_ES5.js | 2 +- .../superPropertyAccessInSuperCall01.js | 2 +- .../reference/superPropertyAccessNoError.js | 2 +- .../reference/superPropertyAccess_ES5.js | 2 +- ...uperPropertyInConstructorBeforeSuperCall.js | 2 +- .../reference/superSymbolIndexedAccess5.js | 2 +- .../reference/superWithTypeArgument3.js | 2 +- ...nside-object-literal-getters-and-setters.js | 2 +- tests/baselines/reference/thisBinding.js | 2 +- tests/baselines/reference/thisCapture1.js | 2 +- ...ressionInCallExpressionWithTypeArguments.js | 2 +- .../reference/thisInConstructorParameter2.js | 2 +- .../reference/thisInInnerFunctions.js | 2 +- tests/baselines/reference/thisInLambda.js | 2 +- .../reference/thisInObjectLiterals.js | 2 +- .../reference/thisInOuterClassBody.js | 2 +- .../thisInPropertyBoundDeclarations.js | 2 +- .../reference/thisTypeAndConstraints.js | 2 +- .../reference/thisTypeAsConstraint.js | 2 +- tests/baselines/reference/thisTypeErrors.js | 2 +- tests/baselines/reference/thisTypeInClasses.js | 2 +- .../baselines/reference/thisTypeInFunctions.js | 2 +- .../reference/thisTypeInFunctionsNegative.js | 2 +- .../reference/thisWhenTypeCheckFails.js | 2 +- .../reference/throwInEnclosingStatements.js | 2 +- tests/baselines/reference/topLevel.js | 2 +- ...trailingCommaInHeterogenousArrayLiteral1.js | 2 +- .../reference/tsxAttributeResolution10.js | 2 +- .../reference/tsxAttributeResolution11.js | 2 +- .../reference/tsxAttributeResolution15.js | 2 +- .../reference/tsxAttributeResolution16.js | 2 +- .../reference/tsxAttributeResolution9.js | 2 +- .../tsxCorrectlyParseLessThanComparison1.js | 2 +- .../tsxDefaultAttributesResolution1.js | 2 +- .../tsxDefaultAttributesResolution2.js | 2 +- .../tsxDefaultAttributesResolution3.js | 2 +- .../baselines/reference/tsxDynamicTagName5.js | 2 +- .../baselines/reference/tsxDynamicTagName7.js | 2 +- .../baselines/reference/tsxDynamicTagName8.js | 2 +- .../baselines/reference/tsxDynamicTagName9.js | 2 +- tests/baselines/reference/tsxEmit1.js | 2 +- .../reference/tsxExternalModuleEmit1.js | 4 ++-- .../reference/tsxGenericAttributesType3.js | 2 +- .../reference/tsxGenericAttributesType4.js | 2 +- .../reference/tsxGenericAttributesType5.js | 2 +- .../reference/tsxGenericAttributesType6.js | 2 +- .../reference/tsxGenericAttributesType9.js | 2 +- tests/baselines/reference/tsxReactEmit1.js | 2 +- .../tsxSpreadAttributesResolution1.js | 2 +- .../tsxSpreadAttributesResolution10.js | 2 +- .../tsxSpreadAttributesResolution11.js | 2 +- .../tsxSpreadAttributesResolution12.js | 2 +- .../tsxSpreadAttributesResolution2.js | 2 +- .../tsxSpreadAttributesResolution3.js | 2 +- .../tsxSpreadAttributesResolution4.js | 2 +- .../tsxSpreadAttributesResolution5.js | 2 +- .../tsxSpreadAttributesResolution6.js | 2 +- .../tsxSpreadAttributesResolution7.js | 2 +- .../tsxSpreadAttributesResolution8.js | 2 +- .../tsxSpreadAttributesResolution9.js | 2 +- .../tsxStatelessFunctionComponents2.js | 2 +- .../reference/tsxUnionElementType3.js | 2 +- .../reference/tsxUnionElementType4.js | 2 +- .../reference/tsxUnionTypeComponent1.js | 2 +- .../reference/typeCheckTypeArgument.js | 2 +- .../typeConstraintsWithConstructSignatures.js | 2 +- tests/baselines/reference/typeGuardFunction.js | 2 +- .../reference/typeGuardFunctionOfFormThis.js | 2 +- .../typeGuardFunctionOfFormThisErrors.js | 2 +- .../reference/typeGuardsInClassMethods.js | 2 +- .../reference/typeGuardsInProperties.js | 2 +- .../reference/typeGuardsOnClassProperty.js | 2 +- .../reference/typeInferenceLiteralUnion.js | 2 +- .../typeInferenceReturnTypeCallback.js | 2 +- tests/baselines/reference/typeOfThis.js | 2 +- .../reference/typeOfThisInInstanceMember.js | 2 +- .../reference/typeOfThisInInstanceMember2.js | 2 +- .../reference/typeOfThisInMemberFunctions.js | 2 +- .../typeParameterAssignmentCompat1.js | 2 +- .../reference/typeParameterExtendingUnion1.js | 2 +- .../reference/typeParameterExtendingUnion2.js | 2 +- ...eParameterUsedAsTypeParameterConstraint4.js | 2 +- .../typeParameterWithInvalidConstraintType.js | 2 +- ...peParametersAndParametersInComputedNames.js | 2 +- .../typeParametersAreIdenticalToThemselves.js | 2 +- .../typeParametersAvailableInNestedScope.js | 2 +- tests/baselines/reference/typeQueryOnClass.js | 2 +- .../reference/typeQueryWithReservedWords.js | 2 +- tests/baselines/reference/typeRelationships.js | 2 +- tests/baselines/reference/typeResolution.js | 2 +- .../reference/typeResolution.sourcemap.txt | 2 +- .../reference/typeVariableTypeGuards.js | 2 +- .../reference/typedGenericPrototypeMember.js | 2 +- tests/baselines/reference/typeofClass2.js | 2 +- .../typesWithSpecializedCallSignatures.js | 2 +- tests/baselines/reference/undeclaredMethod.js | 2 +- .../baselines/reference/underscoreMapFirst.js | 2 +- .../reference/unionTypeEquivalence.js | 2 +- .../reference/unionTypeFromArrayLiteral.js | 2 +- .../reference/unionTypesAssignability.js | 2 +- .../reference/unknownTypeArgOnCall.js | 2 +- .../reference/unspecializedConstraints.js | 2 +- .../reference/unusedClassesinModule1.js | 2 +- .../unusedIdentifiersConsolidated1.js | 2 +- tests/baselines/reference/unusedImports10.js | 2 +- tests/baselines/reference/unusedImports2.js | 2 +- tests/baselines/reference/unusedImports3.js | 2 +- tests/baselines/reference/unusedImports4.js | 2 +- tests/baselines/reference/unusedImports5.js | 2 +- tests/baselines/reference/unusedImports6.js | 2 +- tests/baselines/reference/unusedImports7.js | 2 +- tests/baselines/reference/unusedImports8.js | 2 +- tests/baselines/reference/unusedImports9.js | 2 +- .../reference/unusedInvalidTypeArguments.js | 2 +- .../baselines/reference/unusedLocalProperty.js | 2 +- .../reference/unusedLocalsAndParameters.js | 2 +- .../unusedLocalsAndParametersDeferred.js | 2 +- ...sedLocalsAndParametersOverloadSignatures.js | 2 +- .../reference/unusedLocalsInMethod1.js | 2 +- .../reference/unusedLocalsInMethod2.js | 2 +- .../reference/unusedLocalsInMethod3.js | 2 +- ...edMultipleParameters1InMethodDeclaration.js | 2 +- ...edMultipleParameters2InMethodDeclaration.js | 2 +- .../reference/unusedParametersInLambda1.js | 2 +- .../reference/unusedParametersInLambda2.js | 2 +- .../reference/unusedParametersThis.js | 2 +- .../reference/unusedPrivateMembers.js | 2 +- .../reference/unusedPrivateMethodInClass1.js | 2 +- .../reference/unusedPrivateMethodInClass2.js | 2 +- .../reference/unusedPrivateMethodInClass3.js | 2 +- .../reference/unusedPrivateMethodInClass4.js | 2 +- .../reference/unusedPrivateVariableInClass4.js | 2 +- ...unusedSingleParameterInMethodDeclaration.js | 2 +- .../reference/unusedTypeParameterInLambda1.js | 2 +- .../reference/unusedTypeParameterInLambda2.js | 2 +- .../reference/unusedTypeParameterInMethod1.js | 2 +- .../reference/unusedTypeParameterInMethod2.js | 2 +- .../reference/unusedTypeParameterInMethod3.js | 2 +- .../reference/unusedTypeParameterInMethod4.js | 2 +- .../reference/unusedTypeParameters2.js | 2 +- .../reference/unusedTypeParameters3.js | 2 +- .../reference/unusedVariablesinNamespaces2.js | 2 +- .../reference/unusedVariablesinNamespaces3.js | 2 +- tests/baselines/reference/vararg.js | 2 +- ...DeclaratorResolvedDuringContextualTyping.js | 2 +- .../reference/visibilityOfTypeParameters.js | 2 +- tests/baselines/reference/witness.js | 2 +- .../wrappedAndRecursiveConstraints.js | 2 +- .../wrappedAndRecursiveConstraints3.js | 2 +- .../wrappedAndRecursiveConstraints4.js | 2 +- 983 files changed, 1017 insertions(+), 1000 deletions(-) diff --git a/tests/baselines/reference/2dArrays.js b/tests/baselines/reference/2dArrays.js index df4fe99cb9f76..6efc06c930e68 100644 --- a/tests/baselines/reference/2dArrays.js +++ b/tests/baselines/reference/2dArrays.js @@ -19,7 +19,7 @@ class Board { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ClassDeclaration11.js b/tests/baselines/reference/ClassDeclaration11.js index e7a0cd57bf8d2..e38340fe71370 100644 --- a/tests/baselines/reference/ClassDeclaration11.js +++ b/tests/baselines/reference/ClassDeclaration11.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ClassDeclaration13.js b/tests/baselines/reference/ClassDeclaration13.js index f5cd1cf9dd707..b5c601da63196 100644 --- a/tests/baselines/reference/ClassDeclaration13.js +++ b/tests/baselines/reference/ClassDeclaration13.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ClassDeclaration21.js b/tests/baselines/reference/ClassDeclaration21.js index f45db91d3c01d..36601245464c6 100644 --- a/tests/baselines/reference/ClassDeclaration21.js +++ b/tests/baselines/reference/ClassDeclaration21.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ClassDeclaration22.js b/tests/baselines/reference/ClassDeclaration22.js index cc3501f34b6e9..339f67ed9a8f3 100644 --- a/tests/baselines/reference/ClassDeclaration22.js +++ b/tests/baselines/reference/ClassDeclaration22.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ES5For-ofTypeCheck10.js b/tests/baselines/reference/ES5For-ofTypeCheck10.js index 218c3ac481f6c..24c2aeb122a5a 100644 --- a/tests/baselines/reference/ES5For-ofTypeCheck10.js +++ b/tests/baselines/reference/ES5For-ofTypeCheck10.js @@ -18,7 +18,7 @@ for (var v of new StringIterator) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ES5SymbolProperty2.js b/tests/baselines/reference/ES5SymbolProperty2.js index ba993fc8aa84b..025ccbabe3926 100644 --- a/tests/baselines/reference/ES5SymbolProperty2.js +++ b/tests/baselines/reference/ES5SymbolProperty2.js @@ -14,7 +14,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ES5SymbolProperty3.js b/tests/baselines/reference/ES5SymbolProperty3.js index aa8858d628160..5e5fb48acb3c8 100644 --- a/tests/baselines/reference/ES5SymbolProperty3.js +++ b/tests/baselines/reference/ES5SymbolProperty3.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ES5SymbolProperty4.js b/tests/baselines/reference/ES5SymbolProperty4.js index 445d2c287a8dc..01d11b7c37264 100644 --- a/tests/baselines/reference/ES5SymbolProperty4.js +++ b/tests/baselines/reference/ES5SymbolProperty4.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ES5SymbolProperty5.js b/tests/baselines/reference/ES5SymbolProperty5.js index 7080a4731c575..8a9fccdac2ac5 100644 --- a/tests/baselines/reference/ES5SymbolProperty5.js +++ b/tests/baselines/reference/ES5SymbolProperty5.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ES5SymbolProperty6.js b/tests/baselines/reference/ES5SymbolProperty6.js index 227b858ae1533..f75ad8f9cd40b 100644 --- a/tests/baselines/reference/ES5SymbolProperty6.js +++ b/tests/baselines/reference/ES5SymbolProperty6.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ES5SymbolProperty7.js b/tests/baselines/reference/ES5SymbolProperty7.js index dab10c6ed9382..7959bba459119 100644 --- a/tests/baselines/reference/ES5SymbolProperty7.js +++ b/tests/baselines/reference/ES5SymbolProperty7.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js index df1341194dca7..5b48523b144a8 100644 --- a/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js +++ b/tests/baselines/reference/ExportClassWhichExtendsInterfaceWithInaccessibleType.js @@ -23,7 +23,7 @@ module A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/Protected4.js b/tests/baselines/reference/Protected4.js index 76c6cd2ce2f1f..f747d8a1ce2ab 100644 --- a/tests/baselines/reference/Protected4.js +++ b/tests/baselines/reference/Protected4.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/Protected7.js b/tests/baselines/reference/Protected7.js index 7f80771561a58..8c1a7a0ce63a0 100644 --- a/tests/baselines/reference/Protected7.js +++ b/tests/baselines/reference/Protected7.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js index e6b607eb82a13..739bb3e624ebc 100644 --- a/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js +++ b/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.js @@ -44,7 +44,7 @@ var l: X.Y.Z.Line; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/abstractProperty.js b/tests/baselines/reference/abstractProperty.js index e7d7888405e21..07bf1c18fc325 100644 --- a/tests/baselines/reference/abstractProperty.js +++ b/tests/baselines/reference/abstractProperty.js @@ -35,7 +35,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js b/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js index 3703c8a5f1721..9b17d431c804c 100644 --- a/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js +++ b/tests/baselines/reference/accessInstanceMemberFromStaticMethod01.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.js b/tests/baselines/reference/accessOverriddenBaseClassMember1.js index 6679aeb8f37ae..48d148bc18294 100644 --- a/tests/baselines/reference/accessOverriddenBaseClassMember1.js +++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.js @@ -19,7 +19,7 @@ class ColoredPoint extends Point { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/accessibilityModifiers.js b/tests/baselines/reference/accessibilityModifiers.js index eafe71a0b1523..3a692bdfc670e 100644 --- a/tests/baselines/reference/accessibilityModifiers.js +++ b/tests/baselines/reference/accessibilityModifiers.js @@ -48,7 +48,7 @@ class E { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js index 5331718d748fd..9df30a09c2981 100644 --- a/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js +++ b/tests/baselines/reference/ambiguousCallsWhereReturnTypesAgree.js @@ -32,7 +32,7 @@ class TestClass2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/anonterface.js b/tests/baselines/reference/anonterface.js index 3659301015dbb..d81ef50f9638f 100644 --- a/tests/baselines/reference/anonterface.js +++ b/tests/baselines/reference/anonterface.js @@ -18,7 +18,7 @@ c.m(function(n) { return "hello: "+n; },18); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/anonymousClassExpression2.js b/tests/baselines/reference/anonymousClassExpression2.js index 091849f1e4b8f..c7f750b86d4d6 100644 --- a/tests/baselines/reference/anonymousClassExpression2.js +++ b/tests/baselines/reference/anonymousClassExpression2.js @@ -22,7 +22,7 @@ while (0) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/argsInScope.js b/tests/baselines/reference/argsInScope.js index d5f922d418dcf..9519d16c8b6a7 100644 --- a/tests/baselines/reference/argsInScope.js +++ b/tests/baselines/reference/argsInScope.js @@ -15,7 +15,7 @@ c.P(1,2,3); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js index a1ca1842bb07b..af01a784f6b1b 100644 --- a/tests/baselines/reference/arrayAssignmentTest1.js +++ b/tests/baselines/reference/arrayAssignmentTest1.js @@ -89,7 +89,7 @@ arr_any = i1; // should be an error - is var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js index 7fd17596bb376..0ac5c7f7de034 100644 --- a/tests/baselines/reference/arrayAssignmentTest2.js +++ b/tests/baselines/reference/arrayAssignmentTest2.js @@ -63,7 +63,7 @@ arr_any = i1; // should be an error - is var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayAssignmentTest4.js b/tests/baselines/reference/arrayAssignmentTest4.js index 768671803b426..1596ddb15ef3f 100644 --- a/tests/baselines/reference/arrayAssignmentTest4.js +++ b/tests/baselines/reference/arrayAssignmentTest4.js @@ -28,7 +28,7 @@ arr_any = c3; // should be an error - is var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayAssignmentTest5.js b/tests/baselines/reference/arrayAssignmentTest5.js index f43e5072841cb..7c72e5c0bf82c 100644 --- a/tests/baselines/reference/arrayAssignmentTest5.js +++ b/tests/baselines/reference/arrayAssignmentTest5.js @@ -37,7 +37,7 @@ module Test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayAssignmentTest6.js b/tests/baselines/reference/arrayAssignmentTest6.js index 5ff3058351be2..8842ab533fab2 100644 --- a/tests/baselines/reference/arrayAssignmentTest6.js +++ b/tests/baselines/reference/arrayAssignmentTest6.js @@ -24,7 +24,7 @@ module Test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js index 2beb7fca153b1..ebf558d49f293 100644 --- a/tests/baselines/reference/arrayBestCommonTypes.js +++ b/tests/baselines/reference/arrayBestCommonTypes.js @@ -121,7 +121,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayOfExportedClass.js b/tests/baselines/reference/arrayOfExportedClass.js index ef4bd8cfa70f0..68afeec4cd3bf 100644 --- a/tests/baselines/reference/arrayOfExportedClass.js +++ b/tests/baselines/reference/arrayOfExportedClass.js @@ -37,7 +37,7 @@ module.exports = Car; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js index a5300c94ff796..14b1bb2e295d5 100644 --- a/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js +++ b/tests/baselines/reference/arrayReferenceWithoutTypeArgs.js @@ -7,7 +7,7 @@ class X { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrayconcat.js b/tests/baselines/reference/arrayconcat.js index 78b9d75a0073d..3a3d5b66c9358 100644 --- a/tests/baselines/reference/arrayconcat.js +++ b/tests/baselines/reference/arrayconcat.js @@ -32,7 +32,7 @@ class parser { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/arrowFunctionExpressions.js b/tests/baselines/reference/arrowFunctionExpressions.js index 418a3f1079b90..a477d06624fa1 100644 --- a/tests/baselines/reference/arrowFunctionExpressions.js +++ b/tests/baselines/reference/arrowFunctionExpressions.js @@ -103,7 +103,7 @@ function tryCatchFn() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/asiAbstract.js b/tests/baselines/reference/asiAbstract.js index f8cb55f61512d..218d2dc0c73b4 100644 --- a/tests/baselines/reference/asiAbstract.js +++ b/tests/baselines/reference/asiAbstract.js @@ -19,7 +19,7 @@ class C3 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/asiInES6Classes.js b/tests/baselines/reference/asiInES6Classes.js index 48bd24a8447e6..93393e77d9f28 100644 --- a/tests/baselines/reference/asiInES6Classes.js +++ b/tests/baselines/reference/asiInES6Classes.js @@ -26,7 +26,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/asiPublicPrivateProtected.js b/tests/baselines/reference/asiPublicPrivateProtected.js index 281a94b1c65fb..98fe4ab84fe41 100644 --- a/tests/baselines/reference/asiPublicPrivateProtected.js +++ b/tests/baselines/reference/asiPublicPrivateProtected.js @@ -44,7 +44,7 @@ class ClassWithThreeMembers { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/assertInWrapSomeTypeParameter.js b/tests/baselines/reference/assertInWrapSomeTypeParameter.js index d2c45d5f9ffbb..4da283e050bd7 100644 --- a/tests/baselines/reference/assertInWrapSomeTypeParameter.js +++ b/tests/baselines/reference/assertInWrapSomeTypeParameter.js @@ -9,7 +9,7 @@ class C> { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/assignToExistingClass.js b/tests/baselines/reference/assignToExistingClass.js index 4c70dc5db5dd8..7abfde2a72465 100644 --- a/tests/baselines/reference/assignToExistingClass.js +++ b/tests/baselines/reference/assignToExistingClass.js @@ -19,7 +19,7 @@ module Test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js index 611796e23648a..08863fe1a1eab 100644 --- a/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js +++ b/tests/baselines/reference/assignmentCompatInterfaceWithStringIndexSignature.js @@ -20,7 +20,7 @@ Biz(new Foo()); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/assignmentLHSIsValue.js b/tests/baselines/reference/assignmentLHSIsValue.js index 6ac57acd08e41..072733202be4f 100644 --- a/tests/baselines/reference/assignmentLHSIsValue.js +++ b/tests/baselines/reference/assignmentLHSIsValue.js @@ -74,7 +74,7 @@ foo() = value; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js b/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js index 13a4aa91eea53..5283220b8485e 100644 --- a/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js +++ b/tests/baselines/reference/asyncAwaitIsolatedModules_es5.js @@ -44,7 +44,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/asyncAwait_es5.js b/tests/baselines/reference/asyncAwait_es5.js index 6491e06e906ec..1b37fc52d840c 100644 --- a/tests/baselines/reference/asyncAwait_es5.js +++ b/tests/baselines/reference/asyncAwait_es5.js @@ -43,7 +43,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/asyncImportedPromise_es5.js b/tests/baselines/reference/asyncImportedPromise_es5.js index 1657952b7bdf2..d24b9cbf592c9 100644 --- a/tests/baselines/reference/asyncImportedPromise_es5.js +++ b/tests/baselines/reference/asyncImportedPromise_es5.js @@ -35,7 +35,7 @@ exports.Task = Task; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesClass.js b/tests/baselines/reference/augmentedTypesClass.js index 2df6215fa0f65..1f09eae2018cc 100644 --- a/tests/baselines/reference/augmentedTypesClass.js +++ b/tests/baselines/reference/augmentedTypesClass.js @@ -11,7 +11,7 @@ enum c4 { One } // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesClass2.js b/tests/baselines/reference/augmentedTypesClass2.js index 9f884b4662cb1..2ccfebcb61239 100644 --- a/tests/baselines/reference/augmentedTypesClass2.js +++ b/tests/baselines/reference/augmentedTypesClass2.js @@ -35,7 +35,7 @@ class c44 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesClass2a.js b/tests/baselines/reference/augmentedTypesClass2a.js index d9210fe443b54..65d4f2a8a98a4 100644 --- a/tests/baselines/reference/augmentedTypesClass2a.js +++ b/tests/baselines/reference/augmentedTypesClass2a.js @@ -8,7 +8,7 @@ var c2 = () => { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesClass3.js b/tests/baselines/reference/augmentedTypesClass3.js index 84967d0911bf8..0875e90c07cde 100644 --- a/tests/baselines/reference/augmentedTypesClass3.js +++ b/tests/baselines/reference/augmentedTypesClass3.js @@ -17,7 +17,7 @@ class c5c { public foo() { } } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesClass4.js b/tests/baselines/reference/augmentedTypesClass4.js index 1f01bd67cb4ac..a0d0a7bc9167c 100644 --- a/tests/baselines/reference/augmentedTypesClass4.js +++ b/tests/baselines/reference/augmentedTypesClass4.js @@ -8,7 +8,7 @@ class c3 { public bar() { } } // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesEnum.js b/tests/baselines/reference/augmentedTypesEnum.js index 03ad8f49f8cfd..671cca6cf579b 100644 --- a/tests/baselines/reference/augmentedTypesEnum.js +++ b/tests/baselines/reference/augmentedTypesEnum.js @@ -39,7 +39,7 @@ module e6b { export var y = 2; } // should be error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesEnum2.js b/tests/baselines/reference/augmentedTypesEnum2.js index 785bf63ef10f6..5a14262dfaabb 100644 --- a/tests/baselines/reference/augmentedTypesEnum2.js +++ b/tests/baselines/reference/augmentedTypesEnum2.js @@ -23,7 +23,7 @@ class e2 { // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesExternalModule1.js b/tests/baselines/reference/augmentedTypesExternalModule1.js index fa3ceebf95cbd..6f692b39e5901 100644 --- a/tests/baselines/reference/augmentedTypesExternalModule1.js +++ b/tests/baselines/reference/augmentedTypesExternalModule1.js @@ -7,7 +7,7 @@ module c5 { } // should be ok everywhere var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesFunction.js b/tests/baselines/reference/augmentedTypesFunction.js index 8568e87a32674..3b55e6318ec6e 100644 --- a/tests/baselines/reference/augmentedTypesFunction.js +++ b/tests/baselines/reference/augmentedTypesFunction.js @@ -42,7 +42,7 @@ module y5c { export interface I { foo(): void } } // should be an error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesInterface.js b/tests/baselines/reference/augmentedTypesInterface.js index 8f0ac15c0bae5..fb87655645b75 100644 --- a/tests/baselines/reference/augmentedTypesInterface.js +++ b/tests/baselines/reference/augmentedTypesInterface.js @@ -38,7 +38,7 @@ interface i4 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesModules.js b/tests/baselines/reference/augmentedTypesModules.js index c940ed86e3ea3..be5cff017bf4e 100644 --- a/tests/baselines/reference/augmentedTypesModules.js +++ b/tests/baselines/reference/augmentedTypesModules.js @@ -101,7 +101,7 @@ module m6 { export var y = 2; } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesModules2.js b/tests/baselines/reference/augmentedTypesModules2.js index e3bbc2ca79170..db2a6033b142c 100644 --- a/tests/baselines/reference/augmentedTypesModules2.js +++ b/tests/baselines/reference/augmentedTypesModules2.js @@ -32,7 +32,7 @@ module m2g { export class C { foo() { } } } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesModules3.js b/tests/baselines/reference/augmentedTypesModules3.js index cf1ca88d4a997..f2b3c91279bc5 100644 --- a/tests/baselines/reference/augmentedTypesModules3.js +++ b/tests/baselines/reference/augmentedTypesModules3.js @@ -10,7 +10,7 @@ class m3a { foo() { } } // error, class isn't ambient or declared before the mod var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesModules3b.js b/tests/baselines/reference/augmentedTypesModules3b.js index bc885b86be001..776efa20aa7f7 100644 --- a/tests/baselines/reference/augmentedTypesModules3b.js +++ b/tests/baselines/reference/augmentedTypesModules3b.js @@ -22,7 +22,7 @@ module m3g { export class C { foo() { } } } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesModules4.js b/tests/baselines/reference/augmentedTypesModules4.js index 0aa12b48d10bd..499639c8bffed 100644 --- a/tests/baselines/reference/augmentedTypesModules4.js +++ b/tests/baselines/reference/augmentedTypesModules4.js @@ -26,7 +26,7 @@ module m5 { export interface I { foo(): void } } // should already be reasonably var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/augmentedTypesVar.js b/tests/baselines/reference/augmentedTypesVar.js index 0dc90e7ed8057..f50351cefd69a 100644 --- a/tests/baselines/reference/augmentedTypesVar.js +++ b/tests/baselines/reference/augmentedTypesVar.js @@ -40,7 +40,7 @@ module x6b { export var y = 2; } // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/autoLift2.js b/tests/baselines/reference/autoLift2.js index c44e62f67e076..411676beaa24d 100644 --- a/tests/baselines/reference/autoLift2.js +++ b/tests/baselines/reference/autoLift2.js @@ -35,7 +35,7 @@ a.baz(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/autolift4.js b/tests/baselines/reference/autolift4.js index c3ab0d4b7ea47..9266114e3111a 100644 --- a/tests/baselines/reference/autolift4.js +++ b/tests/baselines/reference/autolift4.js @@ -27,7 +27,7 @@ class Point3D extends Point { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/avoid.js b/tests/baselines/reference/avoid.js index a5695425548d3..77ccdd7c1f072 100644 --- a/tests/baselines/reference/avoid.js +++ b/tests/baselines/reference/avoid.js @@ -23,7 +23,7 @@ var N=new f(); // ok with void fn var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/baseCheck.js b/tests/baselines/reference/baseCheck.js index 1bf14a65f8f32..e95bfcfc90fae 100644 --- a/tests/baselines/reference/baseCheck.js +++ b/tests/baselines/reference/baseCheck.js @@ -43,7 +43,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/baseTypeAfterDerivedType.js b/tests/baselines/reference/baseTypeAfterDerivedType.js index b88f393adc3a3..d2ac028ef5052 100644 --- a/tests/baselines/reference/baseTypeAfterDerivedType.js +++ b/tests/baselines/reference/baseTypeAfterDerivedType.js @@ -20,7 +20,7 @@ interface Base2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js index 1c9e89f2e2b05..873caa805bb70 100644 --- a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js +++ b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js @@ -41,7 +41,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/binopAssignmentShouldHaveType.js b/tests/baselines/reference/binopAssignmentShouldHaveType.js index bfd238265dd55..ad198e1f6427f 100644 --- a/tests/baselines/reference/binopAssignmentShouldHaveType.js +++ b/tests/baselines/reference/binopAssignmentShouldHaveType.js @@ -23,7 +23,7 @@ module Test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js index 4da34779e29eb..c921d4858d8e3 100644 --- a/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js +++ b/tests/baselines/reference/blockScopedFunctionDeclarationInStrictClass.js @@ -13,7 +13,7 @@ class c { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js index e0255e543d12b..636c9bc7e0f9b 100644 --- a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js +++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.js @@ -107,7 +107,7 @@ function foo14() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js index 8aa77cb43251c..5e3269c5a5298 100644 --- a/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithIncorrectNumberOfTypeArguments.js @@ -50,7 +50,7 @@ var r7b = i2.f(1, ''); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js index e324c528ef2ae..f3dc12e959092 100644 --- a/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js +++ b/tests/baselines/reference/callGenericFunctionWithZeroTypeArguments.js @@ -41,7 +41,7 @@ var r7 = i2.f(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js index de31d2b6a6c41..0fbd173712376 100644 --- a/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js +++ b/tests/baselines/reference/callNonGenericFunctionWithTypeArguments.js @@ -49,7 +49,7 @@ var r8 = a2(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callOverloadViaElementAccessExpression.js b/tests/baselines/reference/callOverloadViaElementAccessExpression.js index 108b1deb1be29..fd03dcb6b7a41 100644 --- a/tests/baselines/reference/callOverloadViaElementAccessExpression.js +++ b/tests/baselines/reference/callOverloadViaElementAccessExpression.js @@ -15,7 +15,7 @@ var r2: number = c['foo'](''); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callOverloads1.js b/tests/baselines/reference/callOverloads1.js index 6122d36bad581..4bdfc90cea710 100644 --- a/tests/baselines/reference/callOverloads1.js +++ b/tests/baselines/reference/callOverloads1.js @@ -21,7 +21,7 @@ Foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callOverloads2.js b/tests/baselines/reference/callOverloads2.js index bbcac35f20085..06ac17dad9ffa 100644 --- a/tests/baselines/reference/callOverloads2.js +++ b/tests/baselines/reference/callOverloads2.js @@ -27,7 +27,7 @@ Foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callOverloads3.js b/tests/baselines/reference/callOverloads3.js index 024d946618155..2d81158acb5f4 100644 --- a/tests/baselines/reference/callOverloads3.js +++ b/tests/baselines/reference/callOverloads3.js @@ -21,7 +21,7 @@ Foo("s"); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callOverloads4.js b/tests/baselines/reference/callOverloads4.js index 35422f36edd4c..dd28490bb3610 100644 --- a/tests/baselines/reference/callOverloads4.js +++ b/tests/baselines/reference/callOverloads4.js @@ -21,7 +21,7 @@ Foo("s"); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callOverloads5.js b/tests/baselines/reference/callOverloads5.js index 79da12c536952..f825b622d8fa4 100644 --- a/tests/baselines/reference/callOverloads5.js +++ b/tests/baselines/reference/callOverloads5.js @@ -23,7 +23,7 @@ Foo("s"); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js index 025ca7d42d738..a1bce8bf6e096 100644 --- a/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js +++ b/tests/baselines/reference/callSignatureWithOptionalParameterAndInitializer.js @@ -60,7 +60,7 @@ b.b(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js index 7fadb09ad6532..8d1e1d7af5e83 100644 --- a/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js +++ b/tests/baselines/reference/callSignaturesWithAccessibilityModifiersOnParameters.js @@ -43,7 +43,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js index e2d4feaf236ce..f52f4d204f158 100644 --- a/tests/baselines/reference/callSignaturesWithDuplicateParameters.js +++ b/tests/baselines/reference/callSignaturesWithDuplicateParameters.js @@ -43,7 +43,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters.js b/tests/baselines/reference/callSignaturesWithOptionalParameters.js index da7248d8918c3..00dad4a36ed49 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters.js @@ -60,7 +60,7 @@ b.b(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js index ceaa857acdec7..abff5436694ce 100644 --- a/tests/baselines/reference/callSignaturesWithOptionalParameters2.js +++ b/tests/baselines/reference/callSignaturesWithOptionalParameters2.js @@ -64,7 +64,7 @@ a.foo(1, 2, 3); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers.js b/tests/baselines/reference/callSignaturesWithParameterInitializers.js index 03ddb17e65ff4..feb934898e916 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers.js @@ -62,7 +62,7 @@ b.b(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js index a4b5c22c09b36..9ad6b10939ff6 100644 --- a/tests/baselines/reference/callSignaturesWithParameterInitializers2.js +++ b/tests/baselines/reference/callSignaturesWithParameterInitializers2.js @@ -31,7 +31,7 @@ b.foo(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index b019b2f7152de..8e815cfc73b48 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -62,7 +62,7 @@ class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js index 9b4dc3ea04b49..f6806f8a72e67 100644 --- a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js @@ -15,7 +15,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/captureThisInSuperCall.js b/tests/baselines/reference/captureThisInSuperCall.js index 051495829cb30..bd2f298fddea6 100644 --- a/tests/baselines/reference/captureThisInSuperCall.js +++ b/tests/baselines/reference/captureThisInSuperCall.js @@ -22,7 +22,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/capturedLetConstInLoop10.js b/tests/baselines/reference/capturedLetConstInLoop10.js index ae6a1ea4b87b5..5da064f30157a 100644 --- a/tests/baselines/reference/capturedLetConstInLoop10.js +++ b/tests/baselines/reference/capturedLetConstInLoop10.js @@ -49,7 +49,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/capturedLetConstInLoop13.js b/tests/baselines/reference/capturedLetConstInLoop13.js index ed38248394155..4930986ebf46c 100644 --- a/tests/baselines/reference/capturedLetConstInLoop13.js +++ b/tests/baselines/reference/capturedLetConstInLoop13.js @@ -26,7 +26,7 @@ new Main(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/capturedLetConstInLoop9.js b/tests/baselines/reference/capturedLetConstInLoop9.js index 4270f9f52ed79..5f2aa7eebb184 100644 --- a/tests/baselines/reference/capturedLetConstInLoop9.js +++ b/tests/baselines/reference/capturedLetConstInLoop9.js @@ -142,7 +142,7 @@ function foo3 () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js index 093c7fe5e5f04..244b314ab043a 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js @@ -23,7 +23,7 @@ class C extends B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js index f430c1eac327d..8ed08284892ba 100644 --- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js +++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.js @@ -45,7 +45,7 @@ class Chain2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty10.js b/tests/baselines/reference/checkJsxChildrenProperty10.js index c0af8756007f0..f28b88947fe12 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty10.js +++ b/tests/baselines/reference/checkJsxChildrenProperty10.js @@ -26,7 +26,7 @@ let k4 = ; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty11.js b/tests/baselines/reference/checkJsxChildrenProperty11.js index c0af8756007f0..f28b88947fe12 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty11.js +++ b/tests/baselines/reference/checkJsxChildrenProperty11.js @@ -26,7 +26,7 @@ let k4 = ; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty12.js b/tests/baselines/reference/checkJsxChildrenProperty12.js index 0669739358d01..4c133916e5ed8 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty12.js +++ b/tests/baselines/reference/checkJsxChildrenProperty12.js @@ -47,7 +47,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty13.js b/tests/baselines/reference/checkJsxChildrenProperty13.js index 550873e41f2e4..280f40f5f3a4f 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty13.js +++ b/tests/baselines/reference/checkJsxChildrenProperty13.js @@ -42,7 +42,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty3.js b/tests/baselines/reference/checkJsxChildrenProperty3.js index cf68946122b0f..abbdd2782d758 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty3.js +++ b/tests/baselines/reference/checkJsxChildrenProperty3.js @@ -54,7 +54,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.js b/tests/baselines/reference/checkJsxChildrenProperty4.js index bc759363642ca..b1f2c848256b1 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty4.js +++ b/tests/baselines/reference/checkJsxChildrenProperty4.js @@ -59,7 +59,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty5.js b/tests/baselines/reference/checkJsxChildrenProperty5.js index 5a0b5a414b7ca..dff3f60e5066c 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty5.js +++ b/tests/baselines/reference/checkJsxChildrenProperty5.js @@ -45,7 +45,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty6.js b/tests/baselines/reference/checkJsxChildrenProperty6.js index 4a6a56a864558..3326559f4359a 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty6.js +++ b/tests/baselines/reference/checkJsxChildrenProperty6.js @@ -58,7 +58,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty7.js b/tests/baselines/reference/checkJsxChildrenProperty7.js index 3ac2ebe39c16a..3d636d44bfa7d 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty7.js +++ b/tests/baselines/reference/checkJsxChildrenProperty7.js @@ -43,7 +43,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkJsxChildrenProperty8.js b/tests/baselines/reference/checkJsxChildrenProperty8.js index 111c407133523..f426ed6fe9e98 100644 --- a/tests/baselines/reference/checkJsxChildrenProperty8.js +++ b/tests/baselines/reference/checkJsxChildrenProperty8.js @@ -44,7 +44,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js b/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js index 8e45ac53fdd70..4342e6a90c2b3 100644 --- a/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js +++ b/tests/baselines/reference/checkSwitchStatementIfCaseTypeIsString.js @@ -15,7 +15,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractAsIdentifier.js b/tests/baselines/reference/classAbstractAsIdentifier.js index 96a03e1de476a..493eb5234fac5 100644 --- a/tests/baselines/reference/classAbstractAsIdentifier.js +++ b/tests/baselines/reference/classAbstractAsIdentifier.js @@ -9,7 +9,7 @@ new abstract; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractCrashedOnce.js b/tests/baselines/reference/classAbstractCrashedOnce.js index acb93f58c82ff..76117f6862851 100644 --- a/tests/baselines/reference/classAbstractCrashedOnce.js +++ b/tests/baselines/reference/classAbstractCrashedOnce.js @@ -24,7 +24,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractExtends.js b/tests/baselines/reference/classAbstractExtends.js index 8a4dcd5ec3802..206bde07b5316 100644 --- a/tests/baselines/reference/classAbstractExtends.js +++ b/tests/baselines/reference/classAbstractExtends.js @@ -19,7 +19,7 @@ class E extends B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractGeneric.js b/tests/baselines/reference/classAbstractGeneric.js index d01b5b6350017..cbd15bd17cafc 100644 --- a/tests/baselines/reference/classAbstractGeneric.js +++ b/tests/baselines/reference/classAbstractGeneric.js @@ -39,7 +39,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractInstantiations2.js b/tests/baselines/reference/classAbstractInstantiations2.js index 286341200d950..feb87fa9dd91a 100644 --- a/tests/baselines/reference/classAbstractInstantiations2.js +++ b/tests/baselines/reference/classAbstractInstantiations2.js @@ -55,7 +55,7 @@ class H { // error -- not declared abstract var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js index 696848b58a31a..d6b8681402831 100644 --- a/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js +++ b/tests/baselines/reference/classAbstractMethodInNonAbstractClass.js @@ -11,7 +11,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractMethodWithImplementation.js b/tests/baselines/reference/classAbstractMethodWithImplementation.js index 25db3df4d6f68..1ae64d6d1681f 100644 --- a/tests/baselines/reference/classAbstractMethodWithImplementation.js +++ b/tests/baselines/reference/classAbstractMethodWithImplementation.js @@ -7,7 +7,7 @@ abstract class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractOverloads.js b/tests/baselines/reference/classAbstractOverloads.js index 77619fce61cde..f02fae10e6cb4 100644 --- a/tests/baselines/reference/classAbstractOverloads.js +++ b/tests/baselines/reference/classAbstractOverloads.js @@ -28,7 +28,7 @@ abstract class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractOverrideWithAbstract.js b/tests/baselines/reference/classAbstractOverrideWithAbstract.js index 254b8686c02e4..156168d83abcc 100644 --- a/tests/baselines/reference/classAbstractOverrideWithAbstract.js +++ b/tests/baselines/reference/classAbstractOverrideWithAbstract.js @@ -27,7 +27,7 @@ class DD extends BB { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractSuperCalls.js b/tests/baselines/reference/classAbstractSuperCalls.js index fa99360fd1017..13f55f6a600ec 100644 --- a/tests/baselines/reference/classAbstractSuperCalls.js +++ b/tests/baselines/reference/classAbstractSuperCalls.js @@ -30,7 +30,7 @@ abstract class BB extends AA { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js index 99715ee8e69f2..e1b52ebf8419c 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js @@ -31,7 +31,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js index 364cae47a9186..23be8586011fc 100644 --- a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js +++ b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js @@ -41,7 +41,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classBlockScoping.js b/tests/baselines/reference/classBlockScoping.js index 1151a24ab72db..db1f575dae409 100644 --- a/tests/baselines/reference/classBlockScoping.js +++ b/tests/baselines/reference/classBlockScoping.js @@ -37,7 +37,7 @@ function f(b: boolean) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classConstructorAccessibility2.js b/tests/baselines/reference/classConstructorAccessibility2.js index 63944ff2cd2f2..8bcc6fd16337a 100644 --- a/tests/baselines/reference/classConstructorAccessibility2.js +++ b/tests/baselines/reference/classConstructorAccessibility2.js @@ -49,7 +49,7 @@ var dc = new DerivedC(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classConstructorAccessibility4.js b/tests/baselines/reference/classConstructorAccessibility4.js index 3efa4cbb2e871..5538370e110a5 100644 --- a/tests/baselines/reference/classConstructorAccessibility4.js +++ b/tests/baselines/reference/classConstructorAccessibility4.js @@ -33,7 +33,7 @@ class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classExpression4.js b/tests/baselines/reference/classExpression4.js index 072f5ba0c2d6f..ec2972f0c1793 100644 --- a/tests/baselines/reference/classExpression4.js +++ b/tests/baselines/reference/classExpression4.js @@ -11,7 +11,7 @@ let x = (new C).foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classExpression5.js b/tests/baselines/reference/classExpression5.js index 1685fdde3c11c..1d46433653a6b 100644 --- a/tests/baselines/reference/classExpression5.js +++ b/tests/baselines/reference/classExpression5.js @@ -9,7 +9,7 @@ new class { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classExpressionTest1.js b/tests/baselines/reference/classExpressionTest1.js index c48c51b9401d4..0a76866cac38f 100644 --- a/tests/baselines/reference/classExpressionTest1.js +++ b/tests/baselines/reference/classExpressionTest1.js @@ -16,7 +16,7 @@ function M() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classExpressionTest2.js b/tests/baselines/reference/classExpressionTest2.js index 742187bdcd33f..4f6878bedd5a5 100644 --- a/tests/baselines/reference/classExpressionTest2.js +++ b/tests/baselines/reference/classExpressionTest2.js @@ -16,7 +16,7 @@ function M() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classExpressions.js b/tests/baselines/reference/classExpressions.js index ceab0fbda894f..1a167e0c116da 100644 --- a/tests/baselines/reference/classExpressions.js +++ b/tests/baselines/reference/classExpressions.js @@ -12,7 +12,7 @@ let x = class B implements A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classExtendingClass.js b/tests/baselines/reference/classExtendingClass.js index 6daaab5017685..ce6ea2cecefec 100644 --- a/tests/baselines/reference/classExtendingClass.js +++ b/tests/baselines/reference/classExtendingClass.js @@ -35,7 +35,7 @@ var r8 = D2.other(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js b/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js index 7e2a70655ab61..d4a59ac4ec964 100644 --- a/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js +++ b/tests/baselines/reference/classExtendsInterfaceThatExtendsClassWithPrivates1.js @@ -18,7 +18,7 @@ class D2 implements I { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classImplementsClass2.js b/tests/baselines/reference/classImplementsClass2.js index 0d9da36165f06..919169da60c6d 100644 --- a/tests/baselines/reference/classImplementsClass2.js +++ b/tests/baselines/reference/classImplementsClass2.js @@ -17,7 +17,7 @@ c2 = c; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js index c788aeaf566e1..304e64d36a08b 100644 --- a/tests/baselines/reference/classImplementsClass3.js +++ b/tests/baselines/reference/classImplementsClass3.js @@ -18,7 +18,7 @@ c2 = c; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classImplementsClass4.js b/tests/baselines/reference/classImplementsClass4.js index 6b00105152293..79e5839d6174b 100644 --- a/tests/baselines/reference/classImplementsClass4.js +++ b/tests/baselines/reference/classImplementsClass4.js @@ -20,7 +20,7 @@ c2 = c; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classImplementsClass5.js b/tests/baselines/reference/classImplementsClass5.js index 3807c7a8654b0..4e572a2d6f036 100644 --- a/tests/baselines/reference/classImplementsClass5.js +++ b/tests/baselines/reference/classImplementsClass5.js @@ -21,7 +21,7 @@ c2 = c; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classImplementsClass6.js b/tests/baselines/reference/classImplementsClass6.js index 720329f26f7fa..c5003ec28f9d8 100644 --- a/tests/baselines/reference/classImplementsClass6.js +++ b/tests/baselines/reference/classImplementsClass6.js @@ -25,7 +25,7 @@ c2.bar(); // should error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classImplementsImportedInterface.js b/tests/baselines/reference/classImplementsImportedInterface.js index 1fd42ebc163df..d0ad42be777aa 100644 --- a/tests/baselines/reference/classImplementsImportedInterface.js +++ b/tests/baselines/reference/classImplementsImportedInterface.js @@ -16,7 +16,7 @@ module M2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classOrder1.js b/tests/baselines/reference/classOrder1.js index 9b8807a421c38..d03ff2de56684 100644 --- a/tests/baselines/reference/classOrder1.js +++ b/tests/baselines/reference/classOrder1.js @@ -15,7 +15,7 @@ a.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classOrder2.js b/tests/baselines/reference/classOrder2.js index be1b21cca5f6b..cb5856b64b07f 100644 --- a/tests/baselines/reference/classOrder2.js +++ b/tests/baselines/reference/classOrder2.js @@ -32,7 +32,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classPropertyAsPrivate.js b/tests/baselines/reference/classPropertyAsPrivate.js index 0420dfc2e65e6..b12c9dfb25365 100644 --- a/tests/baselines/reference/classPropertyAsPrivate.js +++ b/tests/baselines/reference/classPropertyAsPrivate.js @@ -27,7 +27,7 @@ C.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classPropertyAsProtected.js b/tests/baselines/reference/classPropertyAsProtected.js index f5d0549d55a69..e6cb8b0df439a 100644 --- a/tests/baselines/reference/classPropertyAsProtected.js +++ b/tests/baselines/reference/classPropertyAsProtected.js @@ -27,7 +27,7 @@ C.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classPropertyIsPublicByDefault.js b/tests/baselines/reference/classPropertyIsPublicByDefault.js index 0e4b5bdc6d214..4c90e850d6b5f 100644 --- a/tests/baselines/reference/classPropertyIsPublicByDefault.js +++ b/tests/baselines/reference/classPropertyIsPublicByDefault.js @@ -26,7 +26,7 @@ C.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classSideInheritance1.js b/tests/baselines/reference/classSideInheritance1.js index 783ea6a9c7fef..14dd830854241 100644 --- a/tests/baselines/reference/classSideInheritance1.js +++ b/tests/baselines/reference/classSideInheritance1.js @@ -19,7 +19,7 @@ C2.bar(); // valid var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classSideInheritance2.js b/tests/baselines/reference/classSideInheritance2.js index 49304de2dac76..a2ba7953a489d 100644 --- a/tests/baselines/reference/classSideInheritance2.js +++ b/tests/baselines/reference/classSideInheritance2.js @@ -34,7 +34,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithDuplicateIdentifier.js b/tests/baselines/reference/classWithDuplicateIdentifier.js index 28d5d9ab917a9..98591f5874106 100644 --- a/tests/baselines/reference/classWithDuplicateIdentifier.js +++ b/tests/baselines/reference/classWithDuplicateIdentifier.js @@ -17,7 +17,7 @@ class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithMultipleBaseClasses.js b/tests/baselines/reference/classWithMultipleBaseClasses.js index 67e782141b8e6..55f17c46a48a9 100644 --- a/tests/baselines/reference/classWithMultipleBaseClasses.js +++ b/tests/baselines/reference/classWithMultipleBaseClasses.js @@ -28,7 +28,7 @@ interface I extends A, B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js index a70ed7e2fb744..233d4c7a9ae99 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface.js @@ -30,7 +30,7 @@ i = c; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js index 3b7f48fbf66f5..f358a3f3b96b7 100644 --- a/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js +++ b/tests/baselines/reference/classWithOnlyPublicMembersEquivalentToInterface2.js @@ -32,7 +32,7 @@ i = c; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithOptionalParameter.js b/tests/baselines/reference/classWithOptionalParameter.js index 1247164480138..d120aadc52205 100644 --- a/tests/baselines/reference/classWithOptionalParameter.js +++ b/tests/baselines/reference/classWithOptionalParameter.js @@ -16,7 +16,7 @@ class C2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js b/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js index 95d3ed4e17872..6b5ecf0075f26 100644 --- a/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js +++ b/tests/baselines/reference/classWithOverloadImplementationOfWrongName.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js index 45cd55a779a30..14282ca062a91 100644 --- a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js +++ b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithPrivateProperty.js b/tests/baselines/reference/classWithPrivateProperty.js index eb0b0f30c2570..93d742ec3a9b3 100644 --- a/tests/baselines/reference/classWithPrivateProperty.js +++ b/tests/baselines/reference/classWithPrivateProperty.js @@ -27,7 +27,7 @@ var r8: string = C.g(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithProtectedProperty.js b/tests/baselines/reference/classWithProtectedProperty.js index 98c92cd3d6142..fbacfe6b634ee 100644 --- a/tests/baselines/reference/classWithProtectedProperty.js +++ b/tests/baselines/reference/classWithProtectedProperty.js @@ -32,7 +32,7 @@ class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classWithPublicProperty.js b/tests/baselines/reference/classWithPublicProperty.js index 4590324930e57..457afdcb2cc38 100644 --- a/tests/baselines/reference/classWithPublicProperty.js +++ b/tests/baselines/reference/classWithPublicProperty.js @@ -25,7 +25,7 @@ var r8: string = C.g(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/classdecl.js b/tests/baselines/reference/classdecl.js index 632553c70c831..d408cfc86ce74 100644 --- a/tests/baselines/reference/classdecl.js +++ b/tests/baselines/reference/classdecl.js @@ -97,7 +97,7 @@ class e { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/cloduleAcrossModuleDefinitions.js b/tests/baselines/reference/cloduleAcrossModuleDefinitions.js index 0398b28611776..44d3d307d3e27 100644 --- a/tests/baselines/reference/cloduleAcrossModuleDefinitions.js +++ b/tests/baselines/reference/cloduleAcrossModuleDefinitions.js @@ -19,7 +19,7 @@ var b: A.B; // ok var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionArgumentsClassMethod.js b/tests/baselines/reference/collisionArgumentsClassMethod.js index 56bbd852ca4e2..4037552a2d346 100644 --- a/tests/baselines/reference/collisionArgumentsClassMethod.js +++ b/tests/baselines/reference/collisionArgumentsClassMethod.js @@ -52,7 +52,7 @@ class c3 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js index f844db00c0df0..adbc7cbf115bd 100644 --- a/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js +++ b/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js @@ -36,7 +36,7 @@ module M { // Shouldnt bn _M var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionRestParameterClassMethod.js b/tests/baselines/reference/collisionRestParameterClassMethod.js index 3aab32fe5a3c7..3918bca3fe4aa 100644 --- a/tests/baselines/reference/collisionRestParameterClassMethod.js +++ b/tests/baselines/reference/collisionRestParameterClassMethod.js @@ -42,7 +42,7 @@ class c3 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js index 7a2c8cc6c578f..5915b5d2eda03 100644 --- a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js @@ -32,7 +32,7 @@ class c extends Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js index c567ac3d5b901..34ae153b8076d 100644 --- a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js @@ -22,7 +22,7 @@ class c extends Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionSuperAndNameResolution.js b/tests/baselines/reference/collisionSuperAndNameResolution.js index 39fe45fe6ddcc..1394b5a0f42bb 100644 --- a/tests/baselines/reference/collisionSuperAndNameResolution.js +++ b/tests/baselines/reference/collisionSuperAndNameResolution.js @@ -25,7 +25,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionSuperAndParameter.js b/tests/baselines/reference/collisionSuperAndParameter.js index 4340022352c18..3580fd527a48f 100644 --- a/tests/baselines/reference/collisionSuperAndParameter.js +++ b/tests/baselines/reference/collisionSuperAndParameter.js @@ -66,7 +66,7 @@ class Foo4 extends Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionSuperAndParameter1.js b/tests/baselines/reference/collisionSuperAndParameter1.js index c36e2f1ddb585..4877cdff4d277 100644 --- a/tests/baselines/reference/collisionSuperAndParameter1.js +++ b/tests/baselines/reference/collisionSuperAndParameter1.js @@ -23,7 +23,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js index 560bb4293e516..98e3160ebba2f 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarInMethod.js @@ -22,7 +22,7 @@ class a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js index 90eff4333f1e8..7a92dab3c4090 100644 --- a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js +++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js @@ -22,7 +22,7 @@ class b2 extends a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionThisExpressionAndNameResolution.js b/tests/baselines/reference/collisionThisExpressionAndNameResolution.js index 1ba2a0c4bb425..af4ba2408663f 100644 --- a/tests/baselines/reference/collisionThisExpressionAndNameResolution.js +++ b/tests/baselines/reference/collisionThisExpressionAndNameResolution.js @@ -16,7 +16,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/collisionThisExpressionAndParameter.js b/tests/baselines/reference/collisionThisExpressionAndParameter.js index a5047243da710..11d4b79ac908b 100644 --- a/tests/baselines/reference/collisionThisExpressionAndParameter.js +++ b/tests/baselines/reference/collisionThisExpressionAndParameter.js @@ -97,7 +97,7 @@ declare function f4(_this: string); // no code gen - no error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentOnClassMethod1.js b/tests/baselines/reference/commentOnClassMethod1.js index ff958b769826b..60e5d1f7ed8ef 100644 --- a/tests/baselines/reference/commentOnClassMethod1.js +++ b/tests/baselines/reference/commentOnClassMethod1.js @@ -11,7 +11,7 @@ class WebControls { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentOnSignature1.js b/tests/baselines/reference/commentOnSignature1.js index e281f8f660383..50319c90bde00 100644 --- a/tests/baselines/reference/commentOnSignature1.js +++ b/tests/baselines/reference/commentOnSignature1.js @@ -45,7 +45,7 @@ function foo2(a: any): void { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentsClassMembers.js b/tests/baselines/reference/commentsClassMembers.js index 43f5758b96cc2..129200add3759 100644 --- a/tests/baselines/reference/commentsClassMembers.js +++ b/tests/baselines/reference/commentsClassMembers.js @@ -221,7 +221,7 @@ cProperties_i.nc_p2 = cProperties_i.nc_p1; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentsInheritance.js b/tests/baselines/reference/commentsInheritance.js index b088a6b08fdc4..307486381b92b 100644 --- a/tests/baselines/reference/commentsInheritance.js +++ b/tests/baselines/reference/commentsInheritance.js @@ -154,7 +154,7 @@ i2_i = i3_i; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentsOverloads.js b/tests/baselines/reference/commentsOverloads.js index c4a72f0cbfd97..9d6b89062d0e8 100644 --- a/tests/baselines/reference/commentsOverloads.js +++ b/tests/baselines/reference/commentsOverloads.js @@ -178,7 +178,7 @@ var c5_i_2 = new c5("hello"); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentsTypeParameters.js b/tests/baselines/reference/commentsTypeParameters.js index c77583e3787bc..574306851bb71 100644 --- a/tests/baselines/reference/commentsTypeParameters.js +++ b/tests/baselines/reference/commentsTypeParameters.js @@ -19,7 +19,7 @@ function compare(a: T, b: T) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentsdoNotEmitComments.js b/tests/baselines/reference/commentsdoNotEmitComments.js index ead5b5bc925f8..fc223c8e5d2a6 100644 --- a/tests/baselines/reference/commentsdoNotEmitComments.js +++ b/tests/baselines/reference/commentsdoNotEmitComments.js @@ -96,7 +96,7 @@ var shade: color = color.green; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/commentsemitComments.js b/tests/baselines/reference/commentsemitComments.js index 850ed9c226bac..4c6318f668431 100644 --- a/tests/baselines/reference/commentsemitComments.js +++ b/tests/baselines/reference/commentsemitComments.js @@ -91,7 +91,7 @@ declare var x; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js index a02c8278ed2a9..3c9efa107bfa4 100644 --- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js +++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js @@ -198,7 +198,7 @@ var r8b7 = b6 !== a6; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/complexClassRelationships.js b/tests/baselines/reference/complexClassRelationships.js index 8732e7863060a..a891fb8a5f1a0 100644 --- a/tests/baselines/reference/complexClassRelationships.js +++ b/tests/baselines/reference/complexClassRelationships.js @@ -61,7 +61,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/complexNarrowingWithAny.js b/tests/baselines/reference/complexNarrowingWithAny.js index bac4d0363e2b3..108358b3896b3 100644 --- a/tests/baselines/reference/complexNarrowingWithAny.js +++ b/tests/baselines/reference/complexNarrowingWithAny.js @@ -565,7 +565,7 @@ export function viewFactory_AppComponent0(viewUtils:any,parentInjector:any,decla var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/complicatedPrivacy.js b/tests/baselines/reference/complicatedPrivacy.js index 9a36ad1589605..52b1fb3061229 100644 --- a/tests/baselines/reference/complicatedPrivacy.js +++ b/tests/baselines/reference/complicatedPrivacy.js @@ -108,7 +108,7 @@ module mglo5 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/compoundAssignmentLHSIsValue.js b/tests/baselines/reference/compoundAssignmentLHSIsValue.js index 5623081a1358b..7596febf6047d 100644 --- a/tests/baselines/reference/compoundAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundAssignmentLHSIsValue.js @@ -126,7 +126,7 @@ foo() += value; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js index ca2459a23e727..d8b7a70fced3e 100644 --- a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js +++ b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js @@ -89,7 +89,7 @@ foo() **= value; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames10_ES5.js b/tests/baselines/reference/computedPropertyNames10_ES5.js index af70c23380470..3f26a5f866ec6 100644 --- a/tests/baselines/reference/computedPropertyNames10_ES5.js +++ b/tests/baselines/reference/computedPropertyNames10_ES5.js @@ -20,7 +20,7 @@ var v = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames13_ES5.js b/tests/baselines/reference/computedPropertyNames13_ES5.js index a3a1e6cc7790d..d5bbf58f9ba1a 100644 --- a/tests/baselines/reference/computedPropertyNames13_ES5.js +++ b/tests/baselines/reference/computedPropertyNames13_ES5.js @@ -20,7 +20,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames14_ES5.js b/tests/baselines/reference/computedPropertyNames14_ES5.js index cb460e507a3df..4485487b9d05a 100644 --- a/tests/baselines/reference/computedPropertyNames14_ES5.js +++ b/tests/baselines/reference/computedPropertyNames14_ES5.js @@ -13,7 +13,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames15_ES5.js b/tests/baselines/reference/computedPropertyNames15_ES5.js index f6cdaf4abce01..6da02707cc2a0 100644 --- a/tests/baselines/reference/computedPropertyNames15_ES5.js +++ b/tests/baselines/reference/computedPropertyNames15_ES5.js @@ -12,7 +12,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames21_ES5.js b/tests/baselines/reference/computedPropertyNames21_ES5.js index 366b06bf9ce66..6652e2b08d3f0 100644 --- a/tests/baselines/reference/computedPropertyNames21_ES5.js +++ b/tests/baselines/reference/computedPropertyNames21_ES5.js @@ -10,7 +10,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames22_ES5.js b/tests/baselines/reference/computedPropertyNames22_ES5.js index fbfaf84111e3d..2d4c44b30bc44 100644 --- a/tests/baselines/reference/computedPropertyNames22_ES5.js +++ b/tests/baselines/reference/computedPropertyNames22_ES5.js @@ -12,7 +12,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames23_ES5.js b/tests/baselines/reference/computedPropertyNames23_ES5.js index f640239062130..8f26305f05bca 100644 --- a/tests/baselines/reference/computedPropertyNames23_ES5.js +++ b/tests/baselines/reference/computedPropertyNames23_ES5.js @@ -12,7 +12,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.js b/tests/baselines/reference/computedPropertyNames24_ES5.js index af40d6584858c..9953be8fc6ef8 100644 --- a/tests/baselines/reference/computedPropertyNames24_ES5.js +++ b/tests/baselines/reference/computedPropertyNames24_ES5.js @@ -12,7 +12,7 @@ class C extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5.js index 7dd0db2b6bb0e..ec13f55ecfc2e 100644 --- a/tests/baselines/reference/computedPropertyNames25_ES5.js +++ b/tests/baselines/reference/computedPropertyNames25_ES5.js @@ -17,7 +17,7 @@ class C extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5.js index 7fe8eea00c281..cfcd0f8dd3070 100644 --- a/tests/baselines/reference/computedPropertyNames26_ES5.js +++ b/tests/baselines/reference/computedPropertyNames26_ES5.js @@ -14,7 +14,7 @@ class C extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.js b/tests/baselines/reference/computedPropertyNames27_ES5.js index 6c68f6ee19bdd..5ba407d17e8d4 100644 --- a/tests/baselines/reference/computedPropertyNames27_ES5.js +++ b/tests/baselines/reference/computedPropertyNames27_ES5.js @@ -19,7 +19,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5.js index a801e9b536b86..31a3d61099b4e 100644 --- a/tests/baselines/reference/computedPropertyNames28_ES5.js +++ b/tests/baselines/reference/computedPropertyNames28_ES5.js @@ -24,7 +24,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames29_ES5.js b/tests/baselines/reference/computedPropertyNames29_ES5.js index 3bd4238d16673..df2b9f9fde077 100644 --- a/tests/baselines/reference/computedPropertyNames29_ES5.js +++ b/tests/baselines/reference/computedPropertyNames29_ES5.js @@ -14,7 +14,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames2_ES5.js b/tests/baselines/reference/computedPropertyNames2_ES5.js index 4744a6c5175bc..bde281f68319b 100644 --- a/tests/baselines/reference/computedPropertyNames2_ES5.js +++ b/tests/baselines/reference/computedPropertyNames2_ES5.js @@ -14,7 +14,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5.js index 24741b44de518..bf5a1548820f0 100644 --- a/tests/baselines/reference/computedPropertyNames30_ES5.js +++ b/tests/baselines/reference/computedPropertyNames30_ES5.js @@ -29,7 +29,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5.js index 2b0af1b947122..1aba8200ed237 100644 --- a/tests/baselines/reference/computedPropertyNames31_ES5.js +++ b/tests/baselines/reference/computedPropertyNames31_ES5.js @@ -19,7 +19,7 @@ class C extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames32_ES5.js b/tests/baselines/reference/computedPropertyNames32_ES5.js index 2f109349d50a5..43005920bdcd7 100644 --- a/tests/baselines/reference/computedPropertyNames32_ES5.js +++ b/tests/baselines/reference/computedPropertyNames32_ES5.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames33_ES5.js b/tests/baselines/reference/computedPropertyNames33_ES5.js index 9babd055223a1..1a42f9c195500 100644 --- a/tests/baselines/reference/computedPropertyNames33_ES5.js +++ b/tests/baselines/reference/computedPropertyNames33_ES5.js @@ -13,7 +13,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames34_ES5.js b/tests/baselines/reference/computedPropertyNames34_ES5.js index 0caee13fdde61..f39cf2a6f8310 100644 --- a/tests/baselines/reference/computedPropertyNames34_ES5.js +++ b/tests/baselines/reference/computedPropertyNames34_ES5.js @@ -13,7 +13,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames3_ES5.js b/tests/baselines/reference/computedPropertyNames3_ES5.js index ae85b07a974e6..e0c3fa7d930c4 100644 --- a/tests/baselines/reference/computedPropertyNames3_ES5.js +++ b/tests/baselines/reference/computedPropertyNames3_ES5.js @@ -13,7 +13,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNames40_ES5.js b/tests/baselines/reference/computedPropertyNames40_ES5.js index 1c08223b610a2..407f084d9b05a 100644 --- a/tests/baselines/reference/computedPropertyNames40_ES5.js +++ b/tests/baselines/reference/computedPropertyNames40_ES5.js @@ -14,7 +14,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js index 0059503531577..12488af98199f 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType1_ES5.js @@ -13,7 +13,7 @@ var o: I = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js index b1d59f8f30b4a..6d0836e061e4e 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType2_ES5.js @@ -13,7 +13,7 @@ var o: I = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js index b2e2d969e993e..dfeb0da718150 100644 --- a/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesContextualType3_ES5.js @@ -12,7 +12,7 @@ var o: I = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js index af44f1aa05bcf..f224cf5cf2104 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit1_ES5.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js index c41f85fad4f45..f859fd16eddbb 100644 --- a/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesDeclarationEmit5_ES5.js @@ -10,7 +10,7 @@ var v = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js index fdfba4a8e701b..d89c1a34ed68e 100644 --- a/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js index d5b036de58465..a56d7f5c06747 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.js @@ -12,7 +12,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt index 219efededfb2f..a4098b5eb43a3 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap1_ES5.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:computedPropertyNamesSourceMap1_ES5.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js index 152418521d9ae..7b7c4747c8514 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.js @@ -12,7 +12,7 @@ var v = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt index 2c5eb32d0b181..3e1278b8b78ba 100644 --- a/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt +++ b/tests/baselines/reference/computedPropertyNamesSourceMap2_ES5.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:computedPropertyNamesSourceMap2_ES5.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/conflictMarkerDiff3Trivia2.js b/tests/baselines/reference/conflictMarkerDiff3Trivia2.js index 6119862eb7ee2..fb5646d340fd7 100644 --- a/tests/baselines/reference/conflictMarkerDiff3Trivia2.js +++ b/tests/baselines/reference/conflictMarkerDiff3Trivia2.js @@ -20,7 +20,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/conflictMarkerTrivia2.js b/tests/baselines/reference/conflictMarkerTrivia2.js index 6af12c6af847c..4b857f45c3e5d 100644 --- a/tests/baselines/reference/conflictMarkerTrivia2.js +++ b/tests/baselines/reference/conflictMarkerTrivia2.js @@ -17,7 +17,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constantOverloadFunction.js b/tests/baselines/reference/constantOverloadFunction.js index 46b87c957f5be..53103b43a5fc8 100644 --- a/tests/baselines/reference/constantOverloadFunction.js +++ b/tests/baselines/reference/constantOverloadFunction.js @@ -17,7 +17,7 @@ function foo(tagName: any): Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js index 6d9a2ccf9901a..25d136bfb6d92 100644 --- a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js +++ b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js @@ -18,7 +18,7 @@ function foo(tagName: any): Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js index a583aad5cac6e..913812b972c0a 100644 --- a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js +++ b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js @@ -23,7 +23,7 @@ class Container { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constructorOverloads1.js b/tests/baselines/reference/constructorOverloads1.js index d2bc81a0506a4..d654c14fd2aa8 100644 --- a/tests/baselines/reference/constructorOverloads1.js +++ b/tests/baselines/reference/constructorOverloads1.js @@ -25,7 +25,7 @@ f1.bar2(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constructorOverloads2.js b/tests/baselines/reference/constructorOverloads2.js index 482af5b193487..1629273ebf0b1 100644 --- a/tests/baselines/reference/constructorOverloads2.js +++ b/tests/baselines/reference/constructorOverloads2.js @@ -29,7 +29,7 @@ f1.bar1(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constructorOverloads3.js b/tests/baselines/reference/constructorOverloads3.js index 36dbd7bfae5b5..cacc56f8bbbd0 100644 --- a/tests/baselines/reference/constructorOverloads3.js +++ b/tests/baselines/reference/constructorOverloads3.js @@ -36,7 +36,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constructorReturnsInvalidType.js b/tests/baselines/reference/constructorReturnsInvalidType.js index 0f6b1637482e6..947f8f3c81519 100644 --- a/tests/baselines/reference/constructorReturnsInvalidType.js +++ b/tests/baselines/reference/constructorReturnsInvalidType.js @@ -13,7 +13,7 @@ var x = new X(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js index 88c7569c62d60..aa1d969336f6f 100644 --- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js +++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js @@ -283,7 +283,7 @@ TypeScriptAllInOne.Program.Main(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/contextualTypeAppliedToVarArgs.js b/tests/baselines/reference/contextualTypeAppliedToVarArgs.js index 6738556dcde99..84e50203ba2d0 100644 --- a/tests/baselines/reference/contextualTypeAppliedToVarArgs.js +++ b/tests/baselines/reference/contextualTypeAppliedToVarArgs.js @@ -20,7 +20,7 @@ class Foo{ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js index fc32a8fd12296..d9dd2ae27ab31 100644 --- a/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js +++ b/tests/baselines/reference/contextuallyTypedClassExpressionMethodDeclaration02.js @@ -53,7 +53,7 @@ function getFoo3(): Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/controlFlowSuperPropertyAccess.js b/tests/baselines/reference/controlFlowSuperPropertyAccess.js index 2776eeeee644b..b816d3813292a 100644 --- a/tests/baselines/reference/controlFlowSuperPropertyAccess.js +++ b/tests/baselines/reference/controlFlowSuperPropertyAccess.js @@ -23,7 +23,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/crashInresolveReturnStatement.js b/tests/baselines/reference/crashInresolveReturnStatement.js index 8607d636331d0..3fbb8ff30519a 100644 --- a/tests/baselines/reference/crashInresolveReturnStatement.js +++ b/tests/baselines/reference/crashInresolveReturnStatement.js @@ -22,7 +22,7 @@ class WITDialogs { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js index 23649d763f64a..9619edcd7027e 100644 --- a/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js +++ b/tests/baselines/reference/crashIntypeCheckObjectCreationExpression.js @@ -12,7 +12,7 @@ export class BuildWorkspaceService { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/crashRegressionTest.js b/tests/baselines/reference/crashRegressionTest.js index 17d491f70b049..b5bfaf9b4ff42 100644 --- a/tests/baselines/reference/crashRegressionTest.js +++ b/tests/baselines/reference/crashRegressionTest.js @@ -29,7 +29,7 @@ module MsPortal.Util.TemplateEngine { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js index f7b503b249fe0..ee73566b91aed 100644 --- a/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js +++ b/tests/baselines/reference/declFileForClassWithMultipleBaseClasses.js @@ -30,7 +30,7 @@ interface I extends A, B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js index 9bc132115ab65..a8c369b165eb8 100644 --- a/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js +++ b/tests/baselines/reference/declFileForClassWithPrivateOverloadedFunction.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declFileForTypeParameters.js b/tests/baselines/reference/declFileForTypeParameters.js index 01c3b75bce6c2..cfec464dac212 100644 --- a/tests/baselines/reference/declFileForTypeParameters.js +++ b/tests/baselines/reference/declFileForTypeParameters.js @@ -10,7 +10,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declFileMethods.js b/tests/baselines/reference/declFileMethods.js index ad57603843b18..e132e26b16756 100644 --- a/tests/baselines/reference/declFileMethods.js +++ b/tests/baselines/reference/declFileMethods.js @@ -194,7 +194,7 @@ interface I2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -293,7 +293,7 @@ exports.c1 = c1; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declFilePrivateMethodOverloads.js b/tests/baselines/reference/declFilePrivateMethodOverloads.js index d33fd007cf6ed..647246d3a9f29 100644 --- a/tests/baselines/reference/declFilePrivateMethodOverloads.js +++ b/tests/baselines/reference/declFilePrivateMethodOverloads.js @@ -26,7 +26,7 @@ declare class c2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declInput-2.js b/tests/baselines/reference/declInput-2.js index 7682e2e040562..7514ca8323de0 100644 --- a/tests/baselines/reference/declInput-2.js +++ b/tests/baselines/reference/declInput-2.js @@ -25,7 +25,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declInput.js b/tests/baselines/reference/declInput.js index b5de6f0b988ed..a7ab01745ffb8 100644 --- a/tests/baselines/reference/declInput.js +++ b/tests/baselines/reference/declInput.js @@ -14,7 +14,7 @@ class bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declInput3.js b/tests/baselines/reference/declInput3.js index 409becec7b5d8..3485b34d77b33 100644 --- a/tests/baselines/reference/declInput3.js +++ b/tests/baselines/reference/declInput3.js @@ -14,7 +14,7 @@ class bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declInput4.js b/tests/baselines/reference/declInput4.js index a7e2e53dcbd14..fc9552dc4c7c4 100644 --- a/tests/baselines/reference/declInput4.js +++ b/tests/baselines/reference/declInput4.js @@ -19,7 +19,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declarationEmitClassMemberNameConflict.js b/tests/baselines/reference/declarationEmitClassMemberNameConflict.js index a40f4bf5a584f..7d2622f57c4b8 100644 --- a/tests/baselines/reference/declarationEmitClassMemberNameConflict.js +++ b/tests/baselines/reference/declarationEmitClassMemberNameConflict.js @@ -40,7 +40,7 @@ export class C4 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declarationEmitProtectedMembers.js b/tests/baselines/reference/declarationEmitProtectedMembers.js index 6158ff50ca14e..6e4745e956130 100644 --- a/tests/baselines/reference/declarationEmitProtectedMembers.js +++ b/tests/baselines/reference/declarationEmitProtectedMembers.js @@ -53,7 +53,7 @@ class C4 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declarationEmitThisPredicates01.js b/tests/baselines/reference/declarationEmitThisPredicates01.js index bc6aab26f7e06..aaf9f72f4cd2e 100644 --- a/tests/baselines/reference/declarationEmitThisPredicates01.js +++ b/tests/baselines/reference/declarationEmitThisPredicates01.js @@ -13,7 +13,7 @@ export class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js index d398c181585d3..6036280052e9c 100644 --- a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js +++ b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js @@ -13,7 +13,7 @@ class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declarationFiles.js b/tests/baselines/reference/declarationFiles.js index 1b706a5c9b705..7fe3de30b798c 100644 --- a/tests/baselines/reference/declarationFiles.js +++ b/tests/baselines/reference/declarationFiles.js @@ -51,7 +51,7 @@ class C4 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declarationMerging1.js b/tests/baselines/reference/declarationMerging1.js index 21cbc0d000560..2cbfb98c28784 100644 --- a/tests/baselines/reference/declarationMerging1.js +++ b/tests/baselines/reference/declarationMerging1.js @@ -15,7 +15,7 @@ interface A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/declarationMerging2.js b/tests/baselines/reference/declarationMerging2.js index 586435bf50378..3d15510ca88ea 100644 --- a/tests/baselines/reference/declarationMerging2.js +++ b/tests/baselines/reference/declarationMerging2.js @@ -18,7 +18,7 @@ declare module "./a" { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorChecksFunctionBodies.js b/tests/baselines/reference/decoratorChecksFunctionBodies.js index df4c2c873ae3a..a692be99b4c3f 100644 --- a/tests/baselines/reference/decoratorChecksFunctionBodies.js +++ b/tests/baselines/reference/decoratorChecksFunctionBodies.js @@ -18,7 +18,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorMetadata.js b/tests/baselines/reference/decoratorMetadata.js index ec7d644f7ccf2..b3ca0131c2286 100644 --- a/tests/baselines/reference/decoratorMetadata.js +++ b/tests/baselines/reference/decoratorMetadata.js @@ -32,7 +32,7 @@ exports.default = Service; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js index 1bf8673e1c403..7803c688f397a 100644 --- a/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js +++ b/tests/baselines/reference/decoratorMetadataRestParameterWithImportedType.js @@ -71,7 +71,7 @@ exports.SomeClass2 = SomeClass2; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClass9.js b/tests/baselines/reference/decoratorOnClass9.js index a3146727a3479..2d5ec9f210cae 100644 --- a/tests/baselines/reference/decoratorOnClass9.js +++ b/tests/baselines/reference/decoratorOnClass9.js @@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethod1.js b/tests/baselines/reference/decoratorOnClassMethod1.js index 61c37558a81f7..040b93fb16d46 100644 --- a/tests/baselines/reference/decoratorOnClassMethod1.js +++ b/tests/baselines/reference/decoratorOnClassMethod1.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethod10.js b/tests/baselines/reference/decoratorOnClassMethod10.js index 550ec8e67bbb9..1657da18b88be 100644 --- a/tests/baselines/reference/decoratorOnClassMethod10.js +++ b/tests/baselines/reference/decoratorOnClassMethod10.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethod11.js b/tests/baselines/reference/decoratorOnClassMethod11.js index 4f3fd9d1ea9b7..23bf66cd7ac72 100644 --- a/tests/baselines/reference/decoratorOnClassMethod11.js +++ b/tests/baselines/reference/decoratorOnClassMethod11.js @@ -12,7 +12,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethod12.js b/tests/baselines/reference/decoratorOnClassMethod12.js index 1a3fce78c32a9..e882a1314af06 100644 --- a/tests/baselines/reference/decoratorOnClassMethod12.js +++ b/tests/baselines/reference/decoratorOnClassMethod12.js @@ -13,7 +13,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethod2.js b/tests/baselines/reference/decoratorOnClassMethod2.js index 78395182d5843..db84d2638aa44 100644 --- a/tests/baselines/reference/decoratorOnClassMethod2.js +++ b/tests/baselines/reference/decoratorOnClassMethod2.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethod3.js b/tests/baselines/reference/decoratorOnClassMethod3.js index d692b49453849..1da1ad0605c07 100644 --- a/tests/baselines/reference/decoratorOnClassMethod3.js +++ b/tests/baselines/reference/decoratorOnClassMethod3.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethod8.js b/tests/baselines/reference/decoratorOnClassMethod8.js index e3c9382d43bef..820837de3ecbd 100644 --- a/tests/baselines/reference/decoratorOnClassMethod8.js +++ b/tests/baselines/reference/decoratorOnClassMethod8.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload1.js b/tests/baselines/reference/decoratorOnClassMethodOverload1.js index f904faf6b099a..3e9e94ec20416 100644 --- a/tests/baselines/reference/decoratorOnClassMethodOverload1.js +++ b/tests/baselines/reference/decoratorOnClassMethodOverload1.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethodOverload2.js b/tests/baselines/reference/decoratorOnClassMethodOverload2.js index ccc1c4bf8b3bc..d2b36bd3f73a6 100644 --- a/tests/baselines/reference/decoratorOnClassMethodOverload2.js +++ b/tests/baselines/reference/decoratorOnClassMethodOverload2.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/decoratorOnClassMethodParameter1.js b/tests/baselines/reference/decoratorOnClassMethodParameter1.js index d75b3d6d01d3f..5de11f915b719 100644 --- a/tests/baselines/reference/decoratorOnClassMethodParameter1.js +++ b/tests/baselines/reference/decoratorOnClassMethodParameter1.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/defaultArgsInOverloads.js b/tests/baselines/reference/defaultArgsInOverloads.js index e802062b17b5e..f9be54b989c77 100644 --- a/tests/baselines/reference/defaultArgsInOverloads.js +++ b/tests/baselines/reference/defaultArgsInOverloads.js @@ -23,7 +23,7 @@ var f: (a = 3) => number; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js index b8fcab9401687..10804a6782b76 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js @@ -37,7 +37,7 @@ class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt index 12d005b9a5fa7..e4c76a0a74ce1 100644 --- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt +++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js index 5fc6f693f2c4f..fdaf72f7d7b55 100644 --- a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js +++ b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js index 941eea28ed2f1..0b592d82a938b 100644 --- a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js +++ b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js @@ -44,7 +44,7 @@ var r8 = d2[1]; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js index e9b0a050bee05..243bcc8673daa 100644 --- a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js +++ b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js @@ -19,7 +19,7 @@ new DerivedClass(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js index afe13ab98b389..a29f77de19612 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js @@ -39,7 +39,7 @@ class Derived extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js index 79642066777a5..de4780abeb601 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js @@ -67,7 +67,7 @@ var r8 = d2[1]; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js index e0d58d6683746..34fb92ef791e0 100644 --- a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js +++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js @@ -74,7 +74,7 @@ class Derived10 extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassOverridesPublicMembers.js b/tests/baselines/reference/derivedClassOverridesPublicMembers.js index 234e35958ce5c..c240f465531c1 100644 --- a/tests/baselines/reference/derivedClassOverridesPublicMembers.js +++ b/tests/baselines/reference/derivedClassOverridesPublicMembers.js @@ -66,7 +66,7 @@ var r8 = d2[1]; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js index fc152c0b7c659..c5ebd6a9a1426 100644 --- a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js +++ b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js @@ -46,7 +46,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassTransitivity.js b/tests/baselines/reference/derivedClassTransitivity.js index 33aa61db48174..6bbccb2ca96d9 100644 --- a/tests/baselines/reference/derivedClassTransitivity.js +++ b/tests/baselines/reference/derivedClassTransitivity.js @@ -25,7 +25,7 @@ var r2 = e.foo(''); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassTransitivity2.js b/tests/baselines/reference/derivedClassTransitivity2.js index 39a9d91866564..9d74b9963727c 100644 --- a/tests/baselines/reference/derivedClassTransitivity2.js +++ b/tests/baselines/reference/derivedClassTransitivity2.js @@ -25,7 +25,7 @@ var r2 = e.foo(1, ''); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassTransitivity3.js b/tests/baselines/reference/derivedClassTransitivity3.js index 5b6f72f5eaeda..937750144eed7 100644 --- a/tests/baselines/reference/derivedClassTransitivity3.js +++ b/tests/baselines/reference/derivedClassTransitivity3.js @@ -25,7 +25,7 @@ var r2 = e.foo('', 1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassTransitivity4.js b/tests/baselines/reference/derivedClassTransitivity4.js index 68162bb8a6324..8adcbc4b93c56 100644 --- a/tests/baselines/reference/derivedClassTransitivity4.js +++ b/tests/baselines/reference/derivedClassTransitivity4.js @@ -25,7 +25,7 @@ var r2 = e.foo(''); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassWithAny.js b/tests/baselines/reference/derivedClassWithAny.js index 75dbf8c61c682..3f91b9a9dc0f4 100644 --- a/tests/baselines/reference/derivedClassWithAny.js +++ b/tests/baselines/reference/derivedClassWithAny.js @@ -63,7 +63,7 @@ var r = c.foo(); // e.foo would return string var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js index 51b82b3f7848a..453117078c559 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js @@ -25,7 +25,7 @@ class Derived extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js index db82dcdc6da3e..14f1ad00c9324 100644 --- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js +++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js @@ -36,7 +36,7 @@ Derived.a = 2; // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedClasses.js b/tests/baselines/reference/derivedClasses.js index 1631e9b97066a..e56622ec69eea 100644 --- a/tests/baselines/reference/derivedClasses.js +++ b/tests/baselines/reference/derivedClasses.js @@ -44,7 +44,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedGenericClassWithAny.js b/tests/baselines/reference/derivedGenericClassWithAny.js index 7d352e5a571b3..32c44c1903d37 100644 --- a/tests/baselines/reference/derivedGenericClassWithAny.js +++ b/tests/baselines/reference/derivedGenericClassWithAny.js @@ -46,7 +46,7 @@ var r = c.foo(); // e.foo would return string var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js index 0ef964991ef2a..9fa717e2c607d 100644 --- a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js +++ b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js @@ -21,7 +21,7 @@ class Derived extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js b/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js index 7981a31b3665e..13f44c0f4217c 100644 --- a/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js +++ b/tests/baselines/reference/derivedTypeCallingBaseImplWithOptionalParams.js @@ -17,7 +17,7 @@ y.myMethod(); // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js index 79213b521ee4e..12e36a45937c3 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration1ES5.js +++ b/tests/baselines/reference/destructuringParameterDeclaration1ES5.js @@ -104,7 +104,7 @@ function e5({x: [a, b, c]}: { x: [number, number, number] }) { } // x has type var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js b/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js index c30fbffb1114a..f74e7cd057233 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js +++ b/tests/baselines/reference/destructuringParameterDeclaration1ES5iterable.js @@ -104,7 +104,7 @@ function e5({x: [a, b, c]}: { x: [number, number, number] }) { } // x has type var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/destructuringParameterDeclaration2.js b/tests/baselines/reference/destructuringParameterDeclaration2.js index 5523945b259f4..241f7936b2313 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration2.js +++ b/tests/baselines/reference/destructuringParameterDeclaration2.js @@ -75,7 +75,7 @@ function e0({x: [number, number, number]}) { } // error, duplicate identifier; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/destructuringParameterProperties2.js b/tests/baselines/reference/destructuringParameterProperties2.js index 31e41d091c932..4ab61a4fceb31 100644 --- a/tests/baselines/reference/destructuringParameterProperties2.js +++ b/tests/baselines/reference/destructuringParameterProperties2.js @@ -33,7 +33,7 @@ var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()]; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/destructuringParameterProperties3.js b/tests/baselines/reference/destructuringParameterProperties3.js index 98284a97bc42e..e139b4e5755de 100644 --- a/tests/baselines/reference/destructuringParameterProperties3.js +++ b/tests/baselines/reference/destructuringParameterProperties3.js @@ -36,7 +36,7 @@ var [z_a, z_b, z_c] = [z.getA(), z.getB(), z.getC()]; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js index 27926bb2b9dc0..a2eb2aaa6130a 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js +++ b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody1.js @@ -12,7 +12,7 @@ class TestFile { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js index 93358d1abfe0e..e3dcee50ec62d 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js +++ b/tests/baselines/reference/detachedCommentAtStartOfFunctionBody2.js @@ -13,7 +13,7 @@ class TestFile { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js index 2a4b23bd30239..37081860619c8 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction1.js @@ -14,7 +14,7 @@ class TestFile { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js index 034674da0a97a..96ebcf9b2a76f 100644 --- a/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js +++ b/tests/baselines/reference/detachedCommentAtStartOfLambdaFunction2.js @@ -15,7 +15,7 @@ class TestFile { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js index e16d8cc16240a..8b4358c936fd9 100644 --- a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js +++ b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNode.js @@ -14,7 +14,7 @@ declare var OData: any; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js index ff43f4a7ccd00..2248390d76bcc 100644 --- a/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js +++ b/tests/baselines/reference/doNotEmitPinnedCommentOnNotEmittedNodets.js @@ -12,7 +12,7 @@ declare var OData: any; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/dottedSymbolResolution1.js b/tests/baselines/reference/dottedSymbolResolution1.js index 87a4bfe8fc7c7..bfc72f61e5634 100644 --- a/tests/baselines/reference/dottedSymbolResolution1.js +++ b/tests/baselines/reference/dottedSymbolResolution1.js @@ -29,7 +29,7 @@ function _setBarAndText(): void { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/downlevelLetConst16.js b/tests/baselines/reference/downlevelLetConst16.js index 56f230b67e6ae..b0feb49cbf8d5 100644 --- a/tests/baselines/reference/downlevelLetConst16.js +++ b/tests/baselines/reference/downlevelLetConst16.js @@ -232,7 +232,7 @@ function foo12() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/duplicateClassElements.js b/tests/baselines/reference/duplicateClassElements.js index 58727cb755053..32a03af4895aa 100644 --- a/tests/baselines/reference/duplicateClassElements.js +++ b/tests/baselines/reference/duplicateClassElements.js @@ -48,7 +48,7 @@ class a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/duplicateLocalVariable1.js b/tests/baselines/reference/duplicateLocalVariable1.js index f59969ed30f66..f5c02d5b35962 100644 --- a/tests/baselines/reference/duplicateLocalVariable1.js +++ b/tests/baselines/reference/duplicateLocalVariable1.js @@ -349,7 +349,7 @@ export var tests: TestRunner = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/duplicateLocalVariable2.js b/tests/baselines/reference/duplicateLocalVariable2.js index c5155b033a6e7..47cc3007106f5 100644 --- a/tests/baselines/reference/duplicateLocalVariable2.js +++ b/tests/baselines/reference/duplicateLocalVariable2.js @@ -39,7 +39,7 @@ export var tests: TestRunner = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/duplicatePropertyNames.js b/tests/baselines/reference/duplicatePropertyNames.js index db3ce57366b5a..757fd60aafbc1 100644 --- a/tests/baselines/reference/duplicatePropertyNames.js +++ b/tests/baselines/reference/duplicatePropertyNames.js @@ -53,7 +53,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/duplicateTypeParameters2.js b/tests/baselines/reference/duplicateTypeParameters2.js index 50ec7c7c72f15..0678c513ccd1f 100644 --- a/tests/baselines/reference/duplicateTypeParameters2.js +++ b/tests/baselines/reference/duplicateTypeParameters2.js @@ -8,7 +8,7 @@ interface I {} var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/duplicateVariablesByScope.js b/tests/baselines/reference/duplicateVariablesByScope.js index 7e21154755551..9a80abc0452e8 100644 --- a/tests/baselines/reference/duplicateVariablesByScope.js +++ b/tests/baselines/reference/duplicateVariablesByScope.js @@ -36,7 +36,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js index 53eff83d7448b..8f75db1289609 100644 --- a/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js +++ b/tests/baselines/reference/emitArrowFunctionWhenUsingArguments12.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js b/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js index 9bac87c157d21..8e91cc34172a7 100644 --- a/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js +++ b/tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js @@ -14,7 +14,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js index 4c937f4299377..d44d1aa68db7a 100644 --- a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js +++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js @@ -35,7 +35,7 @@ test.tags(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js index e9ee74a63e62e..3559fcd242c6b 100644 --- a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js +++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js @@ -34,7 +34,7 @@ test.tags(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitDecoratorMetadata_object.js b/tests/baselines/reference/emitDecoratorMetadata_object.js index 7a3552f86ff68..2e9b165e19a9d 100644 --- a/tests/baselines/reference/emitDecoratorMetadata_object.js +++ b/tests/baselines/reference/emitDecoratorMetadata_object.js @@ -14,7 +14,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitDecoratorMetadata_restArgs.js b/tests/baselines/reference/emitDecoratorMetadata_restArgs.js index 4c2aebbd23f64..eedff464cd124 100644 --- a/tests/baselines/reference/emitDecoratorMetadata_restArgs.js +++ b/tests/baselines/reference/emitDecoratorMetadata_restArgs.js @@ -21,7 +21,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitDefaultParametersMethod.js b/tests/baselines/reference/emitDefaultParametersMethod.js index 58a34d9509228..c25328e90bb6c 100644 --- a/tests/baselines/reference/emitDefaultParametersMethod.js +++ b/tests/baselines/reference/emitDefaultParametersMethod.js @@ -21,7 +21,7 @@ class E { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitMemberAccessExpression.js b/tests/baselines/reference/emitMemberAccessExpression.js index d3a05ce0afb3b..ff283cdf80b0b 100644 --- a/tests/baselines/reference/emitMemberAccessExpression.js +++ b/tests/baselines/reference/emitMemberAccessExpression.js @@ -30,7 +30,7 @@ module Microsoft.PeopleAtWork.Model { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitRestParametersMethod.js b/tests/baselines/reference/emitRestParametersMethod.js index 9cbffe48f0a26..a0e89134deba4 100644 --- a/tests/baselines/reference/emitRestParametersMethod.js +++ b/tests/baselines/reference/emitRestParametersMethod.js @@ -17,7 +17,7 @@ class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitThisInSuperMethodCall.js b/tests/baselines/reference/emitThisInSuperMethodCall.js index 9a6984e704ac5..0c4e9c8ffb51a 100644 --- a/tests/baselines/reference/emitThisInSuperMethodCall.js +++ b/tests/baselines/reference/emitThisInSuperMethodCall.js @@ -31,7 +31,7 @@ class RegisteredUser extends User { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js index 81b4109059d06..32feaf2fdf68e 100644 --- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js +++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js @@ -64,7 +64,7 @@ class C9 extends B9 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -131,7 +131,7 @@ var C1 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -204,7 +204,7 @@ var C2 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -277,7 +277,7 @@ var C3 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -371,7 +371,7 @@ var C4 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -472,7 +472,7 @@ var C5 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -545,7 +545,7 @@ var C6 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -612,7 +612,7 @@ var C7 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -682,7 +682,7 @@ var C8 = (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/errorRecoveryInClassDeclaration.js b/tests/baselines/reference/errorRecoveryInClassDeclaration.js index 1c9a761269e87..334460d76d6a4 100644 --- a/tests/baselines/reference/errorRecoveryInClassDeclaration.js +++ b/tests/baselines/reference/errorRecoveryInClassDeclaration.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/errorSuperCalls.js b/tests/baselines/reference/errorSuperCalls.js index e4e192ff77243..af47591d725f4 100644 --- a/tests/baselines/reference/errorSuperCalls.js +++ b/tests/baselines/reference/errorSuperCalls.js @@ -78,7 +78,7 @@ class OtherDerived extends OtherBase { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/errorSuperPropertyAccess.js b/tests/baselines/reference/errorSuperPropertyAccess.js index 92cc81eed0baa..da850720a86f3 100644 --- a/tests/baselines/reference/errorSuperPropertyAccess.js +++ b/tests/baselines/reference/errorSuperPropertyAccess.js @@ -132,7 +132,7 @@ var obj = { n: super.wat, p: super.foo() }; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/errorsInGenericTypeReference.js b/tests/baselines/reference/errorsInGenericTypeReference.js index a4a3e3d8f3c96..f9daaea58d05d 100644 --- a/tests/baselines/reference/errorsInGenericTypeReference.js +++ b/tests/baselines/reference/errorsInGenericTypeReference.js @@ -75,7 +75,7 @@ interface testInterface2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es3-amd.js b/tests/baselines/reference/es3-amd.js index 4c68ada569bba..a348f8c3f11d4 100644 --- a/tests/baselines/reference/es3-amd.js +++ b/tests/baselines/reference/es3-amd.js @@ -16,7 +16,7 @@ class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es3-declaration-amd.js b/tests/baselines/reference/es3-declaration-amd.js index 99814c9e3f9fd..a44d81a4998ae 100644 --- a/tests/baselines/reference/es3-declaration-amd.js +++ b/tests/baselines/reference/es3-declaration-amd.js @@ -16,7 +16,7 @@ class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es3-sourcemap-amd.js b/tests/baselines/reference/es3-sourcemap-amd.js index ecf68f3c7e1ce..12d2291614eea 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.js +++ b/tests/baselines/reference/es3-sourcemap-amd.js @@ -16,7 +16,7 @@ class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt b/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt index d7f6ca493ac07..1c091ba05646e 100644 --- a/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt +++ b/tests/baselines/reference/es3-sourcemap-amd.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:es3-sourcemap-amd.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/es5-amd.js b/tests/baselines/reference/es5-amd.js index 2620ba51f9eb6..e29defa1b820d 100644 --- a/tests/baselines/reference/es5-amd.js +++ b/tests/baselines/reference/es5-amd.js @@ -16,7 +16,7 @@ class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-commonjs.js b/tests/baselines/reference/es5-commonjs.js index f0024afbc9df7..912d28b5190c3 100644 --- a/tests/baselines/reference/es5-commonjs.js +++ b/tests/baselines/reference/es5-commonjs.js @@ -18,7 +18,7 @@ export default class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-commonjs4.js b/tests/baselines/reference/es5-commonjs4.js index 8615128f270b6..0872fa02cae3f 100644 --- a/tests/baselines/reference/es5-commonjs4.js +++ b/tests/baselines/reference/es5-commonjs4.js @@ -19,7 +19,7 @@ export var __esModule = 1; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-declaration-amd.js b/tests/baselines/reference/es5-declaration-amd.js index 8d08794b7cc87..41ac454c6c45d 100644 --- a/tests/baselines/reference/es5-declaration-amd.js +++ b/tests/baselines/reference/es5-declaration-amd.js @@ -16,7 +16,7 @@ class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-souremap-amd.js b/tests/baselines/reference/es5-souremap-amd.js index 988a5329aca38..8e1ec2c79920f 100644 --- a/tests/baselines/reference/es5-souremap-amd.js +++ b/tests/baselines/reference/es5-souremap-amd.js @@ -16,7 +16,7 @@ class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-souremap-amd.sourcemap.txt b/tests/baselines/reference/es5-souremap-amd.sourcemap.txt index 3166b74211c74..342bff7e959b2 100644 --- a/tests/baselines/reference/es5-souremap-amd.sourcemap.txt +++ b/tests/baselines/reference/es5-souremap-amd.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:es5-souremap-amd.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/es5-system.js b/tests/baselines/reference/es5-system.js index 8253b2391f0f9..31e41b38b8657 100644 --- a/tests/baselines/reference/es5-system.js +++ b/tests/baselines/reference/es5-system.js @@ -19,7 +19,7 @@ System.register([], function (exports_1, context_1) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-umd.js b/tests/baselines/reference/es5-umd.js index 4ab99de13c111..fdf83f5b61eaa 100644 --- a/tests/baselines/reference/es5-umd.js +++ b/tests/baselines/reference/es5-umd.js @@ -17,7 +17,7 @@ class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-umd2.js b/tests/baselines/reference/es5-umd2.js index 491ff70fc3516..c7ec4137d8b9c 100644 --- a/tests/baselines/reference/es5-umd2.js +++ b/tests/baselines/reference/es5-umd2.js @@ -17,7 +17,7 @@ export class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-umd3.js b/tests/baselines/reference/es5-umd3.js index 23d83f18acb7d..4ee23abe43657 100644 --- a/tests/baselines/reference/es5-umd3.js +++ b/tests/baselines/reference/es5-umd3.js @@ -17,7 +17,7 @@ export default class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5-umd4.js b/tests/baselines/reference/es5-umd4.js index 1872dbc3b1ebd..5e1871c6db941 100644 --- a/tests/baselines/reference/es5-umd4.js +++ b/tests/baselines/reference/es5-umd4.js @@ -19,7 +19,7 @@ export = A; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration.js index ff3b48174024f..8df260d054b44 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration.js @@ -9,7 +9,7 @@ export default class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js index 0ad182f670c7a..c3027509f8dc7 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration2.js @@ -9,7 +9,7 @@ export default class { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js index 3799302bc1a9d..73af83beea02a 100644 --- a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js +++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.js @@ -18,7 +18,7 @@ var t: typeof C = C; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5ExportEqualsDts.js b/tests/baselines/reference/es5ExportEqualsDts.js index 7160e9849ae03..34eb1e6368b46 100644 --- a/tests/baselines/reference/es5ExportEqualsDts.js +++ b/tests/baselines/reference/es5ExportEqualsDts.js @@ -17,7 +17,7 @@ export = A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5ModuleWithModuleGenAmd.js b/tests/baselines/reference/es5ModuleWithModuleGenAmd.js index a8e01c9889484..6dfe80163b01a 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenAmd.js +++ b/tests/baselines/reference/es5ModuleWithModuleGenAmd.js @@ -15,7 +15,7 @@ export class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js index c404174ff47e7..49d9f18593ad2 100644 --- a/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js +++ b/tests/baselines/reference/es5ModuleWithModuleGenCommonjs.js @@ -16,7 +16,7 @@ export class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js index c5a273bb1a626..d2278ee986061 100644 --- a/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js +++ b/tests/baselines/reference/es5ModuleWithoutModuleGenTarget.js @@ -16,7 +16,7 @@ export class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es5andes6module.js b/tests/baselines/reference/es5andes6module.js index 8cc74caacc73b..bfcf323c05e0b 100644 --- a/tests/baselines/reference/es5andes6module.js +++ b/tests/baselines/reference/es5andes6module.js @@ -17,7 +17,7 @@ export default class A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6ClassTest.js b/tests/baselines/reference/es6ClassTest.js index a2845ab2b77d2..6e306c9523d93 100644 --- a/tests/baselines/reference/es6ClassTest.js +++ b/tests/baselines/reference/es6ClassTest.js @@ -88,7 +88,7 @@ declare module AmbientMod { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6ClassTest2.js b/tests/baselines/reference/es6ClassTest2.js index bd2f40e2a631a..a78b6edd62aaa 100644 --- a/tests/baselines/reference/es6ClassTest2.js +++ b/tests/baselines/reference/es6ClassTest2.js @@ -162,7 +162,7 @@ var ccwc = new ChildClassWithoutConstructor(1, "s"); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6ClassTest3.js b/tests/baselines/reference/es6ClassTest3.js index de7c83e590ee4..583f74f727929 100644 --- a/tests/baselines/reference/es6ClassTest3.js +++ b/tests/baselines/reference/es6ClassTest3.js @@ -18,7 +18,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6DeclOrdering.js b/tests/baselines/reference/es6DeclOrdering.js index eb3ebce16f4bc..e751c1b71f0bc 100644 --- a/tests/baselines/reference/es6DeclOrdering.js +++ b/tests/baselines/reference/es6DeclOrdering.js @@ -20,7 +20,7 @@ class Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6MemberScoping.js b/tests/baselines/reference/es6MemberScoping.js index 46966bf9d149d..4a7c129ffafc7 100644 --- a/tests/baselines/reference/es6MemberScoping.js +++ b/tests/baselines/reference/es6MemberScoping.js @@ -19,7 +19,7 @@ class Foo2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6modulekindWithES5Target.js b/tests/baselines/reference/es6modulekindWithES5Target.js index 8e8ace8a7146e..96591304880be 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target.js +++ b/tests/baselines/reference/es6modulekindWithES5Target.js @@ -23,7 +23,7 @@ export {E}; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6modulekindWithES5Target11.js b/tests/baselines/reference/es6modulekindWithES5Target11.js index 7a1d5908897ca..7f36b5bb9272b 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target11.js +++ b/tests/baselines/reference/es6modulekindWithES5Target11.js @@ -12,7 +12,7 @@ export default class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6modulekindWithES5Target2.js b/tests/baselines/reference/es6modulekindWithES5Target2.js index bf4537a66693e..596202dd78152 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target2.js +++ b/tests/baselines/reference/es6modulekindWithES5Target2.js @@ -10,7 +10,7 @@ export default class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/es6modulekindWithES5Target3.js b/tests/baselines/reference/es6modulekindWithES5Target3.js index c30069cfedd18..dc7fc0cb21a27 100644 --- a/tests/baselines/reference/es6modulekindWithES5Target3.js +++ b/tests/baselines/reference/es6modulekindWithES5Target3.js @@ -11,7 +11,7 @@ export default class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/escapedIdentifiers.js b/tests/baselines/reference/escapedIdentifiers.js index f81e10040d8f7..1c59e66f2aeca 100644 --- a/tests/baselines/reference/escapedIdentifiers.js +++ b/tests/baselines/reference/escapedIdentifiers.js @@ -133,7 +133,7 @@ l\u0061bel4: var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/exportPrivateType.js b/tests/baselines/reference/exportPrivateType.js index 96ced78ac85b3..03d60fd3fb94c 100644 --- a/tests/baselines/reference/exportPrivateType.js +++ b/tests/baselines/reference/exportPrivateType.js @@ -34,7 +34,7 @@ var y = foo.g; // Exported variable 'y' has or is using private type 'foo.C2'. var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/expressionTypeNodeShouldError.js b/tests/baselines/reference/expressionTypeNodeShouldError.js index c4f9180eb733c..3a2465916f669 100644 --- a/tests/baselines/reference/expressionTypeNodeShouldError.js +++ b/tests/baselines/reference/expressionTypeNodeShouldError.js @@ -51,7 +51,7 @@ type ItemType3 = true.typeof(nodes.item(0)); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -78,7 +78,7 @@ typeof (nodes.item(0)); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -105,7 +105,7 @@ typeof (nodes.item(0)); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType.js b/tests/baselines/reference/extendAndImplementTheSameBaseType.js index 1a75cec7113bf..b4d9c046641ca 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType.js @@ -17,7 +17,7 @@ d.foo; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js index eba1970df050a..c1fea12763255 100644 --- a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js +++ b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js @@ -20,7 +20,7 @@ var r4: number = d.bar(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/extendNonClassSymbol1.js b/tests/baselines/reference/extendNonClassSymbol1.js index b0aee22cdfb6e..59d70f34a051a 100644 --- a/tests/baselines/reference/extendNonClassSymbol1.js +++ b/tests/baselines/reference/extendNonClassSymbol1.js @@ -7,7 +7,7 @@ class C extends x { } // error, could not find symbol xs var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/extendsClauseAlreadySeen.js b/tests/baselines/reference/extendsClauseAlreadySeen.js index 3c4a9ea2b2f90..bd138bc6ecce7 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen.js @@ -20,7 +20,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/extendsClauseAlreadySeen2.js b/tests/baselines/reference/extendsClauseAlreadySeen2.js index d5ad5ba5a9883..a451cb4e10f2a 100644 --- a/tests/baselines/reference/extendsClauseAlreadySeen2.js +++ b/tests/baselines/reference/extendsClauseAlreadySeen2.js @@ -20,7 +20,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/externalModuleQualification.js b/tests/baselines/reference/externalModuleQualification.js index ca7d872918841..c736e277544ea 100644 --- a/tests/baselines/reference/externalModuleQualification.js +++ b/tests/baselines/reference/externalModuleQualification.js @@ -16,7 +16,7 @@ class NavigateAction { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/fatArrowSelf.js b/tests/baselines/reference/fatArrowSelf.js index ca49966076eda..e6a096e209bfc 100644 --- a/tests/baselines/reference/fatArrowSelf.js +++ b/tests/baselines/reference/fatArrowSelf.js @@ -28,7 +28,7 @@ module Consumer { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/flowInFinally1.js b/tests/baselines/reference/flowInFinally1.js index a01f5db7f507e..a8040e2676694 100644 --- a/tests/baselines/reference/flowInFinally1.js +++ b/tests/baselines/reference/flowInFinally1.js @@ -18,7 +18,7 @@ try { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/fluentClasses.js b/tests/baselines/reference/fluentClasses.js index 72b4f8f1a425a..f3dcde7aec747 100644 --- a/tests/baselines/reference/fluentClasses.js +++ b/tests/baselines/reference/fluentClasses.js @@ -22,7 +22,7 @@ var z = c.foo().bar().baz(); // Fluent pattern var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/for-inStatements.js b/tests/baselines/reference/for-inStatements.js index 29e87cef0ab86..0d9e9fe5d542d 100644 --- a/tests/baselines/reference/for-inStatements.js +++ b/tests/baselines/reference/for-inStatements.js @@ -84,7 +84,7 @@ for (var x in Color.Blue) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/for-inStatementsInvalid.js b/tests/baselines/reference/for-inStatementsInvalid.js index a83897717f3c6..e23705ad28eb8 100644 --- a/tests/baselines/reference/for-inStatementsInvalid.js +++ b/tests/baselines/reference/for-inStatementsInvalid.js @@ -67,7 +67,7 @@ for (var x in i[42]) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/forwardRefInClassProperties.js b/tests/baselines/reference/forwardRefInClassProperties.js index 50e4251023803..6f7ae2669782d 100644 --- a/tests/baselines/reference/forwardRefInClassProperties.js +++ b/tests/baselines/reference/forwardRefInClassProperties.js @@ -19,7 +19,7 @@ class Test var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionAndPropertyNameConflict.js b/tests/baselines/reference/functionAndPropertyNameConflict.js index 707a0287fd07c..1176050e3a269 100644 --- a/tests/baselines/reference/functionAndPropertyNameConflict.js +++ b/tests/baselines/reference/functionAndPropertyNameConflict.js @@ -10,7 +10,7 @@ class C65 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionArgShadowing.js b/tests/baselines/reference/functionArgShadowing.js index 8c2d0caf39f1a..13e2800685911 100644 --- a/tests/baselines/reference/functionArgShadowing.js +++ b/tests/baselines/reference/functionArgShadowing.js @@ -18,7 +18,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionExpressionContextualTyping1.js b/tests/baselines/reference/functionExpressionContextualTyping1.js index 849611a002337..10d8249fd2c7f 100644 --- a/tests/baselines/reference/functionExpressionContextualTyping1.js +++ b/tests/baselines/reference/functionExpressionContextualTyping1.js @@ -62,7 +62,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionOverloadErrors.js b/tests/baselines/reference/functionOverloadErrors.js index f6d100d8a705c..46599e909fdd3 100644 --- a/tests/baselines/reference/functionOverloadErrors.js +++ b/tests/baselines/reference/functionOverloadErrors.js @@ -122,7 +122,7 @@ function initExpr() { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionOverloads5.js b/tests/baselines/reference/functionOverloads5.js index 0813b01dd6be3..0e8283eb4ff88 100644 --- a/tests/baselines/reference/functionOverloads5.js +++ b/tests/baselines/reference/functionOverloads5.js @@ -9,7 +9,7 @@ class baz { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionOverloads7.js b/tests/baselines/reference/functionOverloads7.js index 96789228b511f..30df09a5adeac 100644 --- a/tests/baselines/reference/functionOverloads7.js +++ b/tests/baselines/reference/functionOverloads7.js @@ -14,7 +14,7 @@ class foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionOverloadsOutOfOrder.js b/tests/baselines/reference/functionOverloadsOutOfOrder.js index a1390f72d5b78..46f77660bbdd4 100644 --- a/tests/baselines/reference/functionOverloadsOutOfOrder.js +++ b/tests/baselines/reference/functionOverloadsOutOfOrder.js @@ -19,7 +19,7 @@ class e { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs.js b/tests/baselines/reference/functionSubtypingOfVarArgs.js index 9f6911f65f1d3..2b9b55d20fffe 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs.js @@ -18,7 +18,7 @@ class StringEvent extends EventBase { // should work var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs2.js b/tests/baselines/reference/functionSubtypingOfVarArgs2.js index e1d89699ab9d5..b6d457d43540e 100644 --- a/tests/baselines/reference/functionSubtypingOfVarArgs2.js +++ b/tests/baselines/reference/functionSubtypingOfVarArgs2.js @@ -18,7 +18,7 @@ class StringEvent extends EventBase { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionWithSameNameAsField.js b/tests/baselines/reference/functionWithSameNameAsField.js index 7a2d236d38af4..5511529a06fd3 100644 --- a/tests/baselines/reference/functionWithSameNameAsField.js +++ b/tests/baselines/reference/functionWithSameNameAsField.js @@ -12,7 +12,7 @@ class TestProgressBar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/functionsInClassExpressions.js b/tests/baselines/reference/functionsInClassExpressions.js index e2340728ee616..2459a7ed5ce5a 100644 --- a/tests/baselines/reference/functionsInClassExpressions.js +++ b/tests/baselines/reference/functionsInClassExpressions.js @@ -14,7 +14,7 @@ let Foo = class { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/fuzzy.js b/tests/baselines/reference/fuzzy.js index 021a6366c4b59..9c65496462be4 100644 --- a/tests/baselines/reference/fuzzy.js +++ b/tests/baselines/reference/fuzzy.js @@ -34,7 +34,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js b/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js index 534052822d084..a351e4ef3d359 100644 --- a/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js +++ b/tests/baselines/reference/genericArrayWithoutTypeAnnotation.js @@ -11,7 +11,7 @@ class Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js b/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js index ead801fa484eb..5afc6d51b41bf 100644 --- a/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js +++ b/tests/baselines/reference/genericAssignmentCompatWithInterfaces1.js @@ -23,7 +23,7 @@ var a4: I = >z; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty.js b/tests/baselines/reference/genericBaseClassLiteralProperty.js index 9381c836cafcb..5ebc07f7a512a 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty.js @@ -26,7 +26,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty2.js b/tests/baselines/reference/genericBaseClassLiteralProperty2.js index ee60e740e8baf..a2420e56f65d0 100644 --- a/tests/baselines/reference/genericBaseClassLiteralProperty2.js +++ b/tests/baselines/reference/genericBaseClassLiteralProperty2.js @@ -29,7 +29,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCallTypeArgumentInference.js b/tests/baselines/reference/genericCallTypeArgumentInference.js index 9dd457b8a3359..3f0cacadec479 100644 --- a/tests/baselines/reference/genericCallTypeArgumentInference.js +++ b/tests/baselines/reference/genericCallTypeArgumentInference.js @@ -96,7 +96,7 @@ var r11 = i.foo8(); // {} var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js index 46f8ae6b125e7..32745b06bc2e4 100644 --- a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js +++ b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js @@ -122,7 +122,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCallWithFixedArguments.js b/tests/baselines/reference/genericCallWithFixedArguments.js index 9667af15fc753..f8fcd24320819 100644 --- a/tests/baselines/reference/genericCallWithFixedArguments.js +++ b/tests/baselines/reference/genericCallWithFixedArguments.js @@ -11,7 +11,7 @@ g(7) // the parameter list is fixed, so this should not error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js index f86b54dd49e31..69a97a39a7c20 100644 --- a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js +++ b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js @@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js index 39abba1d602dd..a81aeb6dd567f 100644 --- a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js +++ b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js @@ -79,7 +79,7 @@ class ViewModel implements Contract { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js b/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js index 5c056f6d635e5..13f1cb2d1eb59 100644 --- a/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js +++ b/tests/baselines/reference/genericClassWithFunctionTypedMemberArguments.js @@ -70,7 +70,7 @@ module WithCandidates { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js index 09598e634dda8..f7a5a76cb2680 100644 --- a/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js +++ b/tests/baselines/reference/genericClassWithObjectTypeArgsAndConstraints.js @@ -66,7 +66,7 @@ module Interface { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericClassWithStaticFactory.js b/tests/baselines/reference/genericClassWithStaticFactory.js index de507a4280da3..8f07588a73065 100644 --- a/tests/baselines/reference/genericClassWithStaticFactory.js +++ b/tests/baselines/reference/genericClassWithStaticFactory.js @@ -145,7 +145,7 @@ module Editor { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericClasses4.js b/tests/baselines/reference/genericClasses4.js index 9322f68d0493d..a0681b234bbb1 100644 --- a/tests/baselines/reference/genericClasses4.js +++ b/tests/baselines/reference/genericClasses4.js @@ -21,7 +21,7 @@ class Vec2_T var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericClassesInModule2.js b/tests/baselines/reference/genericClassesInModule2.js index 36a0d4bcbff6d..54e7accc9aef3 100644 --- a/tests/baselines/reference/genericClassesInModule2.js +++ b/tests/baselines/reference/genericClassesInModule2.js @@ -24,7 +24,7 @@ export class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCloduleInModule.js b/tests/baselines/reference/genericCloduleInModule.js index 3b5e5696dc53d..f8e45bd09b741 100644 --- a/tests/baselines/reference/genericCloduleInModule.js +++ b/tests/baselines/reference/genericCloduleInModule.js @@ -16,7 +16,7 @@ b.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCloduleInModule2.js b/tests/baselines/reference/genericCloduleInModule2.js index 82aa1a219f061..3a6bb63f957fb 100644 --- a/tests/baselines/reference/genericCloduleInModule2.js +++ b/tests/baselines/reference/genericCloduleInModule2.js @@ -19,7 +19,7 @@ b.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCloneReturnTypes.js b/tests/baselines/reference/genericCloneReturnTypes.js index 9f7f95df4acda..aad9025f2f757 100644 --- a/tests/baselines/reference/genericCloneReturnTypes.js +++ b/tests/baselines/reference/genericCloneReturnTypes.js @@ -29,7 +29,7 @@ b = b3; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericCloneReturnTypes2.js b/tests/baselines/reference/genericCloneReturnTypes2.js index d07b42f11634e..2b6fe6373d304 100644 --- a/tests/baselines/reference/genericCloneReturnTypes2.js +++ b/tests/baselines/reference/genericCloneReturnTypes2.js @@ -19,7 +19,7 @@ var d: MyList = a.clone(); // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericConstraint1.js b/tests/baselines/reference/genericConstraint1.js index c996cfbffd8a0..ac79a61b88d2c 100644 --- a/tests/baselines/reference/genericConstraint1.js +++ b/tests/baselines/reference/genericConstraint1.js @@ -12,7 +12,7 @@ x.bar2(2, ""); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericConstraint2.js b/tests/baselines/reference/genericConstraint2.js index 928bc58ab291d..e0e93da636f81 100644 --- a/tests/baselines/reference/genericConstraint2.js +++ b/tests/baselines/reference/genericConstraint2.js @@ -25,7 +25,7 @@ var c = compare(a, b); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js index d3e38d9962b8e..69fd3559d2578 100644 --- a/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js +++ b/tests/baselines/reference/genericFunctionsWithOptionalParameters3.js @@ -19,7 +19,7 @@ var r5 = utils.mapReduce(c, f1, f2); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericImplements.js b/tests/baselines/reference/genericImplements.js index 811be4880ab9b..dcd27870d96eb 100644 --- a/tests/baselines/reference/genericImplements.js +++ b/tests/baselines/reference/genericImplements.js @@ -24,7 +24,7 @@ class Z implements I { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericInstanceOf.js b/tests/baselines/reference/genericInstanceOf.js index b8572adc8dedb..17b1df2059e38 100644 --- a/tests/baselines/reference/genericInstanceOf.js +++ b/tests/baselines/reference/genericInstanceOf.js @@ -15,7 +15,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericInterfaceImplementation.js b/tests/baselines/reference/genericInterfaceImplementation.js index 60f14af278bd1..779982ebb33ac 100644 --- a/tests/baselines/reference/genericInterfaceImplementation.js +++ b/tests/baselines/reference/genericInterfaceImplementation.js @@ -20,7 +20,7 @@ class None implements IOption{ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericMemberFunction.js b/tests/baselines/reference/genericMemberFunction.js index ebc879aed2408..9d768f3b80813 100644 --- a/tests/baselines/reference/genericMemberFunction.js +++ b/tests/baselines/reference/genericMemberFunction.js @@ -26,7 +26,7 @@ export class BuildResult{ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericObjectLitReturnType.js b/tests/baselines/reference/genericObjectLitReturnType.js index e368018690bf5..a2215841fb7ad 100644 --- a/tests/baselines/reference/genericObjectLitReturnType.js +++ b/tests/baselines/reference/genericObjectLitReturnType.js @@ -15,7 +15,7 @@ t1.a = 5; // Should not error: t1 should have type {a: number}, instead has type var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericOfACloduleType1.js b/tests/baselines/reference/genericOfACloduleType1.js index df77fbfa97475..2072c5ff811ef 100644 --- a/tests/baselines/reference/genericOfACloduleType1.js +++ b/tests/baselines/reference/genericOfACloduleType1.js @@ -16,7 +16,7 @@ var g2 = new G() // was: error Type reference cannot refer to container 'M. var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericOfACloduleType2.js b/tests/baselines/reference/genericOfACloduleType2.js index e7e748301c165..335c55c24052e 100644 --- a/tests/baselines/reference/genericOfACloduleType2.js +++ b/tests/baselines/reference/genericOfACloduleType2.js @@ -19,7 +19,7 @@ module N { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericPrototypeProperty.js b/tests/baselines/reference/genericPrototypeProperty.js index 0b02c6a43912a..f9246ea76b121 100644 --- a/tests/baselines/reference/genericPrototypeProperty.js +++ b/tests/baselines/reference/genericPrototypeProperty.js @@ -13,7 +13,7 @@ var r3 = r.foo(null); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js index 570bbf372aaaf..0b358e71c1082 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js @@ -30,7 +30,7 @@ module TypeScript2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js index 66cf3dd3d3cd8..6f7082d6292ef 100644 --- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js +++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js @@ -44,7 +44,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericReversingTypeParameters.js b/tests/baselines/reference/genericReversingTypeParameters.js index 64a2360afe8c1..3fd8b52805876 100644 --- a/tests/baselines/reference/genericReversingTypeParameters.js +++ b/tests/baselines/reference/genericReversingTypeParameters.js @@ -14,7 +14,7 @@ var r2b = i.get(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericReversingTypeParameters2.js b/tests/baselines/reference/genericReversingTypeParameters2.js index 70e3efd024c6a..fa0d824870ad0 100644 --- a/tests/baselines/reference/genericReversingTypeParameters2.js +++ b/tests/baselines/reference/genericReversingTypeParameters2.js @@ -13,7 +13,7 @@ var r2b = i.get(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericSpecializations1.js b/tests/baselines/reference/genericSpecializations1.js index 96e264287167f..6120114af0bd5 100644 --- a/tests/baselines/reference/genericSpecializations1.js +++ b/tests/baselines/reference/genericSpecializations1.js @@ -19,7 +19,7 @@ class StringFoo3 implements IFoo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericSpecializations2.js b/tests/baselines/reference/genericSpecializations2.js index 73bfe79e0d097..e8916ca7c891d 100644 --- a/tests/baselines/reference/genericSpecializations2.js +++ b/tests/baselines/reference/genericSpecializations2.js @@ -23,7 +23,7 @@ class StringFoo3 implements IFoo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericSpecializations3.js b/tests/baselines/reference/genericSpecializations3.js index 1c3ce72cc7b3b..bd817d0630e30 100644 --- a/tests/baselines/reference/genericSpecializations3.js +++ b/tests/baselines/reference/genericSpecializations3.js @@ -39,7 +39,7 @@ var stringFoo3: StringFoo3; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeAssertions1.js b/tests/baselines/reference/genericTypeAssertions1.js index dc62289a75250..6518490c415aa 100644 --- a/tests/baselines/reference/genericTypeAssertions1.js +++ b/tests/baselines/reference/genericTypeAssertions1.js @@ -8,7 +8,7 @@ var r2: A = >>foo; // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeAssertions2.js b/tests/baselines/reference/genericTypeAssertions2.js index b4a489e8c65de..851a75cbc4c16 100644 --- a/tests/baselines/reference/genericTypeAssertions2.js +++ b/tests/baselines/reference/genericTypeAssertions2.js @@ -17,7 +17,7 @@ var r5: A = >[]; // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeAssertions4.js b/tests/baselines/reference/genericTypeAssertions4.js index 783ee453c5f89..3340454939c43 100644 --- a/tests/baselines/reference/genericTypeAssertions4.js +++ b/tests/baselines/reference/genericTypeAssertions4.js @@ -29,7 +29,7 @@ function foo2(x: T) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeAssertions6.js b/tests/baselines/reference/genericTypeAssertions6.js index a64f84c8be865..e397ebdefc7ca 100644 --- a/tests/baselines/reference/genericTypeAssertions6.js +++ b/tests/baselines/reference/genericTypeAssertions6.js @@ -28,7 +28,7 @@ var c: A = >b; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeConstraints.js b/tests/baselines/reference/genericTypeConstraints.js index c2079ba9d027e..b57f58a2791af 100644 --- a/tests/baselines/reference/genericTypeConstraints.js +++ b/tests/baselines/reference/genericTypeConstraints.js @@ -17,7 +17,7 @@ class BarExtended extends Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js b/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js index 00c626cbe06dc..67963a1117ad0 100644 --- a/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js +++ b/tests/baselines/reference/genericTypeReferencesRequireTypeArgs.js @@ -15,7 +15,7 @@ var i2: I; // should be an error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeWithCallableMembers.js b/tests/baselines/reference/genericTypeWithCallableMembers.js index b9a2b4633e3b0..3086202b09c42 100644 --- a/tests/baselines/reference/genericTypeWithCallableMembers.js +++ b/tests/baselines/reference/genericTypeWithCallableMembers.js @@ -16,7 +16,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js b/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js index 4ddbbf64f0e6d..7bfd850a86ec8 100644 --- a/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js +++ b/tests/baselines/reference/genericTypeWithNonGenericBaseMisMatch.js @@ -13,7 +13,7 @@ var i: I = x; // Should not be allowed -- type of 'f' is incompatible with 'I' var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericWithCallSignatures1.js b/tests/baselines/reference/genericWithCallSignatures1.js index 129c67f4f19ec..4e824922a84fa 100644 --- a/tests/baselines/reference/genericWithCallSignatures1.js +++ b/tests/baselines/reference/genericWithCallSignatures1.js @@ -23,7 +23,7 @@ class MyClass { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js index dd1ca4bba5a3b..b98b03143f0ba 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType1.js @@ -12,7 +12,7 @@ var value: string = lazyArray.array()["test"]; // used to be an error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js index 0c56f496e6e73..840eb551f2728 100644 --- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js +++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericWithOpenTypeParameters1.js b/tests/baselines/reference/genericWithOpenTypeParameters1.js index a6e656349a6ee..314ce52b76f4d 100644 --- a/tests/baselines/reference/genericWithOpenTypeParameters1.js +++ b/tests/baselines/reference/genericWithOpenTypeParameters1.js @@ -15,7 +15,7 @@ var f4 = (x: B) => { return x.foo(1); } // no error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js b/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js index c860a22889628..dd8fd28b9b4d6 100644 --- a/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js +++ b/tests/baselines/reference/genericsWithDuplicateTypeParameters1.js @@ -20,7 +20,7 @@ var m = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/genericsWithoutTypeParameters1.js b/tests/baselines/reference/genericsWithoutTypeParameters1.js index ffc23aca680fd..d7cbc04343d0b 100644 --- a/tests/baselines/reference/genericsWithoutTypeParameters1.js +++ b/tests/baselines/reference/genericsWithoutTypeParameters1.js @@ -37,7 +37,7 @@ function f(x: T): A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/getAndSetAsMemberNames.js b/tests/baselines/reference/getAndSetAsMemberNames.js index 7d04d2b76610b..3e1b907e201d4 100644 --- a/tests/baselines/reference/getAndSetAsMemberNames.js +++ b/tests/baselines/reference/getAndSetAsMemberNames.js @@ -25,7 +25,7 @@ class C5 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/getterControlFlowStrictNull.js b/tests/baselines/reference/getterControlFlowStrictNull.js index b752ea5df4b42..5919143c80a59 100644 --- a/tests/baselines/reference/getterControlFlowStrictNull.js +++ b/tests/baselines/reference/getterControlFlowStrictNull.js @@ -22,7 +22,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js b/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js index aa92a19c81c55..46e7fe943d57a 100644 --- a/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js +++ b/tests/baselines/reference/getterThatThrowsShouldNotNeedReturn.js @@ -13,7 +13,7 @@ class Greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/giant.js b/tests/baselines/reference/giant.js index 94535444c75ea..650744110e66c 100644 --- a/tests/baselines/reference/giant.js +++ b/tests/baselines/reference/giant.js @@ -684,7 +684,7 @@ export declare module eaM { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/grammarAmbiguities1.js b/tests/baselines/reference/grammarAmbiguities1.js index 338f5f5d8676a..7372bd6fbacfd 100644 --- a/tests/baselines/reference/grammarAmbiguities1.js +++ b/tests/baselines/reference/grammarAmbiguities1.js @@ -14,7 +14,7 @@ f(g < A, B > +(7)); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/heterogeneousArrayAndOverloads.js b/tests/baselines/reference/heterogeneousArrayAndOverloads.js index 6e0630735a737..f2eed933924fd 100644 --- a/tests/baselines/reference/heterogeneousArrayAndOverloads.js +++ b/tests/baselines/reference/heterogeneousArrayAndOverloads.js @@ -15,7 +15,7 @@ class arrTest { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implementGenericWithMismatchedTypes.js b/tests/baselines/reference/implementGenericWithMismatchedTypes.js index b83d66f63431c..ca435020e25b0 100644 --- a/tests/baselines/reference/implementGenericWithMismatchedTypes.js +++ b/tests/baselines/reference/implementGenericWithMismatchedTypes.js @@ -26,7 +26,7 @@ class C2 implements IFoo2 { // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js index 2cdd7fc51b637..57e8be8d6ae2a 100644 --- a/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js +++ b/tests/baselines/reference/implementInterfaceAnyMemberWithVoid.js @@ -13,7 +13,7 @@ class Bug implements I { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implementsClauseAlreadySeen.js b/tests/baselines/reference/implementsClauseAlreadySeen.js index 9140fcf662cac..ced4663a5ee8c 100644 --- a/tests/baselines/reference/implementsClauseAlreadySeen.js +++ b/tests/baselines/reference/implementsClauseAlreadySeen.js @@ -10,7 +10,7 @@ class D implements C implements C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implementsInClassExpression.js b/tests/baselines/reference/implementsInClassExpression.js index 394cdd9d666d3..ff164297f37c6 100644 --- a/tests/baselines/reference/implementsInClassExpression.js +++ b/tests/baselines/reference/implementsInClassExpression.js @@ -11,7 +11,7 @@ let cls = class implements Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implicitAnyAnyReturningFunction.js b/tests/baselines/reference/implicitAnyAnyReturningFunction.js index 36c224daeab79..6aac39f901826 100644 --- a/tests/baselines/reference/implicitAnyAnyReturningFunction.js +++ b/tests/baselines/reference/implicitAnyAnyReturningFunction.js @@ -24,7 +24,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implicitAnyCastedValue.js b/tests/baselines/reference/implicitAnyCastedValue.js index d7041ebbe98a0..38d27ad78d8a2 100644 --- a/tests/baselines/reference/implicitAnyCastedValue.js +++ b/tests/baselines/reference/implicitAnyCastedValue.js @@ -82,7 +82,7 @@ var array = [null, undefined]; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js b/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js index bcc503007f6b9..8eff83776f21a 100644 --- a/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js +++ b/tests/baselines/reference/implicitAnyDeclareMemberWithoutType2.js @@ -13,7 +13,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js index e568656653eb6..0ee559310a5fc 100644 --- a/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js +++ b/tests/baselines/reference/implicitAnyFunctionReturnNullOrUndefined.js @@ -28,7 +28,7 @@ undefinedWidenFunction(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/implicitAnyInCatch.js b/tests/baselines/reference/implicitAnyInCatch.js index 108ddbc0c5022..b6d2b8f2a33c7 100644 --- a/tests/baselines/reference/implicitAnyInCatch.js +++ b/tests/baselines/reference/implicitAnyInCatch.js @@ -18,7 +18,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importAndVariableDeclarationConflict2.js b/tests/baselines/reference/importAndVariableDeclarationConflict2.js index ef509edde86e0..7738fe29fda80 100644 --- a/tests/baselines/reference/importAndVariableDeclarationConflict2.js +++ b/tests/baselines/reference/importAndVariableDeclarationConflict2.js @@ -15,7 +15,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importAsBaseClass.js b/tests/baselines/reference/importAsBaseClass.js index 1ee5c4b339288..7db2a03754fd6 100644 --- a/tests/baselines/reference/importAsBaseClass.js +++ b/tests/baselines/reference/importAsBaseClass.js @@ -15,7 +15,7 @@ class Hello extends Greeter { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3AMD.js b/tests/baselines/reference/importCallExpressionAsyncES3AMD.js index 5d24857a9050a..d967f36bfa60d 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3AMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3AMD.js @@ -32,7 +32,7 @@ export const l = async () => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3CJS.js b/tests/baselines/reference/importCallExpressionAsyncES3CJS.js index 2713fd6eb5802..79ebcc9b8a53b 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3CJS.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3CJS.js @@ -33,7 +33,7 @@ export const l = async () => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3System.js b/tests/baselines/reference/importCallExpressionAsyncES3System.js index 76601c5dbd083..25753c557a934 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3System.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3System.js @@ -34,7 +34,7 @@ System.register([], function (exports_1, context_1) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES3UMD.js b/tests/baselines/reference/importCallExpressionAsyncES3UMD.js index e02be9b98bd4e..57a7364659ad2 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES3UMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES3UMD.js @@ -32,7 +32,7 @@ export const l = async () => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5AMD.js b/tests/baselines/reference/importCallExpressionAsyncES5AMD.js index 3b91349248fa4..a60bc91b9b822 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5AMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5AMD.js @@ -32,7 +32,7 @@ export const l = async () => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5CJS.js b/tests/baselines/reference/importCallExpressionAsyncES5CJS.js index fe1dcb55d62f8..b1002bc92272c 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5CJS.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5CJS.js @@ -33,7 +33,7 @@ export const l = async () => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5System.js b/tests/baselines/reference/importCallExpressionAsyncES5System.js index b7d79d0335d61..b3c802c2e44c6 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5System.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5System.js @@ -34,7 +34,7 @@ System.register([], function (exports_1, context_1) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionAsyncES5UMD.js b/tests/baselines/reference/importCallExpressionAsyncES5UMD.js index 8dc8d47e9385c..6259e42f9fd9c 100644 --- a/tests/baselines/reference/importCallExpressionAsyncES5UMD.js +++ b/tests/baselines/reference/importCallExpressionAsyncES5UMD.js @@ -32,7 +32,7 @@ export const l = async () => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionES5AMD.js b/tests/baselines/reference/importCallExpressionES5AMD.js index fb3ffc29e67a6..31b2f7d084371 100644 --- a/tests/baselines/reference/importCallExpressionES5AMD.js +++ b/tests/baselines/reference/importCallExpressionES5AMD.js @@ -39,7 +39,7 @@ define(["require", "exports"], function (require, exports) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionES5CJS.js b/tests/baselines/reference/importCallExpressionES5CJS.js index f0efc3bb98593..fc0365d9000fd 100644 --- a/tests/baselines/reference/importCallExpressionES5CJS.js +++ b/tests/baselines/reference/importCallExpressionES5CJS.js @@ -38,7 +38,7 @@ exports.foo = foo; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionES5System.js b/tests/baselines/reference/importCallExpressionES5System.js index e54c182356a29..2842299239767 100644 --- a/tests/baselines/reference/importCallExpressionES5System.js +++ b/tests/baselines/reference/importCallExpressionES5System.js @@ -46,7 +46,7 @@ System.register([], function (exports_1, context_1) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionES5UMD.js b/tests/baselines/reference/importCallExpressionES5UMD.js index 124ceae6cf6c2..7c3fa6283af5a 100644 --- a/tests/baselines/reference/importCallExpressionES5UMD.js +++ b/tests/baselines/reference/importCallExpressionES5UMD.js @@ -47,7 +47,7 @@ export class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js b/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js index 2ed528c9b6644..2173bdecab6e1 100644 --- a/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js +++ b/tests/baselines/reference/importCallExpressionNoModuleKindSpecified.js @@ -31,7 +31,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -62,7 +62,7 @@ exports.backup = backup; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importHelpers.js b/tests/baselines/reference/importHelpers.js index e3eb19bd4869d..57d199a464685 100644 --- a/tests/baselines/reference/importHelpers.js +++ b/tests/baselines/reference/importHelpers.js @@ -82,7 +82,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importHelpersNoHelpers.js b/tests/baselines/reference/importHelpersNoHelpers.js index e791e2670d6cf..2d9da15feb7a8 100644 --- a/tests/baselines/reference/importHelpersNoHelpers.js +++ b/tests/baselines/reference/importHelpersNoHelpers.js @@ -93,7 +93,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importHelpersNoModule.js b/tests/baselines/reference/importHelpersNoModule.js index 8206569c95aae..7050dfdada415 100644 --- a/tests/baselines/reference/importHelpersNoModule.js +++ b/tests/baselines/reference/importHelpersNoModule.js @@ -74,7 +74,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/import_reference-exported-alias.js b/tests/baselines/reference/import_reference-exported-alias.js index d9960f7a4bcec..4ced231b4904a 100644 --- a/tests/baselines/reference/import_reference-exported-alias.js +++ b/tests/baselines/reference/import_reference-exported-alias.js @@ -25,7 +25,7 @@ var x = new UserServices().getUserName(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/import_reference-to-type-alias.js b/tests/baselines/reference/import_reference-to-type-alias.js index 78ff1c1742167..f4d5456d0552e 100644 --- a/tests/baselines/reference/import_reference-to-type-alias.js +++ b/tests/baselines/reference/import_reference-to-type-alias.js @@ -21,7 +21,7 @@ var x = new Services.UserServices().getUserName(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/importedAliasesInTypePositions.js b/tests/baselines/reference/importedAliasesInTypePositions.js index 6e6db567731e7..eea9594d31962 100644 --- a/tests/baselines/reference/importedAliasesInTypePositions.js +++ b/tests/baselines/reference/importedAliasesInTypePositions.js @@ -22,7 +22,7 @@ export module ImportingModule { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inOperatorWithGeneric.js b/tests/baselines/reference/inOperatorWithGeneric.js index d06b2bcda9b2d..6fa222f789faa 100644 --- a/tests/baselines/reference/inOperatorWithGeneric.js +++ b/tests/baselines/reference/inOperatorWithGeneric.js @@ -10,7 +10,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js b/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js index aba26303e18d4..3d232893b705c 100644 --- a/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js +++ b/tests/baselines/reference/incompatibleAssignmentOfIdenticallyNamedTypes.js @@ -13,7 +13,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/incompatibleTypes.js b/tests/baselines/reference/incompatibleTypes.js index 0d62a50d4281e..e26b1e8b0a6f5 100644 --- a/tests/baselines/reference/incompatibleTypes.js +++ b/tests/baselines/reference/incompatibleTypes.js @@ -79,7 +79,7 @@ var fp1: () =>any = a => 0; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/incrementOnTypeParameter.js b/tests/baselines/reference/incrementOnTypeParameter.js index 4d29b1ea332ce..09ea2185023be 100644 --- a/tests/baselines/reference/incrementOnTypeParameter.js +++ b/tests/baselines/reference/incrementOnTypeParameter.js @@ -13,7 +13,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/indexTypeCheck.js b/tests/baselines/reference/indexTypeCheck.js index 0f07864d33100..875000849b4c4 100644 --- a/tests/baselines/reference/indexTypeCheck.js +++ b/tests/baselines/reference/indexTypeCheck.js @@ -67,7 +67,7 @@ class Benchmark { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/indexedAccessRelation.js b/tests/baselines/reference/indexedAccessRelation.js index a83dfec1618cb..b6c7f3b01a172 100644 --- a/tests/baselines/reference/indexedAccessRelation.js +++ b/tests/baselines/reference/indexedAccessRelation.js @@ -25,7 +25,7 @@ class Comp extends Component> var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/indexedAccessTypeConstraints.js b/tests/baselines/reference/indexedAccessTypeConstraints.js index 8f1123fca31dd..71544c5d98460 100644 --- a/tests/baselines/reference/indexedAccessTypeConstraints.js +++ b/tests/baselines/reference/indexedAccessTypeConstraints.js @@ -41,7 +41,7 @@ function foo(x: C, y: T['content']) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/indexerReturningTypeParameter1.js b/tests/baselines/reference/indexerReturningTypeParameter1.js index 0118a439178a1..7b5b1ecb06bd9 100644 --- a/tests/baselines/reference/indexerReturningTypeParameter1.js +++ b/tests/baselines/reference/indexerReturningTypeParameter1.js @@ -17,7 +17,7 @@ var r2 = a2.groupBy(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/indexersInClassType.js b/tests/baselines/reference/indexersInClassType.js index 26d10a88a8e6f..2616261c328fe 100644 --- a/tests/baselines/reference/indexersInClassType.js +++ b/tests/baselines/reference/indexersInClassType.js @@ -21,7 +21,7 @@ var r3 = r.a var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js b/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js index 0254e63ab614e..41ebece9788e9 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes1.js @@ -76,7 +76,7 @@ testSet.transform( var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js b/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js index 697965123c5ab..37c2ad7777254 100644 --- a/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js +++ b/tests/baselines/reference/inferFromGenericFunctionReturnTypes2.js @@ -99,7 +99,7 @@ const t2 = testSet.transform( var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inferParameterWithMethodCallInitializer.js b/tests/baselines/reference/inferParameterWithMethodCallInitializer.js index 8bbb7c9ee0098..ce6aed1e24c53 100644 --- a/tests/baselines/reference/inferParameterWithMethodCallInitializer.js +++ b/tests/baselines/reference/inferParameterWithMethodCallInitializer.js @@ -24,7 +24,7 @@ class Weird { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inferentialTypingUsingApparentType3.js b/tests/baselines/reference/inferentialTypingUsingApparentType3.js index 3d5863da48954..1a67c9c89cb51 100644 --- a/tests/baselines/reference/inferentialTypingUsingApparentType3.js +++ b/tests/baselines/reference/inferentialTypingUsingApparentType3.js @@ -30,7 +30,7 @@ person.fields.id; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inferringClassMembersFromAssignments.js b/tests/baselines/reference/inferringClassMembersFromAssignments.js index e2dd0ec5d6aae..0fd72210454ab 100644 --- a/tests/baselines/reference/inferringClassMembersFromAssignments.js +++ b/tests/baselines/reference/inferringClassMembersFromAssignments.js @@ -127,7 +127,7 @@ var stringOrNumberOrUndefined = C.inStaticNestedArrowFunction; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritance.js b/tests/baselines/reference/inheritance.js index c85f3d77f5432..9af29ac523972 100644 --- a/tests/baselines/reference/inheritance.js +++ b/tests/baselines/reference/inheritance.js @@ -48,7 +48,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritance1.js b/tests/baselines/reference/inheritance1.js index 6c9c479d38373..26f0ba2b859af 100644 --- a/tests/baselines/reference/inheritance1.js +++ b/tests/baselines/reference/inheritance1.js @@ -75,7 +75,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js index 7bd14f8adb699..4936643f2bea5 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js @@ -14,7 +14,7 @@ class C extends B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js index 9e0a47e12aba1..b98a3e0c63452 100644 --- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js @@ -14,7 +14,7 @@ class C extends B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js index 143a44aedac3d..c7e7c55538e22 100644 --- a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js +++ b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js @@ -14,7 +14,7 @@ class C extends B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js index 6e69db49c21f9..aac8d7d37857d 100644 --- a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js @@ -18,7 +18,7 @@ class b extends a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js index 9a6406f0fac74..c32a5e61d5e48 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js index 8f8053a4093bd..d0cef81020a7a 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js @@ -15,7 +15,7 @@ class b extends a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js index cd33c1c8f8a4d..9473bfdfa384c 100644 --- a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js +++ b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js @@ -23,7 +23,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js index de55945632a41..80b7deae0a51c 100644 --- a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js +++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js @@ -13,7 +13,7 @@ class b extends a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/innerAliases2.js b/tests/baselines/reference/innerAliases2.js index 8ca8d8cbf3f5c..4a0848338f3e5 100644 --- a/tests/baselines/reference/innerAliases2.js +++ b/tests/baselines/reference/innerAliases2.js @@ -23,7 +23,7 @@ module consumer { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js index 1861ed2c198a6..a9e54e43bdf1e 100644 --- a/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js +++ b/tests/baselines/reference/innerTypeParameterShadowingOuterOne2.js @@ -43,7 +43,7 @@ class C2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/instanceAndStaticDeclarations1.js b/tests/baselines/reference/instanceAndStaticDeclarations1.js index 9e15065516394..9cecfe9c54d09 100644 --- a/tests/baselines/reference/instanceAndStaticDeclarations1.js +++ b/tests/baselines/reference/instanceAndStaticDeclarations1.js @@ -17,7 +17,7 @@ class Point { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js b/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js index 822d838a74395..86469d123248a 100644 --- a/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js +++ b/tests/baselines/reference/instanceMemberAssignsToClassPrototype.js @@ -16,7 +16,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js index 5927555f389da..c2461c84b1813 100644 --- a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js +++ b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js @@ -46,7 +46,7 @@ module Generic { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/instancePropertyInClassType.js b/tests/baselines/reference/instancePropertyInClassType.js index 56b1b7c9e3846..54813ca0476a2 100644 --- a/tests/baselines/reference/instancePropertyInClassType.js +++ b/tests/baselines/reference/instancePropertyInClassType.js @@ -42,7 +42,7 @@ module Generic { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js index 4155be5c42fc5..3b71d01f784ac 100644 --- a/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js +++ b/tests/baselines/reference/instanceofOperatorWithInvalidOperands.js @@ -50,7 +50,7 @@ var rc1 = '' instanceof {}; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/instantiatedBaseTypeConstraints.js b/tests/baselines/reference/instantiatedBaseTypeConstraints.js index ff591f865515a..b67879dea082a 100644 --- a/tests/baselines/reference/instantiatedBaseTypeConstraints.js +++ b/tests/baselines/reference/instantiatedBaseTypeConstraints.js @@ -15,7 +15,7 @@ class Bar implements Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/instantiatedReturnTypeContravariance.js b/tests/baselines/reference/instantiatedReturnTypeContravariance.js index 9456ecbbeb113..e33ea7dceb270 100644 --- a/tests/baselines/reference/instantiatedReturnTypeContravariance.js +++ b/tests/baselines/reference/instantiatedReturnTypeContravariance.js @@ -34,7 +34,7 @@ return null; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/intTypeCheck.js b/tests/baselines/reference/intTypeCheck.js index fbb4efd91a1c1..039f778805c5d 100644 --- a/tests/baselines/reference/intTypeCheck.js +++ b/tests/baselines/reference/intTypeCheck.js @@ -209,7 +209,7 @@ var obj87: i8 = new {}; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceClassMerging.js b/tests/baselines/reference/interfaceClassMerging.js index 5de7ab16ba2de..b338af4c0693a 100644 --- a/tests/baselines/reference/interfaceClassMerging.js +++ b/tests/baselines/reference/interfaceClassMerging.js @@ -44,7 +44,7 @@ obj = bar; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceClassMerging2.js b/tests/baselines/reference/interfaceClassMerging2.js index f947247f7be58..977cfafb3e28e 100644 --- a/tests/baselines/reference/interfaceClassMerging2.js +++ b/tests/baselines/reference/interfaceClassMerging2.js @@ -40,7 +40,7 @@ foo = bar; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceContextualType.js b/tests/baselines/reference/interfaceContextualType.js index 67d255dcdc562..eb5265de0b11b 100644 --- a/tests/baselines/reference/interfaceContextualType.js +++ b/tests/baselines/reference/interfaceContextualType.js @@ -26,7 +26,7 @@ class Bug { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceExtendingClass.js b/tests/baselines/reference/interfaceExtendingClass.js index c261cec161e45..b4760fd71fb57 100644 --- a/tests/baselines/reference/interfaceExtendingClass.js +++ b/tests/baselines/reference/interfaceExtendingClass.js @@ -23,7 +23,7 @@ i = f; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceExtendingClass2.js b/tests/baselines/reference/interfaceExtendingClass2.js index 2777969b4adc8..6f2920f33974e 100644 --- a/tests/baselines/reference/interfaceExtendingClass2.js +++ b/tests/baselines/reference/interfaceExtendingClass2.js @@ -19,7 +19,7 @@ interface I2 extends Foo { // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceExtendsClass1.js b/tests/baselines/reference/interfaceExtendsClass1.js index 0a3ce70493e8d..6a37907a4ed51 100644 --- a/tests/baselines/reference/interfaceExtendsClass1.js +++ b/tests/baselines/reference/interfaceExtendsClass1.js @@ -32,7 +32,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js index 81ab9a51f39cc..d487b24d80491 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js @@ -31,7 +31,7 @@ d = c; // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js index 701834e824f6e..5b64492f2a363 100644 --- a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js +++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js @@ -27,7 +27,7 @@ class D2 extends C implements I { // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceImplementation1.js b/tests/baselines/reference/interfaceImplementation1.js index 68143ac929dc2..08964361925d0 100644 --- a/tests/baselines/reference/interfaceImplementation1.js +++ b/tests/baselines/reference/interfaceImplementation1.js @@ -50,7 +50,7 @@ c["foo"]; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceImplementation3.js b/tests/baselines/reference/interfaceImplementation3.js index fd044f65fb5df..f7eb674749b6f 100644 --- a/tests/baselines/reference/interfaceImplementation3.js +++ b/tests/baselines/reference/interfaceImplementation3.js @@ -19,7 +19,7 @@ class C4 implements I1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceImplementation4.js b/tests/baselines/reference/interfaceImplementation4.js index 226c21d00f85f..555175f7eb582 100644 --- a/tests/baselines/reference/interfaceImplementation4.js +++ b/tests/baselines/reference/interfaceImplementation4.js @@ -17,7 +17,7 @@ class C5 implements I1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceImplementation7.js b/tests/baselines/reference/interfaceImplementation7.js index 147a073dc96cc..8a4278cecd205 100644 --- a/tests/baselines/reference/interfaceImplementation7.js +++ b/tests/baselines/reference/interfaceImplementation7.js @@ -14,7 +14,7 @@ class C1 implements i4 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceSubtyping.js b/tests/baselines/reference/interfaceSubtyping.js index a26a70667e808..6ca6914e97ab3 100644 --- a/tests/baselines/reference/interfaceSubtyping.js +++ b/tests/baselines/reference/interfaceSubtyping.js @@ -13,7 +13,7 @@ class Camera implements iface{ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js index e971fcb046472..5df6f0ed38eaf 100644 --- a/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js +++ b/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js @@ -19,7 +19,7 @@ interface Foo2 extends Base2 { // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js index 0b849d3f2d65e..6d1e381bb8473 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithExport.js @@ -22,7 +22,7 @@ export var d = new m2.m3.c(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js index 4ffe305993a17..0559262645f9b 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExport.js @@ -20,7 +20,7 @@ export module m2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js index 753edac75cf43..81e1b34cdc726 100644 --- a/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js +++ b/tests/baselines/reference/internalAliasClassInsideLocalModuleWithoutExportAccessError.js @@ -22,7 +22,7 @@ export var d = new m2.m3.c(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js index d659e75b03e96..55098dd39cc92 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithExport.js @@ -16,7 +16,7 @@ var cReturnVal = cProp.foo(10); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js index 332fa032924a3..4325103f1ce68 100644 --- a/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js +++ b/tests/baselines/reference/internalAliasClassInsideTopLevelModuleWithoutExport.js @@ -16,7 +16,7 @@ var cReturnVal = cProp.foo(10); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/invalidNewTarget.es5.js b/tests/baselines/reference/invalidNewTarget.es5.js index 31a2449fc9aa7..e27598f8edefb 100644 --- a/tests/baselines/reference/invalidNewTarget.es5.js +++ b/tests/baselines/reference/invalidNewTarget.es5.js @@ -28,7 +28,7 @@ const O = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/invalidReturnStatements.js b/tests/baselines/reference/invalidReturnStatements.js index 076aa3f89b259..d06262d295711 100644 --- a/tests/baselines/reference/invalidReturnStatements.js +++ b/tests/baselines/reference/invalidReturnStatements.js @@ -24,7 +24,7 @@ function fn11(): D { return new C(); } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/invalidStaticField.js b/tests/baselines/reference/invalidStaticField.js index a72fcafdc62b3..3d6990ae6a54e 100644 --- a/tests/baselines/reference/invalidStaticField.js +++ b/tests/baselines/reference/invalidStaticField.js @@ -6,7 +6,7 @@ class B { static NOT_NULL = new B(); } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js b/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js index 9817156ae9b34..521d822f7c9cc 100644 --- a/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js +++ b/tests/baselines/reference/invalidThisEmitInContextualObjectLiteral.js @@ -17,7 +17,7 @@ class TestController { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js index 4aea7a89d1be5..5cea9576cc5a2 100644 --- a/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js +++ b/tests/baselines/reference/jsFileCompilationClassMethodContainingArrowFunction.js @@ -9,7 +9,7 @@ class c { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js index 58ecdfaa4145a..dfe269edba708 100644 --- a/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js +++ b/tests/baselines/reference/jsxFactoryQualifiedNameWithEs5.js @@ -15,7 +15,7 @@ class Component { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/jsxInExtendsClause.js b/tests/baselines/reference/jsxInExtendsClause.js index 5d4fc0007b60a..4e57fb496b7e3 100644 --- a/tests/baselines/reference/jsxInExtendsClause.js +++ b/tests/baselines/reference/jsxInExtendsClause.js @@ -25,7 +25,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/jsxViaImport.2.js b/tests/baselines/reference/jsxViaImport.2.js index 3406b9c9a7e4e..1cb3e09a87c69 100644 --- a/tests/baselines/reference/jsxViaImport.2.js +++ b/tests/baselines/reference/jsxViaImport.2.js @@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/jsxViaImport.js b/tests/baselines/reference/jsxViaImport.js index 09d2f7a97aa51..5ebd933cfd236 100644 --- a/tests/baselines/reference/jsxViaImport.js +++ b/tests/baselines/reference/jsxViaImport.js @@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/keyofAndIndexedAccess.js b/tests/baselines/reference/keyofAndIndexedAccess.js index 01972cc6dca90..ae4706ddbced2 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.js +++ b/tests/baselines/reference/keyofAndIndexedAccess.js @@ -568,7 +568,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/lambdaArgCrash.js b/tests/baselines/reference/lambdaArgCrash.js index 01e9b419bfc9b..b4c0d0a1d5e9e 100644 --- a/tests/baselines/reference/lambdaArgCrash.js +++ b/tests/baselines/reference/lambdaArgCrash.js @@ -38,7 +38,7 @@ class ItemSetEvent extends Event { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/lambdaPropSelf.js b/tests/baselines/reference/lambdaPropSelf.js index a941580a95bce..c894447f8beb4 100644 --- a/tests/baselines/reference/lambdaPropSelf.js +++ b/tests/baselines/reference/lambdaPropSelf.js @@ -27,7 +27,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/lift.js b/tests/baselines/reference/lift.js index 0a952cbc2fae0..d3e55942c0861 100644 --- a/tests/baselines/reference/lift.js +++ b/tests/baselines/reference/lift.js @@ -31,7 +31,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/listFailure.js b/tests/baselines/reference/listFailure.js index 806bbb0deecfb..39fa7ca40e2f8 100644 --- a/tests/baselines/reference/listFailure.js +++ b/tests/baselines/reference/listFailure.js @@ -45,7 +45,7 @@ module Editor { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/literalTypes2.js b/tests/baselines/reference/literalTypes2.js index 9c4cdcd025e79..cea189eb00ebf 100644 --- a/tests/baselines/reference/literalTypes2.js +++ b/tests/baselines/reference/literalTypes2.js @@ -183,7 +183,7 @@ aa = append(aa, 1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/localTypes1.js b/tests/baselines/reference/localTypes1.js index 6e166f4640f73..5efade1dad1de 100644 --- a/tests/baselines/reference/localTypes1.js +++ b/tests/baselines/reference/localTypes1.js @@ -144,7 +144,7 @@ function f6() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/localTypes5.js b/tests/baselines/reference/localTypes5.js index 827fabe52a913..bed390ada8893 100644 --- a/tests/baselines/reference/localTypes5.js +++ b/tests/baselines/reference/localTypes5.js @@ -19,7 +19,7 @@ var x = foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/looseThisTypeInFunctions.js b/tests/baselines/reference/looseThisTypeInFunctions.js index 058a72efa9b10..958532ff02d5b 100644 --- a/tests/baselines/reference/looseThisTypeInFunctions.js +++ b/tests/baselines/reference/looseThisTypeInFunctions.js @@ -52,7 +52,7 @@ i.explicitThis = function(m) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mappedTypeErrors.js b/tests/baselines/reference/mappedTypeErrors.js index 1ed223c379071..c26b72ad21632 100644 --- a/tests/baselines/reference/mappedTypeErrors.js +++ b/tests/baselines/reference/mappedTypeErrors.js @@ -148,7 +148,7 @@ let f: Foo2 = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mappedTypePartialConstraints.js b/tests/baselines/reference/mappedTypePartialConstraints.js index b111e292a69e4..a528a62b2b568 100644 --- a/tests/baselines/reference/mappedTypePartialConstraints.js +++ b/tests/baselines/reference/mappedTypePartialConstraints.js @@ -21,7 +21,7 @@ fn(MySubClass); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/matchReturnTypeInAllBranches.js b/tests/baselines/reference/matchReturnTypeInAllBranches.js index 95b61d7d8fddd..b271f0b1d2ad1 100644 --- a/tests/baselines/reference/matchReturnTypeInAllBranches.js +++ b/tests/baselines/reference/matchReturnTypeInAllBranches.js @@ -39,7 +39,7 @@ cookieMonster = new IceCreamMonster("Chocolate Chip", false, "COOOOOKIE", "Cooki var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js b/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js index 65f1510eca46c..dfe9cdfc55079 100644 --- a/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPrivateOverloads.js @@ -53,7 +53,7 @@ var r4 = D.bar(''); // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/memberFunctionsWithPublicOverloads.js b/tests/baselines/reference/memberFunctionsWithPublicOverloads.js index 3d0027bd261ee..52374a3f38bc5 100644 --- a/tests/baselines/reference/memberFunctionsWithPublicOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPublicOverloads.js @@ -44,7 +44,7 @@ class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js b/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js index 6492930b81053..fb670bf3ed5da 100644 --- a/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js +++ b/tests/baselines/reference/memberFunctionsWithPublicPrivateOverloads.js @@ -66,7 +66,7 @@ var r2 = d.foo(2); // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mergedDeclarations5.js b/tests/baselines/reference/mergedDeclarations5.js index d641665b18a94..8dd7d6944d029 100644 --- a/tests/baselines/reference/mergedDeclarations5.js +++ b/tests/baselines/reference/mergedDeclarations5.js @@ -15,7 +15,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -47,7 +47,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mergedDeclarations6.js b/tests/baselines/reference/mergedDeclarations6.js index 54e2435a57464..fd50022e43287 100644 --- a/tests/baselines/reference/mergedDeclarations6.js +++ b/tests/baselines/reference/mergedDeclarations6.js @@ -26,7 +26,7 @@ export class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -65,7 +65,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mergedInheritedClassInterface.js b/tests/baselines/reference/mergedInheritedClassInterface.js index 77726d28a3704..c3823ebef7fe2 100644 --- a/tests/baselines/reference/mergedInheritedClassInterface.js +++ b/tests/baselines/reference/mergedInheritedClassInterface.js @@ -50,7 +50,7 @@ grandchild.method2(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/methodContainingLocalFunction.js b/tests/baselines/reference/methodContainingLocalFunction.js index 224f3e311f3fa..4ecbd8f70085b 100644 --- a/tests/baselines/reference/methodContainingLocalFunction.js +++ b/tests/baselines/reference/methodContainingLocalFunction.js @@ -54,7 +54,7 @@ enum E { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/methodSignatureDeclarationEmit1.js b/tests/baselines/reference/methodSignatureDeclarationEmit1.js index 8258410ce6cfe..2ff6e1412e05f 100644 --- a/tests/baselines/reference/methodSignatureDeclarationEmit1.js +++ b/tests/baselines/reference/methodSignatureDeclarationEmit1.js @@ -10,7 +10,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mismatchedGenericArguments1.js b/tests/baselines/reference/mismatchedGenericArguments1.js index 20bf81461fbdc..b45100a6549cf 100644 --- a/tests/baselines/reference/mismatchedGenericArguments1.js +++ b/tests/baselines/reference/mismatchedGenericArguments1.js @@ -19,7 +19,7 @@ class C2 implements IFoo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/missingDecoratorType.js b/tests/baselines/reference/missingDecoratorType.js index 8f2ba5176befd..d5ed28e2708ab 100644 --- a/tests/baselines/reference/missingDecoratorType.js +++ b/tests/baselines/reference/missingDecoratorType.js @@ -25,7 +25,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/missingPropertiesOfClassExpression.js b/tests/baselines/reference/missingPropertiesOfClassExpression.js index 24a60923347a5..d3c072e0301f2 100644 --- a/tests/baselines/reference/missingPropertiesOfClassExpression.js +++ b/tests/baselines/reference/missingPropertiesOfClassExpression.js @@ -20,7 +20,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/missingReturnStatement.js b/tests/baselines/reference/missingReturnStatement.js index 44270f48df30d..64570f9f92e75 100644 --- a/tests/baselines/reference/missingReturnStatement.js +++ b/tests/baselines/reference/missingReturnStatement.js @@ -11,7 +11,7 @@ module Test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/missingReturnStatement1.js b/tests/baselines/reference/missingReturnStatement1.js index e3262b9664086..1333d699e91dc 100644 --- a/tests/baselines/reference/missingReturnStatement1.js +++ b/tests/baselines/reference/missingReturnStatement1.js @@ -10,7 +10,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/missingSelf.js b/tests/baselines/reference/missingSelf.js index 5f7a96023a4bc..f24c8914f2b84 100644 --- a/tests/baselines/reference/missingSelf.js +++ b/tests/baselines/reference/missingSelf.js @@ -22,7 +22,7 @@ c2.b(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js b/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js index 4f00ce2ba3775..934c0822ea905 100644 --- a/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js +++ b/tests/baselines/reference/mixedStaticAndInstanceClassMembers.js @@ -19,7 +19,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mixinAccessModifiers.js b/tests/baselines/reference/mixinAccessModifiers.js index c47a24a063b42..52723c951dfdb 100644 --- a/tests/baselines/reference/mixinAccessModifiers.js +++ b/tests/baselines/reference/mixinAccessModifiers.js @@ -121,7 +121,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mixinClassesAnnotated.js b/tests/baselines/reference/mixinClassesAnnotated.js index e46d76986b5ce..bd7a4bb59a1a3 100644 --- a/tests/baselines/reference/mixinClassesAnnotated.js +++ b/tests/baselines/reference/mixinClassesAnnotated.js @@ -80,7 +80,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mixinClassesAnonymous.js b/tests/baselines/reference/mixinClassesAnonymous.js index d0ccd9a8f9371..22333800d5bb9 100644 --- a/tests/baselines/reference/mixinClassesAnonymous.js +++ b/tests/baselines/reference/mixinClassesAnonymous.js @@ -79,7 +79,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mixinClassesMembers.js b/tests/baselines/reference/mixinClassesMembers.js index 4224fb869207d..9063afc15e8eb 100644 --- a/tests/baselines/reference/mixinClassesMembers.js +++ b/tests/baselines/reference/mixinClassesMembers.js @@ -112,7 +112,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mixinPrivateAndProtected.js b/tests/baselines/reference/mixinPrivateAndProtected.js index 694af2293b123..dde436a77a9b2 100644 --- a/tests/baselines/reference/mixinPrivateAndProtected.js +++ b/tests/baselines/reference/mixinPrivateAndProtected.js @@ -104,7 +104,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mixingStaticAndInstanceOverloads.js b/tests/baselines/reference/mixingStaticAndInstanceOverloads.js index 44852f3274bb3..bcd1da326517e 100644 --- a/tests/baselines/reference/mixingStaticAndInstanceOverloads.js +++ b/tests/baselines/reference/mixingStaticAndInstanceOverloads.js @@ -39,7 +39,7 @@ class C5 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js b/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js index 634f21cc55ae4..6f186c88111dc 100644 --- a/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js +++ b/tests/baselines/reference/modifierOnClassDeclarationMemberInFunction.js @@ -11,7 +11,7 @@ function f() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js b/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js index f4fac0f61abab..67028167db05b 100644 --- a/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js +++ b/tests/baselines/reference/modifierOnClassExpressionMemberInFunction.js @@ -11,7 +11,7 @@ function g() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleAliasInterface.js b/tests/baselines/reference/moduleAliasInterface.js index 051a2ac7c31bc..3d3717b37b9db 100644 --- a/tests/baselines/reference/moduleAliasInterface.js +++ b/tests/baselines/reference/moduleAliasInterface.js @@ -59,7 +59,7 @@ module B1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleCodeGenTest5.js b/tests/baselines/reference/moduleCodeGenTest5.js index cf34adbe61289..32153a82bb713 100644 --- a/tests/baselines/reference/moduleCodeGenTest5.js +++ b/tests/baselines/reference/moduleCodeGenTest5.js @@ -26,7 +26,7 @@ var v = E2.B; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js index 63ed994c03f17..285c973eb6e89 100644 --- a/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js +++ b/tests/baselines/reference/moduleMemberWithoutTypeAnnotation1.js @@ -50,7 +50,7 @@ module TypeScript.Syntax { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleMerge.js b/tests/baselines/reference/moduleMerge.js index 1fe47289ed18e..4a14ca6706d27 100644 --- a/tests/baselines/reference/moduleMerge.js +++ b/tests/baselines/reference/moduleMerge.js @@ -28,7 +28,7 @@ module A var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleNewExportBug.js b/tests/baselines/reference/moduleNewExportBug.js index f192058b2841d..04b2a518e9bc0 100644 --- a/tests/baselines/reference/moduleNewExportBug.js +++ b/tests/baselines/reference/moduleNewExportBug.js @@ -17,7 +17,7 @@ var c : mod1.C; // ERROR: C should not be visible var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleReopenedTypeOtherBlock.js b/tests/baselines/reference/moduleReopenedTypeOtherBlock.js index d6522168aaeb9..d9290cbac90b0 100644 --- a/tests/baselines/reference/moduleReopenedTypeOtherBlock.js +++ b/tests/baselines/reference/moduleReopenedTypeOtherBlock.js @@ -12,7 +12,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleReopenedTypeSameBlock.js b/tests/baselines/reference/moduleReopenedTypeSameBlock.js index 21b2c926a5b0f..33625afa7cfa6 100644 --- a/tests/baselines/reference/moduleReopenedTypeSameBlock.js +++ b/tests/baselines/reference/moduleReopenedTypeSameBlock.js @@ -10,7 +10,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleVisibilityTest1.js b/tests/baselines/reference/moduleVisibilityTest1.js index d42cc12fd8a98..0d6c61d2d0d77 100644 --- a/tests/baselines/reference/moduleVisibilityTest1.js +++ b/tests/baselines/reference/moduleVisibilityTest1.js @@ -69,7 +69,7 @@ c.someMethodThatCallsAnOuterMethod(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduleVisibilityTest2.js b/tests/baselines/reference/moduleVisibilityTest2.js index f4c5266a0e017..e34fb634d6e10 100644 --- a/tests/baselines/reference/moduleVisibilityTest2.js +++ b/tests/baselines/reference/moduleVisibilityTest2.js @@ -70,7 +70,7 @@ c.someMethodThatCallsAnOuterMethod(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/moduledecl.js b/tests/baselines/reference/moduledecl.js index 33d213f097a57..f81639c1718aa 100644 --- a/tests/baselines/reference/moduledecl.js +++ b/tests/baselines/reference/moduledecl.js @@ -236,7 +236,7 @@ var m3eVar: mAmbient.m3.e; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/multiImportExport.js b/tests/baselines/reference/multiImportExport.js index 6a5d15c6484c7..e7c346ffbf313 100644 --- a/tests/baselines/reference/multiImportExport.js +++ b/tests/baselines/reference/multiImportExport.js @@ -30,7 +30,7 @@ export = Adder; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/multiModuleClodule1.js b/tests/baselines/reference/multiModuleClodule1.js index 4f28b85a9ff86..efa7e23066901 100644 --- a/tests/baselines/reference/multiModuleClodule1.js +++ b/tests/baselines/reference/multiModuleClodule1.js @@ -22,7 +22,7 @@ c.foo = C.foo; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/multipleDeclarations.js b/tests/baselines/reference/multipleDeclarations.js index 19ee0cef10070..e0b598277c788 100644 --- a/tests/baselines/reference/multipleDeclarations.js +++ b/tests/baselines/reference/multipleDeclarations.js @@ -39,7 +39,7 @@ y.mistake(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/multipleInheritance.js b/tests/baselines/reference/multipleInheritance.js index 94a7e30402721..299d8a572db27 100644 --- a/tests/baselines/reference/multipleInheritance.js +++ b/tests/baselines/reference/multipleInheritance.js @@ -52,7 +52,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js index 44f6799a035c5..af35fd2aa04d5 100644 --- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js +++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js @@ -14,7 +14,7 @@ var test = new foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/narrowTypeByInstanceof.js b/tests/baselines/reference/narrowTypeByInstanceof.js index effd065ceba55..d816c33b35c30 100644 --- a/tests/baselines/reference/narrowTypeByInstanceof.js +++ b/tests/baselines/reference/narrowTypeByInstanceof.js @@ -29,7 +29,7 @@ if (elementA instanceof FileMatch && elementB instanceof FileMatch) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/narrowedConstInMethod.js b/tests/baselines/reference/narrowedConstInMethod.js index 83f7680a9993a..3b7bd9db6266d 100644 --- a/tests/baselines/reference/narrowedConstInMethod.js +++ b/tests/baselines/reference/narrowedConstInMethod.js @@ -23,7 +23,7 @@ function f2() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/nestedLoops.js b/tests/baselines/reference/nestedLoops.js index 41ae7693dfb0c..d33630267ee2c 100644 --- a/tests/baselines/reference/nestedLoops.js +++ b/tests/baselines/reference/nestedLoops.js @@ -22,7 +22,7 @@ export class Test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/nestedSelf.js b/tests/baselines/reference/nestedSelf.js index 80a6aa2c1ab85..8eb998853d5e8 100644 --- a/tests/baselines/reference/nestedSelf.js +++ b/tests/baselines/reference/nestedSelf.js @@ -12,7 +12,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/neverType.js b/tests/baselines/reference/neverType.js index 4043194256caf..dbf085aefc61f 100644 --- a/tests/baselines/reference/neverType.js +++ b/tests/baselines/reference/neverType.js @@ -94,7 +94,7 @@ test(errorCallback); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/newArrays.js b/tests/baselines/reference/newArrays.js index a8a7789caec1d..45ddab29ac86b 100644 --- a/tests/baselines/reference/newArrays.js +++ b/tests/baselines/reference/newArrays.js @@ -16,7 +16,7 @@ module M { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js index add229d862f6a..21aa3624bcad9 100644 --- a/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js +++ b/tests/baselines/reference/noCollisionThisExpressionAndLocalVarInMethod.js @@ -23,7 +23,7 @@ class a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js b/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js index 8f98404eabb37..09ce51a738106 100644 --- a/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js +++ b/tests/baselines/reference/noImplicitAnyDestructuringInPrivateMethod.js @@ -16,7 +16,7 @@ export declare class Bar2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/noImplicitAnyForMethodParameters.js b/tests/baselines/reference/noImplicitAnyForMethodParameters.js index ba103f863c399..15dc1740e96bd 100644 --- a/tests/baselines/reference/noImplicitAnyForMethodParameters.js +++ b/tests/baselines/reference/noImplicitAnyForMethodParameters.js @@ -18,7 +18,7 @@ class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/noImplicitAnyParametersInClass.js b/tests/baselines/reference/noImplicitAnyParametersInClass.js index 6b46d090091a5..bbd6454c49463 100644 --- a/tests/baselines/reference/noImplicitAnyParametersInClass.js +++ b/tests/baselines/reference/noImplicitAnyParametersInClass.js @@ -95,7 +95,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/noTypeArgumentOnReturnType1.js b/tests/baselines/reference/noTypeArgumentOnReturnType1.js index 0a6c0cab192bd..14ecf60ed5153 100644 --- a/tests/baselines/reference/noTypeArgumentOnReturnType1.js +++ b/tests/baselines/reference/noTypeArgumentOnReturnType1.js @@ -10,7 +10,7 @@ class A{ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/noUnusedLocals_selfReference.js b/tests/baselines/reference/noUnusedLocals_selfReference.js index 74a39923d574f..40bb319773a4f 100644 --- a/tests/baselines/reference/noUnusedLocals_selfReference.js +++ b/tests/baselines/reference/noUnusedLocals_selfReference.js @@ -18,12 +18,27 @@ P; //// [noUnusedLocals_selfReference.js] "use strict"; +var __names = (this && this.__names) || (function() { + var name = Object.defineProperty ? (function(proto, name) { + Object.defineProperty(proto[name], 'name', { + value: name, configurable: true + }); + }) : (function(proto, name) { + proto[name].name = name; + }); + return function (proto, keys) { + for (var i = keys.length - 1; i >= 0; i--) { + name(proto, keys[i]) + } + }; +})(); exports.__esModule = true; function f() { f; } var C = (function () { function C() { } C.prototype.m = function () { C; }; + __names(C.prototype, ["m"]); return C; }()); var E; @@ -37,6 +52,7 @@ var D = (function () { function D() { } D.prototype.m = function () { g; }; + __names(D.prototype, ["m"]); return D; }()); // Does not work on private methods. @@ -44,6 +60,7 @@ var P = (function () { function P() { } P.prototype.m = function () { this.m; }; + __names(P.prototype, ["m"]); return P; }()); P; diff --git a/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js b/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js index d4d5574751339..438832bcfda2d 100644 --- a/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js +++ b/tests/baselines/reference/nonMergedDeclarationsAndOverloads.js @@ -12,7 +12,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js index 747bb47e73ced..2bd145499e025 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.js @@ -102,7 +102,7 @@ var b: { [x: number]: string; } = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js index 0ca16f8dc91c8..b9b8c685b8bbd 100644 --- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js @@ -50,7 +50,7 @@ var b: { [x: number]: A } = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/numericIndexerConstraint1.js b/tests/baselines/reference/numericIndexerConstraint1.js index 8598b71c118d1..6e8d97bc24cc8 100644 --- a/tests/baselines/reference/numericIndexerConstraint1.js +++ b/tests/baselines/reference/numericIndexerConstraint1.js @@ -8,7 +8,7 @@ var result: Foo = x["one"]; // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/numericIndexerConstraint2.js b/tests/baselines/reference/numericIndexerConstraint2.js index feaba238cc044..804a705fc1dca 100644 --- a/tests/baselines/reference/numericIndexerConstraint2.js +++ b/tests/baselines/reference/numericIndexerConstraint2.js @@ -8,7 +8,7 @@ x = a; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js index d1dc0daeb131f..6b0c55dbe407e 100644 --- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js +++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js @@ -59,7 +59,7 @@ var foods2: MonsterFood[] = new PetFood[new IceCream('Mint chocolate chip') , Co var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectRestParameterES5.js b/tests/baselines/reference/objectRestParameterES5.js index 333c52710cae0..397885a9311d3 100644 --- a/tests/baselines/reference/objectRestParameterES5.js +++ b/tests/baselines/reference/objectRestParameterES5.js @@ -25,7 +25,7 @@ foobar({ bar: { greeting: 'hello' } }); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectSpread.js b/tests/baselines/reference/objectSpread.js index 56e49cdb9f18b..81e6aa14d54a8 100644 --- a/tests/baselines/reference/objectSpread.js +++ b/tests/baselines/reference/objectSpread.js @@ -86,7 +86,7 @@ let spreadNonPrimitive = { ...{}}; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectSpreadNegative.js b/tests/baselines/reference/objectSpreadNegative.js index 8c8d65110a83c..0a5412a3aba38 100644 --- a/tests/baselines/reference/objectSpreadNegative.js +++ b/tests/baselines/reference/objectSpreadNegative.js @@ -88,7 +88,7 @@ const a3: A = { ...extra3 }; // same here var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js index b8d90e27d8949..9fdbbcc5f5d4e 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js @@ -68,7 +68,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObject.js b/tests/baselines/reference/objectTypeHidingMembersOfObject.js index 4e1bfbad11fe5..a0aa47872f975 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObject.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObject.js @@ -32,7 +32,7 @@ var r4: void = b.valueOf(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js index 65bebfd628657..1c4b4bc2c7d2e 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat.js @@ -25,7 +25,7 @@ a = o; // ok var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js index 0fbc932027327..7acacf3d8b25c 100644 --- a/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js +++ b/tests/baselines/reference/objectTypeHidingMembersOfObjectAssignmentCompat2.js @@ -25,7 +25,7 @@ a = o; // ok var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js index 01a3178b198b0..bbb6b24c68eeb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures.js @@ -105,7 +105,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js index a50c1b0a4d6cb..12cfb660061b1 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignatures2.js @@ -105,7 +105,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js index af45d5726e1a5..6ee10c9806557 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesDifferingParamCounts.js @@ -105,7 +105,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js index 8e17c0def5f99..551e40ee140a1 100644 --- a/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js +++ b/tests/baselines/reference/objectTypesIdentityWithCallSignaturesWithOverloads.js @@ -121,7 +121,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js index 6052c106f0f05..c7a41666e1afb 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures.js @@ -105,7 +105,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js index 93460429a25f7..902fb622a5422 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.js @@ -105,7 +105,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js index c456df6bb95ff..7ae2c0111982b 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.js @@ -109,7 +109,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js index edae16682f362..166576aa9a7f7 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.js @@ -121,7 +121,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js index 6055e11b5e091..671ad76dddf0e 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.js @@ -130,7 +130,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js index 1969f5b6ef739..4862c6abb6aa2 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType.js @@ -109,7 +109,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js index 79258ae678ae9..23d79fd92c6d1 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.js @@ -109,7 +109,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js index 41ccc9db1a792..fcd059ad69fab 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts.js @@ -105,7 +105,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js index 6d6814a8c59f5..d7cf22a178104 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames.js @@ -105,7 +105,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js index 004ebd9f4d8b2..81afdb42697ad 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams.js @@ -109,7 +109,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js index 3a4f0f84a7a2c..d0b8d4906ac57 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams2.js @@ -109,7 +109,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js index e6b76b836f5a3..843cbc1caf240 100644 --- a/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js +++ b/tests/baselines/reference/objectTypesIdentityWithGenericCallSignaturesOptionalParams3.js @@ -109,7 +109,7 @@ function foo15(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/objectTypesWithOptionalProperties2.js b/tests/baselines/reference/objectTypesWithOptionalProperties2.js index 105b84f8665df..df23950250ca0 100644 --- a/tests/baselines/reference/objectTypesWithOptionalProperties2.js +++ b/tests/baselines/reference/objectTypesWithOptionalProperties2.js @@ -31,7 +31,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/optionalArgsWithDefaultValues.js b/tests/baselines/reference/optionalArgsWithDefaultValues.js index 2df38f084d9f1..27b4adcac9718 100644 --- a/tests/baselines/reference/optionalArgsWithDefaultValues.js +++ b/tests/baselines/reference/optionalArgsWithDefaultValues.js @@ -13,7 +13,7 @@ var b = (x, y?:number = 2) => { x; }; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/optionalConstructorArgInSuper.js b/tests/baselines/reference/optionalConstructorArgInSuper.js index a321412c28324..e64a0ed21e02c 100644 --- a/tests/baselines/reference/optionalConstructorArgInSuper.js +++ b/tests/baselines/reference/optionalConstructorArgInSuper.js @@ -14,7 +14,7 @@ d2.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/optionalMethods.js b/tests/baselines/reference/optionalMethods.js index 2703f216d4cab..da23869b1c63c 100644 --- a/tests/baselines/reference/optionalMethods.js +++ b/tests/baselines/reference/optionalMethods.js @@ -60,7 +60,7 @@ class Derived extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/optionalParamArgsTest.js b/tests/baselines/reference/optionalParamArgsTest.js index cdb3c7a0f4620..c1f4d997a35a9 100644 --- a/tests/baselines/reference/optionalParamArgsTest.js +++ b/tests/baselines/reference/optionalParamArgsTest.js @@ -128,7 +128,7 @@ fnOpt2(1, [2, 3], [1], true); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/optionalParamInOverride.js b/tests/baselines/reference/optionalParamInOverride.js index 9be1e47e0d2e3..a477e6d7d1c24 100644 --- a/tests/baselines/reference/optionalParamInOverride.js +++ b/tests/baselines/reference/optionalParamInOverride.js @@ -11,7 +11,7 @@ class Y extends Z { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/out-flag.js b/tests/baselines/reference/out-flag.js index 2ac1ae636fe16..800fd75889ac1 100644 --- a/tests/baselines/reference/out-flag.js +++ b/tests/baselines/reference/out-flag.js @@ -21,7 +21,7 @@ class MyClass var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/out-flag.sourcemap.txt b/tests/baselines/reference/out-flag.sourcemap.txt index 5659e3a7bd444..05ab41f4a4cbf 100644 --- a/tests/baselines/reference/out-flag.sourcemap.txt +++ b/tests/baselines/reference/out-flag.sourcemap.txt @@ -20,7 +20,7 @@ sourceFile:out-flag.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/overloadConsecutiveness.js b/tests/baselines/reference/overloadConsecutiveness.js index 519bc8e33eea4..576b6cd93ce1a 100644 --- a/tests/baselines/reference/overloadConsecutiveness.js +++ b/tests/baselines/reference/overloadConsecutiveness.js @@ -17,7 +17,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadModifiersMustAgree.js b/tests/baselines/reference/overloadModifiersMustAgree.js index 0b051ad36f0b0..2b1be5cac26f8 100644 --- a/tests/baselines/reference/overloadModifiersMustAgree.js +++ b/tests/baselines/reference/overloadModifiersMustAgree.js @@ -20,7 +20,7 @@ interface I { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks1.js b/tests/baselines/reference/overloadOnConstConstraintChecks1.js index 1b466da8659e3..f11ad8011bbbe 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks1.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks1.js @@ -26,7 +26,7 @@ class D implements MyDoc { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks2.js b/tests/baselines/reference/overloadOnConstConstraintChecks2.js index 485617d000876..bccfaf870c208 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks2.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks2.js @@ -25,7 +25,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks3.js b/tests/baselines/reference/overloadOnConstConstraintChecks3.js index 3cee3d0d435b0..29a9aa2514737 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks3.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks3.js @@ -26,7 +26,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks4.js b/tests/baselines/reference/overloadOnConstConstraintChecks4.js index 6d8e660b56eb8..c0882d297cb6f 100644 --- a/tests/baselines/reference/overloadOnConstConstraintChecks4.js +++ b/tests/baselines/reference/overloadOnConstConstraintChecks4.js @@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js b/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js index da7c4b197a246..20f1daee1b1c9 100644 --- a/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js +++ b/tests/baselines/reference/overloadOnConstInBaseWithBadImplementationInDerived.js @@ -12,7 +12,7 @@ class C implements I { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstInCallback1.js b/tests/baselines/reference/overloadOnConstInCallback1.js index d9a1b3eb18e53..c9bc7da22da40 100644 --- a/tests/baselines/reference/overloadOnConstInCallback1.js +++ b/tests/baselines/reference/overloadOnConstInCallback1.js @@ -13,7 +13,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstInheritance4.js b/tests/baselines/reference/overloadOnConstInheritance4.js index 8cac3643f8cff..00228284efe8a 100644 --- a/tests/baselines/reference/overloadOnConstInheritance4.js +++ b/tests/baselines/reference/overloadOnConstInheritance4.js @@ -13,7 +13,7 @@ class C implements I { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js index 364899a14bcb4..8351bcfe5dd53 100644 --- a/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js +++ b/tests/baselines/reference/overloadOnConstNoAnyImplementation2.js @@ -25,7 +25,7 @@ c.x1(1, (x: number) => { return 1; } ); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js index 09c8635c50c1e..a86d480769e4a 100644 --- a/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js +++ b/tests/baselines/reference/overloadOnConstNoNonSpecializedSignature.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstNoStringImplementation2.js b/tests/baselines/reference/overloadOnConstNoStringImplementation2.js index db7365a46f6e1..0b5f8b6eab388 100644 --- a/tests/baselines/reference/overloadOnConstNoStringImplementation2.js +++ b/tests/baselines/reference/overloadOnConstNoStringImplementation2.js @@ -24,7 +24,7 @@ c.x1(1, (x: number) => { return 1; } ); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js index 5632b76d6a317..9657c238e6aae 100644 --- a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js +++ b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js @@ -15,7 +15,7 @@ foo("HI"); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js b/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js index 1f816352b50e8..bec3e0cfd9da7 100644 --- a/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js +++ b/tests/baselines/reference/overloadResolutionOnDefaultConstructor1.js @@ -9,7 +9,7 @@ class Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js index 0a67c6299f52f..77e2eaea067cd 100644 --- a/tests/baselines/reference/overloadingOnConstants1.js +++ b/tests/baselines/reference/overloadingOnConstants1.js @@ -29,7 +29,7 @@ var htmlSpanElement2: Derived1 = d2.createElement("span"); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overloadsWithinClasses.js b/tests/baselines/reference/overloadsWithinClasses.js index f12dd107312d7..dd2f0187a91c7 100644 --- a/tests/baselines/reference/overloadsWithinClasses.js +++ b/tests/baselines/reference/overloadsWithinClasses.js @@ -27,7 +27,7 @@ class X { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/overrideBaseIntersectionMethod.js b/tests/baselines/reference/overrideBaseIntersectionMethod.js index 1c637a1f9fe8a..45205d5290aa3 100644 --- a/tests/baselines/reference/overrideBaseIntersectionMethod.js +++ b/tests/baselines/reference/overrideBaseIntersectionMethod.js @@ -46,7 +46,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parameterInitializersForwardReferencing.js b/tests/baselines/reference/parameterInitializersForwardReferencing.js index 9ec7288dbc8fd..30c703fd9a243 100644 --- a/tests/baselines/reference/parameterInitializersForwardReferencing.js +++ b/tests/baselines/reference/parameterInitializersForwardReferencing.js @@ -45,7 +45,7 @@ function f(a, b = function () { return c; }, c = b()) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parameterNamesInTypeParameterList.js b/tests/baselines/reference/parameterNamesInTypeParameterList.js index 808fe980dea3f..1b4823c22432e 100644 --- a/tests/baselines/reference/parameterNamesInTypeParameterList.js +++ b/tests/baselines/reference/parameterNamesInTypeParameterList.js @@ -27,7 +27,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parameterPropertyOutsideConstructor.js b/tests/baselines/reference/parameterPropertyOutsideConstructor.js index 3904c5f9ba98a..e9b894279ed1b 100644 --- a/tests/baselines/reference/parameterPropertyOutsideConstructor.js +++ b/tests/baselines/reference/parameterPropertyOutsideConstructor.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parametersWithNoAnnotationAreAny.js b/tests/baselines/reference/parametersWithNoAnnotationAreAny.js index edd5b2eb3e6a9..ff3ac63cb3730 100644 --- a/tests/baselines/reference/parametersWithNoAnnotationAreAny.js +++ b/tests/baselines/reference/parametersWithNoAnnotationAreAny.js @@ -33,7 +33,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parser509667.js b/tests/baselines/reference/parser509667.js index cb3561ec4b308..3f7e4d64b6a51 100644 --- a/tests/baselines/reference/parser509667.js +++ b/tests/baselines/reference/parser509667.js @@ -15,7 +15,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parser553699.js b/tests/baselines/reference/parser553699.js index 21bdb63a2bc33..034faa4e4ec28 100644 --- a/tests/baselines/reference/parser553699.js +++ b/tests/baselines/reference/parser553699.js @@ -12,7 +12,7 @@ class Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parser618973.js b/tests/baselines/reference/parser618973.js index e3f1dfd1f959a..5edb424fc47c4 100644 --- a/tests/baselines/reference/parser618973.js +++ b/tests/baselines/reference/parser618973.js @@ -9,7 +9,7 @@ export export class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserAstSpans1.js b/tests/baselines/reference/parserAstSpans1.js index 7ef97bd74dd4b..26679761d40af 100644 --- a/tests/baselines/reference/parserAstSpans1.js +++ b/tests/baselines/reference/parserAstSpans1.js @@ -223,7 +223,7 @@ class c6 extends c5 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClass1.js b/tests/baselines/reference/parserClass1.js index dc4e0c1d51073..883e54274dabb 100644 --- a/tests/baselines/reference/parserClass1.js +++ b/tests/baselines/reference/parserClass1.js @@ -14,7 +14,7 @@ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClassDeclaration11.js b/tests/baselines/reference/parserClassDeclaration11.js index 83b356419dade..c72875b9312f0 100644 --- a/tests/baselines/reference/parserClassDeclaration11.js +++ b/tests/baselines/reference/parserClassDeclaration11.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClassDeclaration13.js b/tests/baselines/reference/parserClassDeclaration13.js index 3e18333b7c843..625627fc1132c 100644 --- a/tests/baselines/reference/parserClassDeclaration13.js +++ b/tests/baselines/reference/parserClassDeclaration13.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClassDeclaration16.js b/tests/baselines/reference/parserClassDeclaration16.js index ddccb1d445f2f..1ff7dd9695c46 100644 --- a/tests/baselines/reference/parserClassDeclaration16.js +++ b/tests/baselines/reference/parserClassDeclaration16.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClassDeclaration19.js b/tests/baselines/reference/parserClassDeclaration19.js index b6fe222c7f37f..43dcba5c9c7ff 100644 --- a/tests/baselines/reference/parserClassDeclaration19.js +++ b/tests/baselines/reference/parserClassDeclaration19.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClassDeclaration20.js b/tests/baselines/reference/parserClassDeclaration20.js index 23cbff954ec6a..1d0fc9bad71ed 100644 --- a/tests/baselines/reference/parserClassDeclaration20.js +++ b/tests/baselines/reference/parserClassDeclaration20.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClassDeclaration21.js b/tests/baselines/reference/parserClassDeclaration21.js index 61c4d25dbcf53..e6f87578da338 100644 --- a/tests/baselines/reference/parserClassDeclaration21.js +++ b/tests/baselines/reference/parserClassDeclaration21.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserClassDeclaration22.js b/tests/baselines/reference/parserClassDeclaration22.js index 2703e882479a0..3dda3589909d1 100644 --- a/tests/baselines/reference/parserClassDeclaration22.js +++ b/tests/baselines/reference/parserClassDeclaration22.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserES5ComputedPropertyName3.js b/tests/baselines/reference/parserES5ComputedPropertyName3.js index 2d2867cee5dff..b4d53fee7d6ee 100644 --- a/tests/baselines/reference/parserES5ComputedPropertyName3.js +++ b/tests/baselines/reference/parserES5ComputedPropertyName3.js @@ -5,7 +5,7 @@ var v = { [e]() { } }; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserES5SymbolProperty7.js b/tests/baselines/reference/parserES5SymbolProperty7.js index f147c0a03aa01..4e57b94fa1ef3 100644 --- a/tests/baselines/reference/parserES5SymbolProperty7.js +++ b/tests/baselines/reference/parserES5SymbolProperty7.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrantSemicolonInClass1.js b/tests/baselines/reference/parserErrantSemicolonInClass1.js index e294b308a30c7..3a2dbf9a83112 100644 --- a/tests/baselines/reference/parserErrantSemicolonInClass1.js +++ b/tests/baselines/reference/parserErrantSemicolonInClass1.js @@ -39,7 +39,7 @@ class a { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement1.js b/tests/baselines/reference/parserErrorRecoveryIfStatement1.js index 1aada6507a708..50193f0b69d98 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement1.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement1.js @@ -13,7 +13,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement2.js b/tests/baselines/reference/parserErrorRecoveryIfStatement2.js index c5da613c2796b..2effdfef38014 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement2.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement2.js @@ -13,7 +13,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement3.js b/tests/baselines/reference/parserErrorRecoveryIfStatement3.js index 01144e18c9f6b..89147592486a6 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement3.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement3.js @@ -13,7 +13,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement4.js b/tests/baselines/reference/parserErrorRecoveryIfStatement4.js index 2a9310214d856..aac8d07dfb45b 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement4.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement4.js @@ -13,7 +13,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement5.js b/tests/baselines/reference/parserErrorRecoveryIfStatement5.js index 1239d992a34ac..e5dd3a2603850 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement5.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement5.js @@ -13,7 +13,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecoveryIfStatement6.js b/tests/baselines/reference/parserErrorRecoveryIfStatement6.js index 97888b6a84183..873ad38357094 100644 --- a/tests/baselines/reference/parserErrorRecoveryIfStatement6.js +++ b/tests/baselines/reference/parserErrorRecoveryIfStatement6.js @@ -14,7 +14,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecovery_Block3.js b/tests/baselines/reference/parserErrorRecovery_Block3.js index a4e068f1192f2..75f9ee14b7b2d 100644 --- a/tests/baselines/reference/parserErrorRecovery_Block3.js +++ b/tests/baselines/reference/parserErrorRecovery_Block3.js @@ -10,7 +10,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js index faecf0f05a207..21079c6e30758 100644 --- a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js +++ b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable1.js @@ -32,7 +32,7 @@ var dist = p.getDist(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js index 1ba61fb18222e..491145631f4b8 100644 --- a/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js +++ b/tests/baselines/reference/parserErrorRecovery_IncompleteMemberVariable2.js @@ -32,7 +32,7 @@ var dist = p.getDist(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration1.js b/tests/baselines/reference/parserMemberFunctionDeclaration1.js index afd699cd0c4f9..aabfa55336ff6 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration1.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration1.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration4.js b/tests/baselines/reference/parserMemberFunctionDeclaration4.js index f2acf1018bc03..8141c2ea80a60 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration4.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration4.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserMemberFunctionDeclaration5.js b/tests/baselines/reference/parserMemberFunctionDeclaration5.js index e018e44ad7724..784f2aacec4e4 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclaration5.js +++ b/tests/baselines/reference/parserMemberFunctionDeclaration5.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js b/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js index 424bd93e70483..70c152bef9b4c 100644 --- a/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js +++ b/tests/baselines/reference/parserMemberFunctionDeclarationAmbiguities1.js @@ -17,7 +17,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserMissingLambdaOpenBrace1.js b/tests/baselines/reference/parserMissingLambdaOpenBrace1.js index 36c2e80b9f9da..642e55202904b 100644 --- a/tests/baselines/reference/parserMissingLambdaOpenBrace1.js +++ b/tests/baselines/reference/parserMissingLambdaOpenBrace1.js @@ -12,7 +12,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserParameterList1.js b/tests/baselines/reference/parserParameterList1.js index 015e0a4d2c20a..9209d9ee9df28 100644 --- a/tests/baselines/reference/parserParameterList1.js +++ b/tests/baselines/reference/parserParameterList1.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserParameterList10.js b/tests/baselines/reference/parserParameterList10.js index a44f1fa5e32d5..25d6809cd47c8 100644 --- a/tests/baselines/reference/parserParameterList10.js +++ b/tests/baselines/reference/parserParameterList10.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserParameterList16.js b/tests/baselines/reference/parserParameterList16.js index c4e156c17fa7f..eb53cd39b7a25 100644 --- a/tests/baselines/reference/parserParameterList16.js +++ b/tests/baselines/reference/parserParameterList16.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserParameterList2.js b/tests/baselines/reference/parserParameterList2.js index 73351eac79eb1..58817cdc383c8 100644 --- a/tests/baselines/reference/parserParameterList2.js +++ b/tests/baselines/reference/parserParameterList2.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserParameterList3.js b/tests/baselines/reference/parserParameterList3.js index 0ac53eeffefbe..2c25032054cde 100644 --- a/tests/baselines/reference/parserParameterList3.js +++ b/tests/baselines/reference/parserParameterList3.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserParameterList9.js b/tests/baselines/reference/parserParameterList9.js index 8e1e92f8ce816..24391faaf094a 100644 --- a/tests/baselines/reference/parserParameterList9.js +++ b/tests/baselines/reference/parserParameterList9.js @@ -7,7 +7,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource1.js b/tests/baselines/reference/parserRealSource1.js index 3bd1e926839f9..d03d859c31369 100644 --- a/tests/baselines/reference/parserRealSource1.js +++ b/tests/baselines/reference/parserRealSource1.js @@ -160,7 +160,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource10.js b/tests/baselines/reference/parserRealSource10.js index c7c4fd5effab4..a6b7cc9874ea3 100644 --- a/tests/baselines/reference/parserRealSource10.js +++ b/tests/baselines/reference/parserRealSource10.js @@ -461,7 +461,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource11.js b/tests/baselines/reference/parserRealSource11.js index f0afc72c13562..b85d29c4f0c8b 100644 --- a/tests/baselines/reference/parserRealSource11.js +++ b/tests/baselines/reference/parserRealSource11.js @@ -2380,7 +2380,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource12.js b/tests/baselines/reference/parserRealSource12.js index de2f0bcc4a32d..bae2689f00e76 100644 --- a/tests/baselines/reference/parserRealSource12.js +++ b/tests/baselines/reference/parserRealSource12.js @@ -536,7 +536,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource14.js b/tests/baselines/reference/parserRealSource14.js index 86786c8f67825..159ac51dca2ad 100644 --- a/tests/baselines/reference/parserRealSource14.js +++ b/tests/baselines/reference/parserRealSource14.js @@ -581,7 +581,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource4.js b/tests/baselines/reference/parserRealSource4.js index 1b2f8eb5fa1f6..3efc6e6fbf556 100644 --- a/tests/baselines/reference/parserRealSource4.js +++ b/tests/baselines/reference/parserRealSource4.js @@ -301,7 +301,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource5.js b/tests/baselines/reference/parserRealSource5.js index a08f8ccb73b31..cb496568f7e05 100644 --- a/tests/baselines/reference/parserRealSource5.js +++ b/tests/baselines/reference/parserRealSource5.js @@ -72,7 +72,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource6.js b/tests/baselines/reference/parserRealSource6.js index cce9fd32aa4ac..5348bbb7c263b 100644 --- a/tests/baselines/reference/parserRealSource6.js +++ b/tests/baselines/reference/parserRealSource6.js @@ -227,7 +227,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource8.js b/tests/baselines/reference/parserRealSource8.js index b813855eeb779..8d2d47ed7ac08 100644 --- a/tests/baselines/reference/parserRealSource8.js +++ b/tests/baselines/reference/parserRealSource8.js @@ -472,7 +472,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserRealSource9.js b/tests/baselines/reference/parserRealSource9.js index 7619c17c4bc13..f5f59146192c0 100644 --- a/tests/baselines/reference/parserRealSource9.js +++ b/tests/baselines/reference/parserRealSource9.js @@ -215,7 +215,7 @@ module TypeScript { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserSuperExpression1.js b/tests/baselines/reference/parserSuperExpression1.js index 74bfa264c55fa..78eb8b08ffbc6 100644 --- a/tests/baselines/reference/parserSuperExpression1.js +++ b/tests/baselines/reference/parserSuperExpression1.js @@ -17,7 +17,7 @@ module M1.M2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserSuperExpression2.js b/tests/baselines/reference/parserSuperExpression2.js index 5b3349e98c77f..87384d1436b2d 100644 --- a/tests/baselines/reference/parserSuperExpression2.js +++ b/tests/baselines/reference/parserSuperExpression2.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserSuperExpression3.js b/tests/baselines/reference/parserSuperExpression3.js index e994dc9be0655..6608813394316 100644 --- a/tests/baselines/reference/parserSuperExpression3.js +++ b/tests/baselines/reference/parserSuperExpression3.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserSuperExpression4.js b/tests/baselines/reference/parserSuperExpression4.js index 5ecfd475faa51..61c41d7cf21f7 100644 --- a/tests/baselines/reference/parserSuperExpression4.js +++ b/tests/baselines/reference/parserSuperExpression4.js @@ -17,7 +17,7 @@ module M1.M2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserharness.js b/tests/baselines/reference/parserharness.js index 09be994d88ac9..14870d08e3240 100644 --- a/tests/baselines/reference/parserharness.js +++ b/tests/baselines/reference/parserharness.js @@ -2099,7 +2099,7 @@ module Harness { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parserindenter.js b/tests/baselines/reference/parserindenter.js index 5fc4aaca9a768..6990d09c5ba0e 100644 --- a/tests/baselines/reference/parserindenter.js +++ b/tests/baselines/reference/parserindenter.js @@ -759,7 +759,7 @@ module Formatting { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js index 96cbda63158b4..a165b127803e9 100644 --- a/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js +++ b/tests/baselines/reference/parsingClassRecoversWhenHittingUnexpectedSemicolon.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/primitiveConstraints2.js b/tests/baselines/reference/primitiveConstraints2.js index d333bd95b9558..4da71a5dc3116 100644 --- a/tests/baselines/reference/primitiveConstraints2.js +++ b/tests/baselines/reference/primitiveConstraints2.js @@ -13,7 +13,7 @@ x.bar2(2, ""); // should error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/primitiveMembers.js b/tests/baselines/reference/primitiveMembers.js index ec9c66e35b206..f4bb391aabe43 100644 --- a/tests/baselines/reference/primitiveMembers.js +++ b/tests/baselines/reference/primitiveMembers.js @@ -35,7 +35,7 @@ class foo extends baz { public bar(){ return undefined}; } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyClass.js b/tests/baselines/reference/privacyClass.js index 5f5d2e807d7b6..aa4ccc268dddd 100644 --- a/tests/baselines/reference/privacyClass.js +++ b/tests/baselines/reference/privacyClass.js @@ -132,7 +132,7 @@ export class glo_C12_public extends glo_c_private implements glo_i_private, glo var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js index 10a5d57b9e258..0097e54245fb2 100644 --- a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js +++ b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js @@ -101,7 +101,7 @@ class publicClassExtendingPublicClassInGlobal extends publicClassInGlobal { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -310,7 +310,7 @@ exports.publicClassExtendingFromPrivateModuleClass = publicClassExtendingFromPri var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyFunc.js b/tests/baselines/reference/privacyFunc.js index 844c9747bb30b..81878175c5a5e 100644 --- a/tests/baselines/reference/privacyFunc.js +++ b/tests/baselines/reference/privacyFunc.js @@ -232,7 +232,7 @@ function f10_public(): C6_public { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js b/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js index 03a235e954c1e..719cab13c7aa1 100644 --- a/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionCannotNameParameterTypeDeclFile.js @@ -210,7 +210,7 @@ exports.createExportedWidget4 = createExportedWidget4; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js b/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js index a015f0cb3d1ab..02bc79bae7c17 100644 --- a/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionCannotNameReturnTypeDeclFile.js @@ -217,7 +217,7 @@ exports.createExportedWidget4 = createExportedWidget4; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyFunctionParameterDeclFile.js b/tests/baselines/reference/privacyFunctionParameterDeclFile.js index 92ae70665859b..c30bf2f575c61 100644 --- a/tests/baselines/reference/privacyFunctionParameterDeclFile.js +++ b/tests/baselines/reference/privacyFunctionParameterDeclFile.js @@ -690,7 +690,7 @@ module publicModuleInGlobal { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -1063,7 +1063,7 @@ var privateModule; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js b/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js index 70d24560354f5..e2ee7046c1ea9 100644 --- a/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js +++ b/tests/baselines/reference/privacyFunctionReturnTypeDeclFile.js @@ -1197,7 +1197,7 @@ module publicModuleInGlobal { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -1855,7 +1855,7 @@ var privateModule; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyGetter.js b/tests/baselines/reference/privacyGetter.js index 0ea2cb2aea8e3..c8f85cd2c002b 100644 --- a/tests/baselines/reference/privacyGetter.js +++ b/tests/baselines/reference/privacyGetter.js @@ -211,7 +211,7 @@ class C8_private { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyGloClass.js b/tests/baselines/reference/privacyGloClass.js index 1d78afc065328..7953b7e96d7b4 100644 --- a/tests/baselines/reference/privacyGloClass.js +++ b/tests/baselines/reference/privacyGloClass.js @@ -64,7 +64,7 @@ class glo_C11_public extends glo_c_public implements glo_i_public { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyGloFunc.js b/tests/baselines/reference/privacyGloFunc.js index 85eef926ac3b2..efef6cff8e958 100644 --- a/tests/baselines/reference/privacyGloFunc.js +++ b/tests/baselines/reference/privacyGloFunc.js @@ -534,7 +534,7 @@ export function f12_public(): C5_private { //error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyGloGetter.js b/tests/baselines/reference/privacyGloGetter.js index da13e682ed519..100ec3b72a6c8 100644 --- a/tests/baselines/reference/privacyGloGetter.js +++ b/tests/baselines/reference/privacyGloGetter.js @@ -92,7 +92,7 @@ class C7_public { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyGloInterface.js b/tests/baselines/reference/privacyGloInterface.js index 214e1447b4be7..439df1e4c52c0 100644 --- a/tests/baselines/reference/privacyGloInterface.js +++ b/tests/baselines/reference/privacyGloInterface.js @@ -123,7 +123,7 @@ interface glo_C3_public extends glo_i_public { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyGloVar.js b/tests/baselines/reference/privacyGloVar.js index 56cb7bf091993..dfcdebdfc8c76 100644 --- a/tests/baselines/reference/privacyGloVar.js +++ b/tests/baselines/reference/privacyGloVar.js @@ -84,7 +84,7 @@ var glo_v22_public: glo_C1_public = new glo_C1_public(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyInterface.js b/tests/baselines/reference/privacyInterface.js index 0f5477644f5da..7b330fc64f8ae 100644 --- a/tests/baselines/reference/privacyInterface.js +++ b/tests/baselines/reference/privacyInterface.js @@ -269,7 +269,7 @@ export interface glo_C6_public extends glo_i_private, glo_i_public { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyTypeParameterOfFunction.js b/tests/baselines/reference/privacyTypeParameterOfFunction.js index 0cf0c1308695d..2b8a041d77e20 100644 --- a/tests/baselines/reference/privacyTypeParameterOfFunction.js +++ b/tests/baselines/reference/privacyTypeParameterOfFunction.js @@ -137,7 +137,7 @@ function privateFunctionWithPublicTypeParametersWithoutExtends() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js b/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js index 7763611c04fa6..b729e03d69569 100644 --- a/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js +++ b/tests/baselines/reference/privacyTypeParameterOfFunctionDeclFile.js @@ -443,7 +443,7 @@ module privateModule { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyTypeParametersOfClass.js b/tests/baselines/reference/privacyTypeParametersOfClass.js index d0563c18bc356..56bb4bb125ef2 100644 --- a/tests/baselines/reference/privacyTypeParametersOfClass.js +++ b/tests/baselines/reference/privacyTypeParametersOfClass.js @@ -48,7 +48,7 @@ class privateClassWithPublicTypeParametersWithoutExtends { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js b/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js index cd19ff1a9b371..329c48c309eae 100644 --- a/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js +++ b/tests/baselines/reference/privacyTypeParametersOfClassDeclFile.js @@ -159,7 +159,7 @@ module privateModule { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privacyVar.js b/tests/baselines/reference/privacyVar.js index 08ff572d565df..aa8ff4eb00821 100644 --- a/tests/baselines/reference/privacyVar.js +++ b/tests/baselines/reference/privacyVar.js @@ -179,7 +179,7 @@ export var glo_v24_public: glo_C2_private = new glo_C2_private(); // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateAccessInSubclass1.js b/tests/baselines/reference/privateAccessInSubclass1.js index 674400cefc08f..d817b27178066 100644 --- a/tests/baselines/reference/privateAccessInSubclass1.js +++ b/tests/baselines/reference/privateAccessInSubclass1.js @@ -23,7 +23,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js b/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js index f0405b6e0fd89..c716fb70353fc 100644 --- a/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinClass.js @@ -36,7 +36,7 @@ class C2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js index ef7ca929f7b96..6cb073e7c771e 100644 --- a/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js +++ b/tests/baselines/reference/privateClassPropertyAccessibleWithinNestedClass.js @@ -42,7 +42,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateInstanceMemberAccessibility.js b/tests/baselines/reference/privateInstanceMemberAccessibility.js index c596a965c98f6..29c0218141eca 100644 --- a/tests/baselines/reference/privateInstanceMemberAccessibility.js +++ b/tests/baselines/reference/privateInstanceMemberAccessibility.js @@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateInstanceVisibility.js b/tests/baselines/reference/privateInstanceVisibility.js index f0d0b7781f426..88b5d4079e93a 100644 --- a/tests/baselines/reference/privateInstanceVisibility.js +++ b/tests/baselines/reference/privateInstanceVisibility.js @@ -42,7 +42,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js index 052870699c016..dd25d51d4d6ca 100644 --- a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js +++ b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js @@ -25,7 +25,7 @@ let { priv: a, prot: b, privateMethod: f } = k; // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateVisibility.js b/tests/baselines/reference/privateVisibility.js index c6f6b183e1603..173b8a2546439 100644 --- a/tests/baselines/reference/privateVisibility.js +++ b/tests/baselines/reference/privateVisibility.js @@ -30,7 +30,7 @@ c.priv; // should not work var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/privateVisibles.js b/tests/baselines/reference/privateVisibles.js index 3eb2f2a940e08..7f14e468d1526 100644 --- a/tests/baselines/reference/privateVisibles.js +++ b/tests/baselines/reference/privateVisibles.js @@ -13,7 +13,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js index c8c28c1b17ec9..ef151d151e18b 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/li'b/class'A.js @@ -1,7 +1,7 @@ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js index c8c28c1b17ec9..ef151d151e18b 100644 --- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js +++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/li'b/class'A.js @@ -1,7 +1,7 @@ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js index 0e02687758eee..263db881c0693 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/amd/fs.js @@ -1,7 +1,7 @@ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js index 0862e79ba46f9..a9e534c1893eb 100644 --- a/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js +++ b/tests/baselines/reference/project/visibilityOfTypeUsedAcrossModules/node/fs.js @@ -2,7 +2,7 @@ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/promiseChaining.js b/tests/baselines/reference/promiseChaining.js index d6aad37fac584..e2d76fcb2dce5 100644 --- a/tests/baselines/reference/promiseChaining.js +++ b/tests/baselines/reference/promiseChaining.js @@ -15,7 +15,7 @@ class Chain { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/promiseChaining1.js b/tests/baselines/reference/promiseChaining1.js index 6c180a9edb8d4..7e2be8631a3f9 100644 --- a/tests/baselines/reference/promiseChaining1.js +++ b/tests/baselines/reference/promiseChaining1.js @@ -14,7 +14,7 @@ class Chain2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/promiseChaining2.js b/tests/baselines/reference/promiseChaining2.js index 8abf3ffb592df..aebe5e2be2a4c 100644 --- a/tests/baselines/reference/promiseChaining2.js +++ b/tests/baselines/reference/promiseChaining2.js @@ -14,7 +14,7 @@ class Chain2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js index f2de7ef0bdc93..4ab3d6dc062ec 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints.js @@ -40,7 +40,7 @@ var r4 = b.foo(new Date()); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js index 906f29b5ef916..15b7b506f87b6 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js @@ -86,7 +86,7 @@ var r4 = b.foo(aB, aB); // no inferences for T so constraint isn't satisfied, er var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js index 81adda9a81fce..f394bc1321db3 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js @@ -61,7 +61,7 @@ var r4 = b.foo(new B()); // valid call to an invalid function var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js index b3ee2cdb202c0..ff68bdcc574d2 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints4.js @@ -36,7 +36,7 @@ var r4 = b.foo(new Date()); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js index ed11e8ad89cc8..5ef2f73aa57df 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js @@ -48,7 +48,7 @@ var r4 = b.foo(new B()); // error after constraints above made illegal, doesn't var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js index 48b4bb5721c33..22408798972c3 100644 --- a/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js +++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithoutConstraints.js @@ -35,7 +35,7 @@ var r4 = b.foo(1); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyAndFunctionWithSameName.js b/tests/baselines/reference/propertyAndFunctionWithSameName.js index c1be699bfb6fc..7c14d4de2d13b 100644 --- a/tests/baselines/reference/propertyAndFunctionWithSameName.js +++ b/tests/baselines/reference/propertyAndFunctionWithSameName.js @@ -15,7 +15,7 @@ class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyOrdering.js b/tests/baselines/reference/propertyOrdering.js index 8a04f54c9ed68..ab3df5440bdfb 100644 --- a/tests/baselines/reference/propertyOrdering.js +++ b/tests/baselines/reference/propertyOrdering.js @@ -27,7 +27,7 @@ class Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/propertyOrdering2.js b/tests/baselines/reference/propertyOrdering2.js index 333341e6fb5a7..2cb65947b7ec4 100644 --- a/tests/baselines/reference/propertyOrdering2.js +++ b/tests/baselines/reference/propertyOrdering2.js @@ -12,7 +12,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js index ec481e63663b1..13a152c49bf92 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinClass.js @@ -36,7 +36,7 @@ class C2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js index 59fe80e8d49fb..d52c9a2dc802c 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedClass.js @@ -42,7 +42,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js index ac96ed53b73e5..3ee5ffce964ca 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js @@ -51,7 +51,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js index 6ae95d3b88fcf..d3574e462ed8a 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js @@ -118,7 +118,7 @@ d4.x; // Error, neither within their declaring class nor class var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js index f6fcd987c9b58..1c544215a6e78 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js @@ -34,7 +34,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js index 257adeee0332b..30afff3c5dff7 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js @@ -98,7 +98,7 @@ d4.x; // Error, neither within their declaring class nor class var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js index f4399126da30c..b0461be3ffc74 100644 --- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js +++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js @@ -17,7 +17,7 @@ class Derived extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedInstanceMemberAccessibility.js b/tests/baselines/reference/protectedInstanceMemberAccessibility.js index 9a96d5a4d9735..68809dcecacfa 100644 --- a/tests/baselines/reference/protectedInstanceMemberAccessibility.js +++ b/tests/baselines/reference/protectedInstanceMemberAccessibility.js @@ -48,7 +48,7 @@ class C extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/protectedMembers.js b/tests/baselines/reference/protectedMembers.js index 45e12fe8dc606..d3f313f4d8eb1 100644 --- a/tests/baselines/reference/protectedMembers.js +++ b/tests/baselines/reference/protectedMembers.js @@ -119,7 +119,7 @@ class B3 extends A3 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/quotedFunctionName1.js b/tests/baselines/reference/quotedFunctionName1.js index 357a64fb3beca..18cb64d89e664 100644 --- a/tests/baselines/reference/quotedFunctionName1.js +++ b/tests/baselines/reference/quotedFunctionName1.js @@ -7,7 +7,7 @@ class Test1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/quotedPropertyName3.js b/tests/baselines/reference/quotedPropertyName3.js index 91d0345b8f725..e31feb6c897b7 100644 --- a/tests/baselines/reference/quotedPropertyName3.js +++ b/tests/baselines/reference/quotedPropertyName3.js @@ -11,7 +11,7 @@ class Test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/readonlyInNonPropertyParameters.js b/tests/baselines/reference/readonlyInNonPropertyParameters.js index 00b9ecc13b662..51dd79c3dfb74 100644 --- a/tests/baselines/reference/readonlyInNonPropertyParameters.js +++ b/tests/baselines/reference/readonlyInNonPropertyParameters.js @@ -12,7 +12,7 @@ class X { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/readonlyMembers.js b/tests/baselines/reference/readonlyMembers.js index fcca7be8afb53..08d7ddc322262 100644 --- a/tests/baselines/reference/readonlyMembers.js +++ b/tests/baselines/reference/readonlyMembers.js @@ -69,7 +69,7 @@ yy["foo"] = "abc"; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation1.js b/tests/baselines/reference/recursiveBaseConstructorCreation1.js index 7ce9933fd17b7..4c1b00d852a5b 100644 --- a/tests/baselines/reference/recursiveBaseConstructorCreation1.js +++ b/tests/baselines/reference/recursiveBaseConstructorCreation1.js @@ -10,7 +10,7 @@ var x = new C2(); // Valid var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js b/tests/baselines/reference/recursiveClassReferenceTest.js index bd0ceccac9ff9..1c7539b1b9391 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.js +++ b/tests/baselines/reference/recursiveClassReferenceTest.js @@ -108,7 +108,7 @@ module Sample.Thing.Languages.PlainText { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt index cb45f627c4365..d3526f5ae06fa 100644 --- a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt +++ b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt @@ -29,7 +29,7 @@ sourceFile:recursiveClassReferenceTest.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/recursiveComplicatedClasses.js b/tests/baselines/reference/recursiveComplicatedClasses.js index dae5d6ac3c0b7..b3104485eaf85 100644 --- a/tests/baselines/reference/recursiveComplicatedClasses.js +++ b/tests/baselines/reference/recursiveComplicatedClasses.js @@ -28,7 +28,7 @@ class TypeSymbol extends InferenceSymbol { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/recursiveInheritance3.js b/tests/baselines/reference/recursiveInheritance3.js index 19df835af84b8..e26f60b833521 100644 --- a/tests/baselines/reference/recursiveInheritance3.js +++ b/tests/baselines/reference/recursiveInheritance3.js @@ -12,7 +12,7 @@ interface I extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/requireEmitSemicolon.js b/tests/baselines/reference/requireEmitSemicolon.js index c76de6835abb0..472bf81689980 100644 --- a/tests/baselines/reference/requireEmitSemicolon.js +++ b/tests/baselines/reference/requireEmitSemicolon.js @@ -37,7 +37,7 @@ define(["require", "exports"], function (require, exports) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/requiredInitializedParameter2.js b/tests/baselines/reference/requiredInitializedParameter2.js index 060b6781ba3a3..513ac59899fed 100644 --- a/tests/baselines/reference/requiredInitializedParameter2.js +++ b/tests/baselines/reference/requiredInitializedParameter2.js @@ -11,7 +11,7 @@ class C1 implements I1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/requiredInitializedParameter3.js b/tests/baselines/reference/requiredInitializedParameter3.js index 839426cf1f2ce..88b80a52355a2 100644 --- a/tests/baselines/reference/requiredInitializedParameter3.js +++ b/tests/baselines/reference/requiredInitializedParameter3.js @@ -11,7 +11,7 @@ class C1 implements I1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/requiredInitializedParameter4.js b/tests/baselines/reference/requiredInitializedParameter4.js index 807adff10a19a..25a399f39a23d 100644 --- a/tests/baselines/reference/requiredInitializedParameter4.js +++ b/tests/baselines/reference/requiredInitializedParameter4.js @@ -7,7 +7,7 @@ class C1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js index df4b206c61920..8e46584b979b5 100644 --- a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js +++ b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js @@ -1033,7 +1033,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/restParameterAssignmentCompatibility.js b/tests/baselines/reference/restParameterAssignmentCompatibility.js index 95a9fa8a7b270..dcd705678eaba 100644 --- a/tests/baselines/reference/restParameterAssignmentCompatibility.js +++ b/tests/baselines/reference/restParameterAssignmentCompatibility.js @@ -30,7 +30,7 @@ t1 = s; // Similar to above, but optionality does not matter here. var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js b/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js index 36abda46dde20..5f8268c8f6b7c 100644 --- a/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js +++ b/tests/baselines/reference/restParameterWithoutAnnotationIsAnyArray.js @@ -31,7 +31,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/restParametersOfNonArrayTypes.js b/tests/baselines/reference/restParametersOfNonArrayTypes.js index 03f4d5515468b..b42f27550daab 100644 --- a/tests/baselines/reference/restParametersOfNonArrayTypes.js +++ b/tests/baselines/reference/restParametersOfNonArrayTypes.js @@ -30,7 +30,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/restParametersOfNonArrayTypes2.js b/tests/baselines/reference/restParametersOfNonArrayTypes2.js index 2f3a6addadd47..d960080b34f13 100644 --- a/tests/baselines/reference/restParametersOfNonArrayTypes2.js +++ b/tests/baselines/reference/restParametersOfNonArrayTypes2.js @@ -62,7 +62,7 @@ var b2 = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js b/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js index 0b0b7c262c305..50e2af38b7ac7 100644 --- a/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js +++ b/tests/baselines/reference/restParametersWithArrayTypeAnnotations.js @@ -57,7 +57,7 @@ var b2 = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/returnInConstructor1.js b/tests/baselines/reference/returnInConstructor1.js index 325034d21d996..3f28970149cfa 100644 --- a/tests/baselines/reference/returnInConstructor1.js +++ b/tests/baselines/reference/returnInConstructor1.js @@ -70,7 +70,7 @@ class I extends G { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/returnStatements.js b/tests/baselines/reference/returnStatements.js index a89ca53311b74..8ba31780bd17d 100644 --- a/tests/baselines/reference/returnStatements.js +++ b/tests/baselines/reference/returnStatements.js @@ -28,7 +28,7 @@ function fn13(): C { return null; } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/returnTypeTypeArguments.js b/tests/baselines/reference/returnTypeTypeArguments.js index dec5aad88b55a..7482726a3279c 100644 --- a/tests/baselines/reference/returnTypeTypeArguments.js +++ b/tests/baselines/reference/returnTypeTypeArguments.js @@ -80,7 +80,7 @@ declare var a: { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js index 047c14bbf1c80..200ac03fd8512 100644 --- a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js +++ b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js @@ -22,7 +22,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/scopeCheckInsidePublicMethod1.js b/tests/baselines/reference/scopeCheckInsidePublicMethod1.js index c4b6a5606f570..755a0c918a143 100644 --- a/tests/baselines/reference/scopeCheckInsidePublicMethod1.js +++ b/tests/baselines/reference/scopeCheckInsidePublicMethod1.js @@ -10,7 +10,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/scopeResolutionIdentifiers.js b/tests/baselines/reference/scopeResolutionIdentifiers.js index f5315525c7e3c..7fe9c715946ca 100644 --- a/tests/baselines/reference/scopeResolutionIdentifiers.js +++ b/tests/baselines/reference/scopeResolutionIdentifiers.js @@ -43,7 +43,7 @@ module M3 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/selfInCallback.js b/tests/baselines/reference/selfInCallback.js index 0636775eff693..82d83ab3b19d0 100644 --- a/tests/baselines/reference/selfInCallback.js +++ b/tests/baselines/reference/selfInCallback.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/selfInLambdas.js b/tests/baselines/reference/selfInLambdas.js index e114cb5829437..deb3d4bf58ef7 100644 --- a/tests/baselines/reference/selfInLambdas.js +++ b/tests/baselines/reference/selfInLambdas.js @@ -50,7 +50,7 @@ class X { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/selfReferencesInFunctionParameters.js b/tests/baselines/reference/selfReferencesInFunctionParameters.js index e5208d8907d37..7e820a98435df 100644 --- a/tests/baselines/reference/selfReferencesInFunctionParameters.js +++ b/tests/baselines/reference/selfReferencesInFunctionParameters.js @@ -17,7 +17,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/shadowPrivateMembers.js b/tests/baselines/reference/shadowPrivateMembers.js index 8d888128a4f40..2ce217a4f8ca9 100644 --- a/tests/baselines/reference/shadowPrivateMembers.js +++ b/tests/baselines/reference/shadowPrivateMembers.js @@ -7,7 +7,7 @@ class derived extends base { private n() {} } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js index cd15451c7db33..3f042bfd4cb66 100644 --- a/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js +++ b/tests/baselines/reference/sigantureIsSubTypeIfTheyAreIdentical.js @@ -12,7 +12,7 @@ class CacheService implements ICache { // Should not error that property type of var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js b/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js index 77abf5d441ad2..755c6fdb76eb7 100644 --- a/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js +++ b/tests/baselines/reference/signatureInstantiationWithRecursiveConstraints.js @@ -18,7 +18,7 @@ const myVar: Foo = new Bar(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sourceMap-Comments.js b/tests/baselines/reference/sourceMap-Comments.js index 3bb266598faf8..9b62a2ae7660a 100644 --- a/tests/baselines/reference/sourceMap-Comments.js +++ b/tests/baselines/reference/sourceMap-Comments.js @@ -24,7 +24,7 @@ module sas.tools { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sourceMap-Comments.sourcemap.txt b/tests/baselines/reference/sourceMap-Comments.sourcemap.txt index e8503301b02bc..13a6e3f4fde55 100644 --- a/tests/baselines/reference/sourceMap-Comments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-Comments.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:sourceMap-Comments.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/sourceMap-FileWithComments.js b/tests/baselines/reference/sourceMap-FileWithComments.js index d80dec6a2aec5..d106e02ffd2fd 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.js +++ b/tests/baselines/reference/sourceMap-FileWithComments.js @@ -39,7 +39,7 @@ var dist = p.getDist(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt index bcd7d9e1878e6..db0f02129f746 100644 --- a/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt +++ b/tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:sourceMap-FileWithComments.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapSample.js b/tests/baselines/reference/sourceMapSample.js index 519f2137c1d38..35d6b4f1b5ceb 100644 --- a/tests/baselines/reference/sourceMapSample.js +++ b/tests/baselines/reference/sourceMapSample.js @@ -39,7 +39,7 @@ module Foo.Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapSample.sourcemap.txt b/tests/baselines/reference/sourceMapSample.sourcemap.txt index 2ffafa87c7b7b..0104d0a4a9670 100644 --- a/tests/baselines/reference/sourceMapSample.sourcemap.txt +++ b/tests/baselines/reference/sourceMapSample.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:sourceMapSample.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapValidationClass.js b/tests/baselines/reference/sourceMapValidationClass.js index f8a6b43eb7e27..7374554bf3adf 100644 --- a/tests/baselines/reference/sourceMapValidationClass.js +++ b/tests/baselines/reference/sourceMapValidationClass.js @@ -22,7 +22,7 @@ class Greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt index 4be46d7444bdc..8927bd89fc9cd 100644 --- a/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClass.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:sourceMapValidationClass.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapValidationClasses.js b/tests/baselines/reference/sourceMapValidationClasses.js index 29b52fbd0a3ac..a5a0c649cfabb 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.js +++ b/tests/baselines/reference/sourceMapValidationClasses.js @@ -40,7 +40,7 @@ module Foo.Bar { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt index 543f90a828921..3b01211412a97 100644 --- a/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationClasses.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:sourceMapValidationClasses.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapValidationDecorators.js b/tests/baselines/reference/sourceMapValidationDecorators.js index b476d7a70fd14..f056b83dd0379 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.js +++ b/tests/baselines/reference/sourceMapValidationDecorators.js @@ -58,7 +58,7 @@ class Greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt b/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt index f1d8268322813..41a28488a859a 100644 --- a/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt +++ b/tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:sourceMapValidationDecorators.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/specializedOverloadWithRestParameters.js b/tests/baselines/reference/specializedOverloadWithRestParameters.js index fdb9d2982a059..1ea151d339547 100644 --- a/tests/baselines/reference/specializedOverloadWithRestParameters.js +++ b/tests/baselines/reference/specializedOverloadWithRestParameters.js @@ -16,7 +16,7 @@ function g(tagName: any): Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js index 7393463ba5df5..5ae59175fd211 100644 --- a/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js +++ b/tests/baselines/reference/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.js @@ -67,7 +67,7 @@ var a3: { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js index 179253fc35538..45cfbe24e2d9c 100644 --- a/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js +++ b/tests/baselines/reference/specializedSignatureIsSubtypeOfNonSpecializedSignature.js @@ -87,7 +87,7 @@ var a3: { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/spreadMethods.js b/tests/baselines/reference/spreadMethods.js index c877687779629..ad48f728b96f1 100644 --- a/tests/baselines/reference/spreadMethods.js +++ b/tests/baselines/reference/spreadMethods.js @@ -28,7 +28,7 @@ sso.m(); // ok var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticAndMemberFunctions.js b/tests/baselines/reference/staticAndMemberFunctions.js index 1949ca1f64c41..6aed6bd9a298a 100644 --- a/tests/baselines/reference/staticAndMemberFunctions.js +++ b/tests/baselines/reference/staticAndMemberFunctions.js @@ -8,7 +8,7 @@ class T { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js index a423898e379dc..2682965174345 100644 --- a/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js +++ b/tests/baselines/reference/staticAndNonStaticPropertiesSameName.js @@ -11,7 +11,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticClassMemberError.js b/tests/baselines/reference/staticClassMemberError.js index c4ce20719ac26..7f234d53775ee 100644 --- a/tests/baselines/reference/staticClassMemberError.js +++ b/tests/baselines/reference/staticClassMemberError.js @@ -16,7 +16,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticClassProps.js b/tests/baselines/reference/staticClassProps.js index 39925d139e8ad..03d02b719754d 100644 --- a/tests/baselines/reference/staticClassProps.js +++ b/tests/baselines/reference/staticClassProps.js @@ -12,7 +12,7 @@ class C var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticFactory1.js b/tests/baselines/reference/staticFactory1.js index a37c3ed112c16..bd44e06d8fc6d 100644 --- a/tests/baselines/reference/staticFactory1.js +++ b/tests/baselines/reference/staticFactory1.js @@ -17,7 +17,7 @@ d.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticInstanceResolution.js b/tests/baselines/reference/staticInstanceResolution.js index ccbba20fab463..92f7d77e3cb6b 100644 --- a/tests/baselines/reference/staticInstanceResolution.js +++ b/tests/baselines/reference/staticInstanceResolution.js @@ -18,7 +18,7 @@ class Comment { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticInstanceResolution4.js b/tests/baselines/reference/staticInstanceResolution4.js index 409777bd8ab76..c0db8256963b6 100644 --- a/tests/baselines/reference/staticInstanceResolution4.js +++ b/tests/baselines/reference/staticInstanceResolution4.js @@ -9,7 +9,7 @@ A.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticMemberExportAccess.js b/tests/baselines/reference/staticMemberExportAccess.js index 874e694dbae50..174a8726b3bca 100644 --- a/tests/baselines/reference/staticMemberExportAccess.js +++ b/tests/baselines/reference/staticMemberExportAccess.js @@ -24,7 +24,7 @@ Sammy.bar(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js b/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js index 7df37b0e38540..19cfbd2bab44f 100644 --- a/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js +++ b/tests/baselines/reference/staticMemberOfClassAndPublicMemberOfAnotherClassAssignment.js @@ -29,7 +29,7 @@ c = a; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js index 37ff9da5c6587..18d6d10868fa7 100644 --- a/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js +++ b/tests/baselines/reference/staticMethodWithTypeParameterExtendsClauseDeclFile.js @@ -26,7 +26,7 @@ export class publicClassWithWithPrivateTypeParameters { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticOffOfInstance1.js b/tests/baselines/reference/staticOffOfInstance1.js index 598a942258770..5983fac03cf18 100644 --- a/tests/baselines/reference/staticOffOfInstance1.js +++ b/tests/baselines/reference/staticOffOfInstance1.js @@ -10,7 +10,7 @@ class List { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticOffOfInstance2.js b/tests/baselines/reference/staticOffOfInstance2.js index 63365a84ad6ab..00cf0d1261049 100644 --- a/tests/baselines/reference/staticOffOfInstance2.js +++ b/tests/baselines/reference/staticOffOfInstance2.js @@ -12,7 +12,7 @@ class List { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js index 02b1e0cc80d12..a703931ce86bc 100644 --- a/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js +++ b/tests/baselines/reference/staticPropertyAndFunctionWithSameName.js @@ -13,7 +13,7 @@ class D { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticPropertyNameConflicts.js b/tests/baselines/reference/staticPropertyNameConflicts.js index db250be830f1b..cf88a2d76f143 100644 --- a/tests/baselines/reference/staticPropertyNameConflicts.js +++ b/tests/baselines/reference/staticPropertyNameConflicts.js @@ -195,7 +195,7 @@ module TestOnDefaultExportedClass_10 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/staticPropertyNotInClassType.js b/tests/baselines/reference/staticPropertyNotInClassType.js index 561419ead1e5a..6bd6096c654cd 100644 --- a/tests/baselines/reference/staticPropertyNotInClassType.js +++ b/tests/baselines/reference/staticPropertyNotInClassType.js @@ -43,7 +43,7 @@ module Generic { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js index 3b8b65c09123d..7f60b8d402f64 100644 --- a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js +++ b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js @@ -32,7 +32,7 @@ class H extends package.A { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/strictModeUseContextualKeyword.js b/tests/baselines/reference/strictModeUseContextualKeyword.js index 9a8816d8bcbc6..f14fbf84fc9c0 100644 --- a/tests/baselines/reference/strictModeUseContextualKeyword.js +++ b/tests/baselines/reference/strictModeUseContextualKeyword.js @@ -18,7 +18,7 @@ function H() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js index 6a02a3bd77825..a41c586f04ec9 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations.js @@ -102,7 +102,7 @@ var b: { [x: string]: string; } = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js index 0249347bec10e..fbf95441023f4 100644 --- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js +++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js @@ -44,7 +44,7 @@ var b: { [x: string]: A } = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js index 631125fc5bd32..2c343acf64751 100644 --- a/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js +++ b/tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js @@ -105,7 +105,7 @@ function f16(x: any) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js index 6466462e31576..29839980dd370 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures.js @@ -31,7 +31,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js index fafc023318a90..b5e6edb796368 100644 --- a/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js +++ b/tests/baselines/reference/stringLiteralTypesInImplementationSignatures2.js @@ -34,7 +34,7 @@ var b = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/stripInternal1.js b/tests/baselines/reference/stripInternal1.js index 0fc8639ce0c36..f15067de4b5c9 100644 --- a/tests/baselines/reference/stripInternal1.js +++ b/tests/baselines/reference/stripInternal1.js @@ -9,7 +9,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/super.js b/tests/baselines/reference/super.js index c5629befb7265..6065aa3ffc15c 100644 --- a/tests/baselines/reference/super.js +++ b/tests/baselines/reference/super.js @@ -41,7 +41,7 @@ s.foo() + ss.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/super1.js b/tests/baselines/reference/super1.js index 7656e700e0c84..e5d9f65fa8cff 100644 --- a/tests/baselines/reference/super1.js +++ b/tests/baselines/reference/super1.js @@ -70,7 +70,7 @@ module Base4 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/super2.js b/tests/baselines/reference/super2.js index 25b44e1168e30..8a2d4ec87d331 100644 --- a/tests/baselines/reference/super2.js +++ b/tests/baselines/reference/super2.js @@ -54,7 +54,7 @@ results1.x() + results1.y() + results2.y(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superAccess.js b/tests/baselines/reference/superAccess.js index 66b80b1ca3a87..1228959ad1869 100644 --- a/tests/baselines/reference/superAccess.js +++ b/tests/baselines/reference/superAccess.js @@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superAccess2.js b/tests/baselines/reference/superAccess2.js index 9441d85d1a99f..f3467bb3dc4cd 100644 --- a/tests/baselines/reference/superAccess2.js +++ b/tests/baselines/reference/superAccess2.js @@ -28,7 +28,7 @@ class Q extends P { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superAccessInFatArrow1.js b/tests/baselines/reference/superAccessInFatArrow1.js index e5a8723f4e550..35d0eb7d0ecea 100644 --- a/tests/baselines/reference/superAccessInFatArrow1.js +++ b/tests/baselines/reference/superAccessInFatArrow1.js @@ -19,7 +19,7 @@ module test { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superCallInNonStaticMethod.js b/tests/baselines/reference/superCallInNonStaticMethod.js index 80ce1ac9bb2b5..f7ecf46f8cd34 100644 --- a/tests/baselines/reference/superCallInNonStaticMethod.js +++ b/tests/baselines/reference/superCallInNonStaticMethod.js @@ -54,7 +54,7 @@ class Other extends Doing { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js index 445bb3ce8ef93..12aee41d8c92a 100644 --- a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js +++ b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js @@ -16,7 +16,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superCallOutsideConstructor.js b/tests/baselines/reference/superCallOutsideConstructor.js index f763863cce525..5dbfa1925bf82 100644 --- a/tests/baselines/reference/superCallOutsideConstructor.js +++ b/tests/baselines/reference/superCallOutsideConstructor.js @@ -26,7 +26,7 @@ var d = new D(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superCallParameterContextualTyping3.js b/tests/baselines/reference/superCallParameterContextualTyping3.js index c2dd9d3724e8b..caef232c891f2 100644 --- a/tests/baselines/reference/superCallParameterContextualTyping3.js +++ b/tests/baselines/reference/superCallParameterContextualTyping3.js @@ -35,7 +35,7 @@ class C extends CBase { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superCallWithMissingBaseClass.js b/tests/baselines/reference/superCallWithMissingBaseClass.js index 14bcaaa039e45..6f93754e40200 100644 --- a/tests/baselines/reference/superCallWithMissingBaseClass.js +++ b/tests/baselines/reference/superCallWithMissingBaseClass.js @@ -23,7 +23,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superCallsInConstructor.js b/tests/baselines/reference/superCallsInConstructor.js index df1ecf4774084..9140ad8bf689a 100644 --- a/tests/baselines/reference/superCallsInConstructor.js +++ b/tests/baselines/reference/superCallsInConstructor.js @@ -24,7 +24,7 @@ class Derived extends Base { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superErrors.js b/tests/baselines/reference/superErrors.js index a7d89bfccd65f..03cbb6eb56a17 100644 --- a/tests/baselines/reference/superErrors.js +++ b/tests/baselines/reference/superErrors.js @@ -55,7 +55,7 @@ class RegisteredUser extends User { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superHasMethodsFromMergedInterface.js b/tests/baselines/reference/superHasMethodsFromMergedInterface.js index 48000c9c3ea39..71fee2b67d4aa 100644 --- a/tests/baselines/reference/superHasMethodsFromMergedInterface.js +++ b/tests/baselines/reference/superHasMethodsFromMergedInterface.js @@ -12,7 +12,7 @@ class Sub extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superInCatchBlock1.js b/tests/baselines/reference/superInCatchBlock1.js index 3a83b2a3a78bd..e49f111a719ef 100644 --- a/tests/baselines/reference/superInCatchBlock1.js +++ b/tests/baselines/reference/superInCatchBlock1.js @@ -17,7 +17,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superInConstructorParam1.js b/tests/baselines/reference/superInConstructorParam1.js index c10f37ead7a0f..b67f0dd530423 100644 --- a/tests/baselines/reference/superInConstructorParam1.js +++ b/tests/baselines/reference/superInConstructorParam1.js @@ -14,7 +14,7 @@ class C extends B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superInLambdas.js b/tests/baselines/reference/superInLambdas.js index f4a6b34dbb3a6..628bda31f2ff2 100644 --- a/tests/baselines/reference/superInLambdas.js +++ b/tests/baselines/reference/superInLambdas.js @@ -71,7 +71,7 @@ class RegisteredUser4 extends User { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.js b/tests/baselines/reference/superInObjectLiterals_ES5.js index b119eb3c24bf4..34230b70e98b2 100644 --- a/tests/baselines/reference/superInObjectLiterals_ES5.js +++ b/tests/baselines/reference/superInObjectLiterals_ES5.js @@ -63,7 +63,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superPropertyAccess.js b/tests/baselines/reference/superPropertyAccess.js index 8052972f2dfef..a8371e0944a10 100644 --- a/tests/baselines/reference/superPropertyAccess.js +++ b/tests/baselines/reference/superPropertyAccess.js @@ -39,7 +39,7 @@ class MyDerived extends MyBase { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superPropertyAccess1.js b/tests/baselines/reference/superPropertyAccess1.js index 95e17ab56f49f..25eac5c61bee5 100644 --- a/tests/baselines/reference/superPropertyAccess1.js +++ b/tests/baselines/reference/superPropertyAccess1.js @@ -31,7 +31,7 @@ class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js index f363957bd7ccb..d32ad076dcd09 100644 --- a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js +++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js @@ -18,7 +18,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superPropertyAccessInSuperCall01.js b/tests/baselines/reference/superPropertyAccessInSuperCall01.js index de1e4944148b8..7694ac36aebfd 100644 --- a/tests/baselines/reference/superPropertyAccessInSuperCall01.js +++ b/tests/baselines/reference/superPropertyAccessInSuperCall01.js @@ -15,7 +15,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superPropertyAccessNoError.js b/tests/baselines/reference/superPropertyAccessNoError.js index c9db138649378..85e672c26064b 100644 --- a/tests/baselines/reference/superPropertyAccessNoError.js +++ b/tests/baselines/reference/superPropertyAccessNoError.js @@ -80,7 +80,7 @@ instance.returnThis().fn(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superPropertyAccess_ES5.js b/tests/baselines/reference/superPropertyAccess_ES5.js index f2ea444cc171e..5e94d749889a4 100644 --- a/tests/baselines/reference/superPropertyAccess_ES5.js +++ b/tests/baselines/reference/superPropertyAccess_ES5.js @@ -32,7 +32,7 @@ class B extends A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js index 88bae4ed47921..7593a1228339c 100644 --- a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js +++ b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js @@ -19,7 +19,7 @@ class C2 extends B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.js b/tests/baselines/reference/superSymbolIndexedAccess5.js index ee769255d357c..e5b28c2b98560 100644 --- a/tests/baselines/reference/superSymbolIndexedAccess5.js +++ b/tests/baselines/reference/superSymbolIndexedAccess5.js @@ -17,7 +17,7 @@ class Bar extends Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/superWithTypeArgument3.js b/tests/baselines/reference/superWithTypeArgument3.js index 490f144a01e77..6c1f0c324346b 100644 --- a/tests/baselines/reference/superWithTypeArgument3.js +++ b/tests/baselines/reference/superWithTypeArgument3.js @@ -17,7 +17,7 @@ class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; 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 85cbdbedce3d3..e1753645c1921 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 @@ -31,7 +31,7 @@ class SuperObjectTest extends F { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisBinding.js b/tests/baselines/reference/thisBinding.js index 7bcbf25952451..b2121aa830c39 100644 --- a/tests/baselines/reference/thisBinding.js +++ b/tests/baselines/reference/thisBinding.js @@ -25,7 +25,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisCapture1.js b/tests/baselines/reference/thisCapture1.js index 28ead6d784b9c..64b4c01103f8e 100644 --- a/tests/baselines/reference/thisCapture1.js +++ b/tests/baselines/reference/thisCapture1.js @@ -13,7 +13,7 @@ class X { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js b/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js index dc73d9f86ab1d..acb1f18ff39f4 100644 --- a/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js +++ b/tests/baselines/reference/thisExpressionInCallExpressionWithTypeArguments.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisInConstructorParameter2.js b/tests/baselines/reference/thisInConstructorParameter2.js index 2a3008427bb2f..3f4f88a760bd4 100644 --- a/tests/baselines/reference/thisInConstructorParameter2.js +++ b/tests/baselines/reference/thisInConstructorParameter2.js @@ -13,7 +13,7 @@ class P { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisInInnerFunctions.js b/tests/baselines/reference/thisInInnerFunctions.js index 82938dda9ea94..f70fb30c21472 100644 --- a/tests/baselines/reference/thisInInnerFunctions.js +++ b/tests/baselines/reference/thisInInnerFunctions.js @@ -21,7 +21,7 @@ function test() { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisInLambda.js b/tests/baselines/reference/thisInLambda.js index a583db3b75a03..089d4cadf9efb 100644 --- a/tests/baselines/reference/thisInLambda.js +++ b/tests/baselines/reference/thisInLambda.js @@ -22,7 +22,7 @@ class myCls { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisInObjectLiterals.js b/tests/baselines/reference/thisInObjectLiterals.js index eb36655dfa3f6..5ac4daeffd5d3 100644 --- a/tests/baselines/reference/thisInObjectLiterals.js +++ b/tests/baselines/reference/thisInObjectLiterals.js @@ -23,7 +23,7 @@ var obj: { f: () => any; }; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisInOuterClassBody.js b/tests/baselines/reference/thisInOuterClassBody.js index e1ee4a2ce37a0..8a1efb9b3e8c4 100644 --- a/tests/baselines/reference/thisInOuterClassBody.js +++ b/tests/baselines/reference/thisInOuterClassBody.js @@ -24,7 +24,7 @@ class Foo { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisInPropertyBoundDeclarations.js b/tests/baselines/reference/thisInPropertyBoundDeclarations.js index 374135e76572d..b6bcd7e02cb7b 100644 --- a/tests/baselines/reference/thisInPropertyBoundDeclarations.js +++ b/tests/baselines/reference/thisInPropertyBoundDeclarations.js @@ -71,7 +71,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisTypeAndConstraints.js b/tests/baselines/reference/thisTypeAndConstraints.js index aacf3eb1bb3ee..d87c52812e90c 100644 --- a/tests/baselines/reference/thisTypeAndConstraints.js +++ b/tests/baselines/reference/thisTypeAndConstraints.js @@ -26,7 +26,7 @@ class B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisTypeAsConstraint.js b/tests/baselines/reference/thisTypeAsConstraint.js index c6ce9b283b31c..dee2a89b3fae2 100644 --- a/tests/baselines/reference/thisTypeAsConstraint.js +++ b/tests/baselines/reference/thisTypeAsConstraint.js @@ -8,7 +8,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisTypeErrors.js b/tests/baselines/reference/thisTypeErrors.js index 70d286fa22a6b..db59c2e798014 100644 --- a/tests/baselines/reference/thisTypeErrors.js +++ b/tests/baselines/reference/thisTypeErrors.js @@ -60,7 +60,7 @@ class C3 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisTypeInClasses.js b/tests/baselines/reference/thisTypeInClasses.js index 0530f3e042066..9b584ff2e2c9e 100644 --- a/tests/baselines/reference/thisTypeInClasses.js +++ b/tests/baselines/reference/thisTypeInClasses.js @@ -54,7 +54,7 @@ class C5 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisTypeInFunctions.js b/tests/baselines/reference/thisTypeInFunctions.js index 7fff3a3924244..b057805dadfd9 100644 --- a/tests/baselines/reference/thisTypeInFunctions.js +++ b/tests/baselines/reference/thisTypeInFunctions.js @@ -198,7 +198,7 @@ function missingTypeIsImplicitAny(this, a: number) { return this.anything + a; } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisTypeInFunctionsNegative.js b/tests/baselines/reference/thisTypeInFunctionsNegative.js index 209c461c6fab0..81e83d915ff85 100644 --- a/tests/baselines/reference/thisTypeInFunctionsNegative.js +++ b/tests/baselines/reference/thisTypeInFunctionsNegative.js @@ -180,7 +180,7 @@ c.explicitProperty = (this, m) => m + this.n; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/thisWhenTypeCheckFails.js b/tests/baselines/reference/thisWhenTypeCheckFails.js index c066410702a53..cf842a29b8961 100644 --- a/tests/baselines/reference/thisWhenTypeCheckFails.js +++ b/tests/baselines/reference/thisWhenTypeCheckFails.js @@ -12,7 +12,7 @@ class c { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/throwInEnclosingStatements.js b/tests/baselines/reference/throwInEnclosingStatements.js index 41c0e68e5bdbe..6c62bd519f6c8 100644 --- a/tests/baselines/reference/throwInEnclosingStatements.js +++ b/tests/baselines/reference/throwInEnclosingStatements.js @@ -50,7 +50,7 @@ var aa = { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/topLevel.js b/tests/baselines/reference/topLevel.js index 8fbafb3ea1351..4402ec8d81c98 100644 --- a/tests/baselines/reference/topLevel.js +++ b/tests/baselines/reference/topLevel.js @@ -31,7 +31,7 @@ result+=(M.origin.move(1,1)); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js b/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js index fc68add9c5591..5e6adff8ef91b 100644 --- a/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js +++ b/tests/baselines/reference/trailingCommaInHeterogenousArrayLiteral1.js @@ -13,7 +13,7 @@ class arrTest { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxAttributeResolution10.js b/tests/baselines/reference/tsxAttributeResolution10.js index 5034708e3c8fd..8764cc2e79f41 100644 --- a/tests/baselines/reference/tsxAttributeResolution10.js +++ b/tests/baselines/reference/tsxAttributeResolution10.js @@ -34,7 +34,7 @@ export class MyComponent { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxAttributeResolution11.js b/tests/baselines/reference/tsxAttributeResolution11.js index fc245ec5d154b..4eb8861945db9 100644 --- a/tests/baselines/reference/tsxAttributeResolution11.js +++ b/tests/baselines/reference/tsxAttributeResolution11.js @@ -32,7 +32,7 @@ var x = ; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxAttributeResolution15.js b/tests/baselines/reference/tsxAttributeResolution15.js index 10fcb30d5e469..c5441edba9dfd 100644 --- a/tests/baselines/reference/tsxAttributeResolution15.js +++ b/tests/baselines/reference/tsxAttributeResolution15.js @@ -30,7 +30,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxAttributeResolution16.js b/tests/baselines/reference/tsxAttributeResolution16.js index c1ff322234db7..a61cf8ac87763 100644 --- a/tests/baselines/reference/tsxAttributeResolution16.js +++ b/tests/baselines/reference/tsxAttributeResolution16.js @@ -39,7 +39,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxAttributeResolution9.js b/tests/baselines/reference/tsxAttributeResolution9.js index 106a897f7e22f..d2d20f2d136c5 100644 --- a/tests/baselines/reference/tsxAttributeResolution9.js +++ b/tests/baselines/reference/tsxAttributeResolution9.js @@ -30,7 +30,7 @@ export class MyComponent { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js index 7853187a4b727..24d308ab98729 100644 --- a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js +++ b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js @@ -34,7 +34,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution1.js b/tests/baselines/reference/tsxDefaultAttributesResolution1.js index 50a09b5e4541d..f94109bc68aba 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution1.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution1.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution2.js b/tests/baselines/reference/tsxDefaultAttributesResolution2.js index 23185f7d7ce21..26f50e17590ff 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution2.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution2.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution3.js b/tests/baselines/reference/tsxDefaultAttributesResolution3.js index 17c6eccf1d920..d5df64caecc2b 100644 --- a/tests/baselines/reference/tsxDefaultAttributesResolution3.js +++ b/tests/baselines/reference/tsxDefaultAttributesResolution3.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxDynamicTagName5.js b/tests/baselines/reference/tsxDynamicTagName5.js index 73277ae860fb1..673a02c42100f 100644 --- a/tests/baselines/reference/tsxDynamicTagName5.js +++ b/tests/baselines/reference/tsxDynamicTagName5.js @@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxDynamicTagName7.js b/tests/baselines/reference/tsxDynamicTagName7.js index 7ee5d47e678c9..1735ac972d19d 100644 --- a/tests/baselines/reference/tsxDynamicTagName7.js +++ b/tests/baselines/reference/tsxDynamicTagName7.js @@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxDynamicTagName8.js b/tests/baselines/reference/tsxDynamicTagName8.js index dcc50ce5e5cbe..c98d623bb50cf 100644 --- a/tests/baselines/reference/tsxDynamicTagName8.js +++ b/tests/baselines/reference/tsxDynamicTagName8.js @@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxDynamicTagName9.js b/tests/baselines/reference/tsxDynamicTagName9.js index be8b8aad683a9..872a081407f5a 100644 --- a/tests/baselines/reference/tsxDynamicTagName9.js +++ b/tests/baselines/reference/tsxDynamicTagName9.js @@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxEmit1.js b/tests/baselines/reference/tsxEmit1.js index 80f380d8231aa..02a9d4cc97941 100644 --- a/tests/baselines/reference/tsxEmit1.js +++ b/tests/baselines/reference/tsxEmit1.js @@ -44,7 +44,7 @@ var whitespace3 =
var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxExternalModuleEmit1.js b/tests/baselines/reference/tsxExternalModuleEmit1.js index ff56aa90b46d0..c3e3bffaa51f8 100644 --- a/tests/baselines/reference/tsxExternalModuleEmit1.js +++ b/tests/baselines/reference/tsxExternalModuleEmit1.js @@ -45,7 +45,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; @@ -85,7 +85,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxGenericAttributesType3.js b/tests/baselines/reference/tsxGenericAttributesType3.js index 0f3c6827e620a..f9ffad09ff1a7 100644 --- a/tests/baselines/reference/tsxGenericAttributesType3.js +++ b/tests/baselines/reference/tsxGenericAttributesType3.js @@ -27,7 +27,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxGenericAttributesType4.js b/tests/baselines/reference/tsxGenericAttributesType4.js index 7ad79bd550a29..35bf88388fb05 100644 --- a/tests/baselines/reference/tsxGenericAttributesType4.js +++ b/tests/baselines/reference/tsxGenericAttributesType4.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxGenericAttributesType5.js b/tests/baselines/reference/tsxGenericAttributesType5.js index d158a5e78df43..5fb618fccfcac 100644 --- a/tests/baselines/reference/tsxGenericAttributesType5.js +++ b/tests/baselines/reference/tsxGenericAttributesType5.js @@ -29,7 +29,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxGenericAttributesType6.js b/tests/baselines/reference/tsxGenericAttributesType6.js index 0ce7f98eef65c..b9c7cdc629484 100644 --- a/tests/baselines/reference/tsxGenericAttributesType6.js +++ b/tests/baselines/reference/tsxGenericAttributesType6.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxGenericAttributesType9.js b/tests/baselines/reference/tsxGenericAttributesType9.js index 6a48a6921dd70..08b6e1c150e17 100644 --- a/tests/baselines/reference/tsxGenericAttributesType9.js +++ b/tests/baselines/reference/tsxGenericAttributesType9.js @@ -28,7 +28,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxReactEmit1.js b/tests/baselines/reference/tsxReactEmit1.js index bce8983aa0db1..9df2f5fca009a 100644 --- a/tests/baselines/reference/tsxReactEmit1.js +++ b/tests/baselines/reference/tsxReactEmit1.js @@ -45,7 +45,7 @@ var whitespace3 =
var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution1.js b/tests/baselines/reference/tsxSpreadAttributesResolution1.js index 1dea3ceacfb9a..57757fbd1cdd0 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution1.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution1.js @@ -29,7 +29,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution10.js b/tests/baselines/reference/tsxSpreadAttributesResolution10.js index c6c6efc56d7a1..68c40c0fe78ae 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution10.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution10.js @@ -38,7 +38,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution11.js b/tests/baselines/reference/tsxSpreadAttributesResolution11.js index 3097f21e76113..bbc8a4ef45645 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution11.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution11.js @@ -46,7 +46,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.js b/tests/baselines/reference/tsxSpreadAttributesResolution12.js index 425f9040c6a1a..cf31e3639d1b6 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution12.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.js @@ -47,7 +47,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.js b/tests/baselines/reference/tsxSpreadAttributesResolution2.js index 3cea6a2dc8b09..1fdc8442eef96 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution2.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.js @@ -36,7 +36,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution3.js b/tests/baselines/reference/tsxSpreadAttributesResolution3.js index 7ae886eb2eff5..694ab22185516 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution3.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution3.js @@ -36,7 +36,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution4.js b/tests/baselines/reference/tsxSpreadAttributesResolution4.js index 8ad239a344022..24fa9901105a1 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution4.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution4.js @@ -49,7 +49,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution5.js b/tests/baselines/reference/tsxSpreadAttributesResolution5.js index 9228b70a2fa5f..7c05799246a94 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution5.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution5.js @@ -48,7 +48,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution6.js b/tests/baselines/reference/tsxSpreadAttributesResolution6.js index edcd3e64a28fa..af6638ea463b1 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution6.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution6.js @@ -32,7 +32,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution7.js b/tests/baselines/reference/tsxSpreadAttributesResolution7.js index edcd6645c35b8..d23d309376d8c 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution7.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution7.js @@ -39,7 +39,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution8.js b/tests/baselines/reference/tsxSpreadAttributesResolution8.js index 827c07f7eacff..9ee3084087471 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution8.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution8.js @@ -41,7 +41,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution9.js b/tests/baselines/reference/tsxSpreadAttributesResolution9.js index 70351631ad688..121a9063b65bf 100644 --- a/tests/baselines/reference/tsxSpreadAttributesResolution9.js +++ b/tests/baselines/reference/tsxSpreadAttributesResolution9.js @@ -39,7 +39,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.js b/tests/baselines/reference/tsxStatelessFunctionComponents2.js index 85ce1dd739ceb..857b09d18c083 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.js @@ -52,7 +52,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxUnionElementType3.js b/tests/baselines/reference/tsxUnionElementType3.js index db52ef1e7e709..c2d1c92a80490 100644 --- a/tests/baselines/reference/tsxUnionElementType3.js +++ b/tests/baselines/reference/tsxUnionElementType3.js @@ -51,7 +51,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxUnionElementType4.js b/tests/baselines/reference/tsxUnionElementType4.js index dd98da2fd7662..b05dd769d7ce1 100644 --- a/tests/baselines/reference/tsxUnionElementType4.js +++ b/tests/baselines/reference/tsxUnionElementType4.js @@ -50,7 +50,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/tsxUnionTypeComponent1.js b/tests/baselines/reference/tsxUnionTypeComponent1.js index 3801c5a599b6b..978609f4827cf 100644 --- a/tests/baselines/reference/tsxUnionTypeComponent1.js +++ b/tests/baselines/reference/tsxUnionTypeComponent1.js @@ -38,7 +38,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeCheckTypeArgument.js b/tests/baselines/reference/typeCheckTypeArgument.js index 8765d17ee8484..50dce6ac67a91 100644 --- a/tests/baselines/reference/typeCheckTypeArgument.js +++ b/tests/baselines/reference/typeCheckTypeArgument.js @@ -17,7 +17,7 @@ class Foo2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeConstraintsWithConstructSignatures.js b/tests/baselines/reference/typeConstraintsWithConstructSignatures.js index dedbf6c4156f1..7a4f61fcd415c 100644 --- a/tests/baselines/reference/typeConstraintsWithConstructSignatures.js +++ b/tests/baselines/reference/typeConstraintsWithConstructSignatures.js @@ -16,7 +16,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeGuardFunction.js b/tests/baselines/reference/typeGuardFunction.js index 50952ec1027a0..452d72a3e5e57 100644 --- a/tests/baselines/reference/typeGuardFunction.js +++ b/tests/baselines/reference/typeGuardFunction.js @@ -96,7 +96,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.js b/tests/baselines/reference/typeGuardFunctionOfFormThis.js index 3623b6b18569b..4939143aa5ba6 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThis.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.js @@ -145,7 +145,7 @@ interface MimicGuardInterface { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js index a092542802a8f..e4f3d1cb3de25 100644 --- a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js +++ b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js @@ -63,7 +63,7 @@ else { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeGuardsInClassMethods.js b/tests/baselines/reference/typeGuardsInClassMethods.js index a7e1137184071..a79522a8def6b 100644 --- a/tests/baselines/reference/typeGuardsInClassMethods.js +++ b/tests/baselines/reference/typeGuardsInClassMethods.js @@ -74,7 +74,7 @@ class C1 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeGuardsInProperties.js b/tests/baselines/reference/typeGuardsInProperties.js index 3a4cfee5d012b..7b8ec297ad51d 100644 --- a/tests/baselines/reference/typeGuardsInProperties.js +++ b/tests/baselines/reference/typeGuardsInProperties.js @@ -31,7 +31,7 @@ strOrNum = typeof obj1.x === "string" && obj1.x; // string | number var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeGuardsOnClassProperty.js b/tests/baselines/reference/typeGuardsOnClassProperty.js index d1ba221411f02..4058fd57f8c8d 100644 --- a/tests/baselines/reference/typeGuardsOnClassProperty.js +++ b/tests/baselines/reference/typeGuardsOnClassProperty.js @@ -34,7 +34,7 @@ if (typeof prop1 === "string" && prop1.toLocaleLowerCase()) { } var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeInferenceLiteralUnion.js b/tests/baselines/reference/typeInferenceLiteralUnion.js index ef6e69b6f945f..693074b69b0c8 100644 --- a/tests/baselines/reference/typeInferenceLiteralUnion.js +++ b/tests/baselines/reference/typeInferenceLiteralUnion.js @@ -41,7 +41,7 @@ extentMixed = extent([new NumCoercible(10), 13, '12', true]); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeInferenceReturnTypeCallback.js b/tests/baselines/reference/typeInferenceReturnTypeCallback.js index 94ff05fc8b52f..3e91a29b51ac4 100644 --- a/tests/baselines/reference/typeInferenceReturnTypeCallback.js +++ b/tests/baselines/reference/typeInferenceReturnTypeCallback.js @@ -25,7 +25,7 @@ class Cons implements IList{ var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeOfThis.js b/tests/baselines/reference/typeOfThis.js index 3782e8f5ffac1..c0ac3e2355c12 100644 --- a/tests/baselines/reference/typeOfThis.js +++ b/tests/baselines/reference/typeOfThis.js @@ -181,7 +181,7 @@ this.spaaaaace = 4; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeOfThisInInstanceMember.js b/tests/baselines/reference/typeOfThisInInstanceMember.js index 00a824a8214e3..30c15f28e765b 100644 --- a/tests/baselines/reference/typeOfThisInInstanceMember.js +++ b/tests/baselines/reference/typeOfThisInInstanceMember.js @@ -35,7 +35,7 @@ rs.forEach(x => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeOfThisInInstanceMember2.js b/tests/baselines/reference/typeOfThisInInstanceMember2.js index ccd3efa0fbc84..d657f343ea6f5 100644 --- a/tests/baselines/reference/typeOfThisInInstanceMember2.js +++ b/tests/baselines/reference/typeOfThisInInstanceMember2.js @@ -39,7 +39,7 @@ rs.forEach(x => { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeOfThisInMemberFunctions.js b/tests/baselines/reference/typeOfThisInMemberFunctions.js index 48ad3bc3aa1ca..85177e9a717c8 100644 --- a/tests/baselines/reference/typeOfThisInMemberFunctions.js +++ b/tests/baselines/reference/typeOfThisInMemberFunctions.js @@ -35,7 +35,7 @@ class E { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParameterAssignmentCompat1.js b/tests/baselines/reference/typeParameterAssignmentCompat1.js index c1a739f220ae0..0122b28ae6beb 100644 --- a/tests/baselines/reference/typeParameterAssignmentCompat1.js +++ b/tests/baselines/reference/typeParameterAssignmentCompat1.js @@ -23,7 +23,7 @@ class C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParameterExtendingUnion1.js b/tests/baselines/reference/typeParameterExtendingUnion1.js index bece6309f23d8..189d5f4f2225d 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion1.js +++ b/tests/baselines/reference/typeParameterExtendingUnion1.js @@ -16,7 +16,7 @@ function f(a: T) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParameterExtendingUnion2.js b/tests/baselines/reference/typeParameterExtendingUnion2.js index 0a927ed2d8a18..74e26b6e35e2f 100644 --- a/tests/baselines/reference/typeParameterExtendingUnion2.js +++ b/tests/baselines/reference/typeParameterExtendingUnion2.js @@ -16,7 +16,7 @@ function f(a: T) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js index 5885098c2c4b1..b3ccbc006ea99 100644 --- a/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js +++ b/tests/baselines/reference/typeParameterUsedAsTypeParameterConstraint4.js @@ -59,7 +59,7 @@ var f4 = (x: V, y: X) => { // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParameterWithInvalidConstraintType.js b/tests/baselines/reference/typeParameterWithInvalidConstraintType.js index 82823c9c0091e..cc2033697b858 100644 --- a/tests/baselines/reference/typeParameterWithInvalidConstraintType.js +++ b/tests/baselines/reference/typeParameterWithInvalidConstraintType.js @@ -13,7 +13,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParametersAndParametersInComputedNames.js b/tests/baselines/reference/typeParametersAndParametersInComputedNames.js index b2634904c9761..2ea075177f385 100644 --- a/tests/baselines/reference/typeParametersAndParametersInComputedNames.js +++ b/tests/baselines/reference/typeParametersAndParametersInComputedNames.js @@ -12,7 +12,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js b/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js index 705fb6ac038c6..4b33d6f12e05b 100644 --- a/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js +++ b/tests/baselines/reference/typeParametersAreIdenticalToThemselves.js @@ -81,7 +81,7 @@ interface I2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeParametersAvailableInNestedScope.js b/tests/baselines/reference/typeParametersAvailableInNestedScope.js index 88d54f8f3fce5..c057c742d5438 100644 --- a/tests/baselines/reference/typeParametersAvailableInNestedScope.js +++ b/tests/baselines/reference/typeParametersAvailableInNestedScope.js @@ -25,7 +25,7 @@ c.data = c.foo(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeQueryOnClass.js b/tests/baselines/reference/typeQueryOnClass.js index 11bed558f48bd..908eb6809e7c6 100644 --- a/tests/baselines/reference/typeQueryOnClass.js +++ b/tests/baselines/reference/typeQueryOnClass.js @@ -60,7 +60,7 @@ var r4: typeof d; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeQueryWithReservedWords.js b/tests/baselines/reference/typeQueryWithReservedWords.js index 2e6f9c505f1d4..8e8609bea9961 100644 --- a/tests/baselines/reference/typeQueryWithReservedWords.js +++ b/tests/baselines/reference/typeQueryWithReservedWords.js @@ -19,7 +19,7 @@ interface IScope { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeRelationships.js b/tests/baselines/reference/typeRelationships.js index b26da5266198d..236d78edd0219 100644 --- a/tests/baselines/reference/typeRelationships.js +++ b/tests/baselines/reference/typeRelationships.js @@ -44,7 +44,7 @@ class D extends C { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeResolution.js b/tests/baselines/reference/typeResolution.js index c92156714a575..253b95a12d640 100644 --- a/tests/baselines/reference/typeResolution.js +++ b/tests/baselines/reference/typeResolution.js @@ -114,7 +114,7 @@ module TopLevelModule2 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeResolution.sourcemap.txt b/tests/baselines/reference/typeResolution.sourcemap.txt index 618675fedf011..d1169d41c8ab7 100644 --- a/tests/baselines/reference/typeResolution.sourcemap.txt +++ b/tests/baselines/reference/typeResolution.sourcemap.txt @@ -11,7 +11,7 @@ sourceFile:typeResolution.ts >>>var __names = (this && this.__names) || (function() { >>> var name = Object.defineProperty ? (function(proto, name) { >>> Object.defineProperty(proto[name], 'name', { ->>> value: name, configurable: true, writable: false, enumerable: false +>>> value: name, configurable: true >>> }); >>> }) : (function(proto, name) { >>> proto[name].name = name; diff --git a/tests/baselines/reference/typeVariableTypeGuards.js b/tests/baselines/reference/typeVariableTypeGuards.js index 7f54c0a0695c7..3fbd7533c669b 100644 --- a/tests/baselines/reference/typeVariableTypeGuards.js +++ b/tests/baselines/reference/typeVariableTypeGuards.js @@ -88,7 +88,7 @@ function f5(obj: T | undefined, key: K) { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typedGenericPrototypeMember.js b/tests/baselines/reference/typedGenericPrototypeMember.js index 2288b62519f87..f5af0c7028399 100644 --- a/tests/baselines/reference/typedGenericPrototypeMember.js +++ b/tests/baselines/reference/typedGenericPrototypeMember.js @@ -10,7 +10,7 @@ List.prototype.add("abc"); // Valid because T is instantiated to any var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typeofClass2.js b/tests/baselines/reference/typeofClass2.js index 9f88c7e0de4bb..a4437e0a202fa 100644 --- a/tests/baselines/reference/typeofClass2.js +++ b/tests/baselines/reference/typeofClass2.js @@ -35,7 +35,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/typesWithSpecializedCallSignatures.js b/tests/baselines/reference/typesWithSpecializedCallSignatures.js index cd9c19c947dae..a9112a6eb45f8 100644 --- a/tests/baselines/reference/typesWithSpecializedCallSignatures.js +++ b/tests/baselines/reference/typesWithSpecializedCallSignatures.js @@ -56,7 +56,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/undeclaredMethod.js b/tests/baselines/reference/undeclaredMethod.js index 56799db14160a..13f2849eb3c7c 100644 --- a/tests/baselines/reference/undeclaredMethod.js +++ b/tests/baselines/reference/undeclaredMethod.js @@ -16,7 +16,7 @@ c.saltbar(); // crash var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/underscoreMapFirst.js b/tests/baselines/reference/underscoreMapFirst.js index ccacda241629d..ae550134e0e9d 100644 --- a/tests/baselines/reference/underscoreMapFirst.js +++ b/tests/baselines/reference/underscoreMapFirst.js @@ -62,7 +62,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unionTypeEquivalence.js b/tests/baselines/reference/unionTypeEquivalence.js index dffd6cf986ddc..9c4721df94f68 100644 --- a/tests/baselines/reference/unionTypeEquivalence.js +++ b/tests/baselines/reference/unionTypeEquivalence.js @@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unionTypeFromArrayLiteral.js b/tests/baselines/reference/unionTypeFromArrayLiteral.js index 7631c7e4357a8..6f8406b7237f0 100644 --- a/tests/baselines/reference/unionTypeFromArrayLiteral.js +++ b/tests/baselines/reference/unionTypeFromArrayLiteral.js @@ -31,7 +31,7 @@ var arr9 = [e, f]; // (E|F)[] var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unionTypesAssignability.js b/tests/baselines/reference/unionTypesAssignability.js index b9db9a0917370..b3e78d3743efb 100644 --- a/tests/baselines/reference/unionTypesAssignability.js +++ b/tests/baselines/reference/unionTypesAssignability.js @@ -87,7 +87,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unknownTypeArgOnCall.js b/tests/baselines/reference/unknownTypeArgOnCall.js index bd4bdbc9682d5..3408d33eb0d86 100644 --- a/tests/baselines/reference/unknownTypeArgOnCall.js +++ b/tests/baselines/reference/unknownTypeArgOnCall.js @@ -12,7 +12,7 @@ var r = f.clone() var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unspecializedConstraints.js b/tests/baselines/reference/unspecializedConstraints.js index d21e1adc34b0e..a67e8e1c8154c 100644 --- a/tests/baselines/reference/unspecializedConstraints.js +++ b/tests/baselines/reference/unspecializedConstraints.js @@ -167,7 +167,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedClassesinModule1.js b/tests/baselines/reference/unusedClassesinModule1.js index 888619d512649..00c1e87669968 100644 --- a/tests/baselines/reference/unusedClassesinModule1.js +++ b/tests/baselines/reference/unusedClassesinModule1.js @@ -10,7 +10,7 @@ module A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedIdentifiersConsolidated1.js b/tests/baselines/reference/unusedIdentifiersConsolidated1.js index 45e2d5331982f..b669f9d5ac401 100644 --- a/tests/baselines/reference/unusedIdentifiersConsolidated1.js +++ b/tests/baselines/reference/unusedIdentifiersConsolidated1.js @@ -105,7 +105,7 @@ namespace Greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports10.js b/tests/baselines/reference/unusedImports10.js index 25dc307b927a3..fb6cdf545a30a 100644 --- a/tests/baselines/reference/unusedImports10.js +++ b/tests/baselines/reference/unusedImports10.js @@ -14,7 +14,7 @@ module B { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports2.js b/tests/baselines/reference/unusedImports2.js index 424c980a93d8b..f9e33b87534e3 100644 --- a/tests/baselines/reference/unusedImports2.js +++ b/tests/baselines/reference/unusedImports2.js @@ -21,7 +21,7 @@ x.handleChar(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports3.js b/tests/baselines/reference/unusedImports3.js index 18750f668c214..f7b788e87355f 100644 --- a/tests/baselines/reference/unusedImports3.js +++ b/tests/baselines/reference/unusedImports3.js @@ -24,7 +24,7 @@ test2(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports4.js b/tests/baselines/reference/unusedImports4.js index 4d7e0bb332813..eea809a358a94 100644 --- a/tests/baselines/reference/unusedImports4.js +++ b/tests/baselines/reference/unusedImports4.js @@ -25,7 +25,7 @@ test2(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports5.js b/tests/baselines/reference/unusedImports5.js index 1437b8b91df29..17a83fad289e7 100644 --- a/tests/baselines/reference/unusedImports5.js +++ b/tests/baselines/reference/unusedImports5.js @@ -25,7 +25,7 @@ test(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports6.js b/tests/baselines/reference/unusedImports6.js index f754e235b9045..3c60a5672b36a 100644 --- a/tests/baselines/reference/unusedImports6.js +++ b/tests/baselines/reference/unusedImports6.js @@ -25,7 +25,7 @@ import d from "./file1" var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports7.js b/tests/baselines/reference/unusedImports7.js index 0c3ba963d131e..376d8c9fdeefc 100644 --- a/tests/baselines/reference/unusedImports7.js +++ b/tests/baselines/reference/unusedImports7.js @@ -23,7 +23,7 @@ import * as n from "./file1" var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports8.js b/tests/baselines/reference/unusedImports8.js index 2b6294f65c911..6c40507558985 100644 --- a/tests/baselines/reference/unusedImports8.js +++ b/tests/baselines/reference/unusedImports8.js @@ -25,7 +25,7 @@ t1(); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedImports9.js b/tests/baselines/reference/unusedImports9.js index 5f1a45f37a66e..5b401a5073aae 100644 --- a/tests/baselines/reference/unusedImports9.js +++ b/tests/baselines/reference/unusedImports9.js @@ -21,7 +21,7 @@ import c = require('./file1') var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedInvalidTypeArguments.js b/tests/baselines/reference/unusedInvalidTypeArguments.js index 5926ff9013590..c7667093b8214 100644 --- a/tests/baselines/reference/unusedInvalidTypeArguments.js +++ b/tests/baselines/reference/unusedInvalidTypeArguments.js @@ -109,7 +109,7 @@ var __extends = (this && this.__extends) || (function () { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedLocalProperty.js b/tests/baselines/reference/unusedLocalProperty.js index ef9c41c51c459..415c4d6e7b183 100644 --- a/tests/baselines/reference/unusedLocalProperty.js +++ b/tests/baselines/reference/unusedLocalProperty.js @@ -16,7 +16,7 @@ class Animal { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedLocalsAndParameters.js b/tests/baselines/reference/unusedLocalsAndParameters.js index e4b3490a945d9..655c1d078a01f 100644 --- a/tests/baselines/reference/unusedLocalsAndParameters.js +++ b/tests/baselines/reference/unusedLocalsAndParameters.js @@ -88,7 +88,7 @@ namespace N { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedLocalsAndParametersDeferred.js b/tests/baselines/reference/unusedLocalsAndParametersDeferred.js index 4b6cbce4f187b..be1c3604e8a27 100644 --- a/tests/baselines/reference/unusedLocalsAndParametersDeferred.js +++ b/tests/baselines/reference/unusedLocalsAndParametersDeferred.js @@ -164,7 +164,7 @@ N; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js b/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js index ae887bb7eeb66..6bc7e38426117 100644 --- a/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js +++ b/tests/baselines/reference/unusedLocalsAndParametersOverloadSignatures.js @@ -27,7 +27,7 @@ export function genericFunc(details: number, message: any): any { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedLocalsInMethod1.js b/tests/baselines/reference/unusedLocalsInMethod1.js index 9c4a5213ebd07..2c487a37ad134 100644 --- a/tests/baselines/reference/unusedLocalsInMethod1.js +++ b/tests/baselines/reference/unusedLocalsInMethod1.js @@ -9,7 +9,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedLocalsInMethod2.js b/tests/baselines/reference/unusedLocalsInMethod2.js index cf25b93466ce6..c57894f00f784 100644 --- a/tests/baselines/reference/unusedLocalsInMethod2.js +++ b/tests/baselines/reference/unusedLocalsInMethod2.js @@ -10,7 +10,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedLocalsInMethod3.js b/tests/baselines/reference/unusedLocalsInMethod3.js index 1b6480078ee05..bf3e372e2245f 100644 --- a/tests/baselines/reference/unusedLocalsInMethod3.js +++ b/tests/baselines/reference/unusedLocalsInMethod3.js @@ -10,7 +10,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js b/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js index 59a5829bf7806..b7c9f88c51d59 100644 --- a/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js +++ b/tests/baselines/reference/unusedMultipleParameters1InMethodDeclaration.js @@ -10,7 +10,7 @@ class Dummy { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js b/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js index 06d97116da2c3..a17a73d31fecf 100644 --- a/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js +++ b/tests/baselines/reference/unusedMultipleParameters2InMethodDeclaration.js @@ -10,7 +10,7 @@ class Dummy { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedParametersInLambda1.js b/tests/baselines/reference/unusedParametersInLambda1.js index b75be92593590..78d66f1d1bae4 100644 --- a/tests/baselines/reference/unusedParametersInLambda1.js +++ b/tests/baselines/reference/unusedParametersInLambda1.js @@ -10,7 +10,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedParametersInLambda2.js b/tests/baselines/reference/unusedParametersInLambda2.js index 10f5d131ea066..14ea047169358 100644 --- a/tests/baselines/reference/unusedParametersInLambda2.js +++ b/tests/baselines/reference/unusedParametersInLambda2.js @@ -11,7 +11,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedParametersThis.js b/tests/baselines/reference/unusedParametersThis.js index 45e379de380ba..ff33f6b229c60 100644 --- a/tests/baselines/reference/unusedParametersThis.js +++ b/tests/baselines/reference/unusedParametersThis.js @@ -37,7 +37,7 @@ var f2 = function f2(this: A): number { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedPrivateMembers.js b/tests/baselines/reference/unusedPrivateMembers.js index 370caa430df4d..3510467635e19 100644 --- a/tests/baselines/reference/unusedPrivateMembers.js +++ b/tests/baselines/reference/unusedPrivateMembers.js @@ -52,7 +52,7 @@ class Test5 { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedPrivateMethodInClass1.js b/tests/baselines/reference/unusedPrivateMethodInClass1.js index ec7decda4b3bd..27a523f27e46c 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass1.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass1.js @@ -10,7 +10,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedPrivateMethodInClass2.js b/tests/baselines/reference/unusedPrivateMethodInClass2.js index f7a0bdad58558..dff3eaeb4e748 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass2.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass2.js @@ -15,7 +15,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedPrivateMethodInClass3.js b/tests/baselines/reference/unusedPrivateMethodInClass3.js index bc3e269325bb2..3d25919cb02d6 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass3.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass3.js @@ -20,7 +20,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedPrivateMethodInClass4.js b/tests/baselines/reference/unusedPrivateMethodInClass4.js index 0552eb1c6ed22..c3fca0c259085 100644 --- a/tests/baselines/reference/unusedPrivateMethodInClass4.js +++ b/tests/baselines/reference/unusedPrivateMethodInClass4.js @@ -21,7 +21,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedPrivateVariableInClass4.js b/tests/baselines/reference/unusedPrivateVariableInClass4.js index de6bbe0d0054e..f4a88b6f57da2 100644 --- a/tests/baselines/reference/unusedPrivateVariableInClass4.js +++ b/tests/baselines/reference/unusedPrivateVariableInClass4.js @@ -13,7 +13,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js b/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js index 5aa6a8b7438d8..f17e6509ac1cb 100644 --- a/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js +++ b/tests/baselines/reference/unusedSingleParameterInMethodDeclaration.js @@ -9,7 +9,7 @@ class Dummy { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameterInLambda1.js b/tests/baselines/reference/unusedTypeParameterInLambda1.js index bfcc70d2d87ca..4fb75db51fa87 100644 --- a/tests/baselines/reference/unusedTypeParameterInLambda1.js +++ b/tests/baselines/reference/unusedTypeParameterInLambda1.js @@ -11,7 +11,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameterInLambda2.js b/tests/baselines/reference/unusedTypeParameterInLambda2.js index e9c2c88a6a570..135811ad0333f 100644 --- a/tests/baselines/reference/unusedTypeParameterInLambda2.js +++ b/tests/baselines/reference/unusedTypeParameterInLambda2.js @@ -12,7 +12,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameterInMethod1.js b/tests/baselines/reference/unusedTypeParameterInMethod1.js index b28fffce5069a..dc9ea721315e0 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod1.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod1.js @@ -12,7 +12,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameterInMethod2.js b/tests/baselines/reference/unusedTypeParameterInMethod2.js index 9d737cce6f30d..19ff86ff3b074 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod2.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod2.js @@ -12,7 +12,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameterInMethod3.js b/tests/baselines/reference/unusedTypeParameterInMethod3.js index 15783e3ec2c5b..80e13e5d8805c 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod3.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod3.js @@ -12,7 +12,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameterInMethod4.js b/tests/baselines/reference/unusedTypeParameterInMethod4.js index 5fe8e59a6500f..5804e52201eb6 100644 --- a/tests/baselines/reference/unusedTypeParameterInMethod4.js +++ b/tests/baselines/reference/unusedTypeParameterInMethod4.js @@ -9,7 +9,7 @@ class A { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameters2.js b/tests/baselines/reference/unusedTypeParameters2.js index 1fb1418637d6c..eab94d5483738 100644 --- a/tests/baselines/reference/unusedTypeParameters2.js +++ b/tests/baselines/reference/unusedTypeParameters2.js @@ -11,7 +11,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedTypeParameters3.js b/tests/baselines/reference/unusedTypeParameters3.js index 19634509b1666..5b14389ed6b9c 100644 --- a/tests/baselines/reference/unusedTypeParameters3.js +++ b/tests/baselines/reference/unusedTypeParameters3.js @@ -11,7 +11,7 @@ class greeter { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedVariablesinNamespaces2.js b/tests/baselines/reference/unusedVariablesinNamespaces2.js index c479aa8bfdd38..dde789563470f 100644 --- a/tests/baselines/reference/unusedVariablesinNamespaces2.js +++ b/tests/baselines/reference/unusedVariablesinNamespaces2.js @@ -14,7 +14,7 @@ namespace Validation { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/unusedVariablesinNamespaces3.js b/tests/baselines/reference/unusedVariablesinNamespaces3.js index 8462206adf388..9b102c1f65f08 100644 --- a/tests/baselines/reference/unusedVariablesinNamespaces3.js +++ b/tests/baselines/reference/unusedVariablesinNamespaces3.js @@ -15,7 +15,7 @@ namespace Validation { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/vararg.js b/tests/baselines/reference/vararg.js index f99b030af4a77..476ac9085ae32 100644 --- a/tests/baselines/reference/vararg.js +++ b/tests/baselines/reference/vararg.js @@ -42,7 +42,7 @@ result+=x.fonly("a","b","c","d"); //ok var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js b/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js index 6f66f73fd779d..325a0b5184a38 100644 --- a/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js +++ b/tests/baselines/reference/variableDeclaratorResolvedDuringContextualTyping.js @@ -129,7 +129,7 @@ class FileService { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/visibilityOfTypeParameters.js b/tests/baselines/reference/visibilityOfTypeParameters.js index 278ebb5280bac..ac730683e6a8c 100644 --- a/tests/baselines/reference/visibilityOfTypeParameters.js +++ b/tests/baselines/reference/visibilityOfTypeParameters.js @@ -10,7 +10,7 @@ export class MyClass { var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/witness.js b/tests/baselines/reference/witness.js index 5223630a173a6..436e3b9dca30c 100644 --- a/tests/baselines/reference/witness.js +++ b/tests/baselines/reference/witness.js @@ -140,7 +140,7 @@ var qq: any; var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints.js b/tests/baselines/reference/wrappedAndRecursiveConstraints.js index 689185d1cd9f0..bc1f41472f1cd 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints.js @@ -21,7 +21,7 @@ var r = c.foo(y); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints3.js b/tests/baselines/reference/wrappedAndRecursiveConstraints3.js index 0039016b2d584..06a13ff28396b 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints3.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints3.js @@ -20,7 +20,7 @@ var r2 = r(''); var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name; diff --git a/tests/baselines/reference/wrappedAndRecursiveConstraints4.js b/tests/baselines/reference/wrappedAndRecursiveConstraints4.js index 53bf5b1d3423f..90e834626c458 100644 --- a/tests/baselines/reference/wrappedAndRecursiveConstraints4.js +++ b/tests/baselines/reference/wrappedAndRecursiveConstraints4.js @@ -17,7 +17,7 @@ var r2 = r({ length: 3, charAt: (x: number) => { '' } }); // error var __names = (this && this.__names) || (function() { var name = Object.defineProperty ? (function(proto, name) { Object.defineProperty(proto[name], 'name', { - value: name, configurable: true, writable: false, enumerable: false + value: name, configurable: true }); }) : (function(proto, name) { proto[name].name = name;